|
@@ -11,7 +11,7 @@ function loadToolbar(client, fnames) {
|
|
|
let toolbar_name = name.replace(/\//g, "\\2f ").replace(/\./g, "\\2e ");
|
|
|
toolbar_name = "#div_toolbar_" + toolbar_name;
|
|
|
|
|
|
- client.waitForElementPresent(toolbar_name, 1000, "Check for toolbar: " + name);
|
|
|
+ client.waitForElementPresent(toolbar_name, 2000, "Check for toolbar: " + name);
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -19,11 +19,11 @@ function loadToolbar(client, fnames) {
|
|
|
let user = "./users/testuser/";
|
|
|
let glob = require('glob');
|
|
|
|
|
|
-let getFiles = function (client, dir, pattern) {
|
|
|
- glob(dir + pattern, callback(client));
|
|
|
+let getFiles = function (client, dir, pattern, failing_files) {
|
|
|
+ glob(dir + pattern, callback(client, failing_files));
|
|
|
};
|
|
|
|
|
|
-function callback(client) {
|
|
|
+function callback(client, failing_files) {
|
|
|
return function (err, res) {
|
|
|
if (err) {
|
|
|
assert(false, "Error in reading directory: " + user + "Toolbars");
|
|
@@ -32,7 +32,12 @@ function callback(client) {
|
|
|
let filenames = [];
|
|
|
for (let i in res) {
|
|
|
let fn = res[i];
|
|
|
- filenames.push("\/" + fn.replace(user, ""));
|
|
|
+ fn = "\/" + fn.replace(user, "");
|
|
|
+
|
|
|
+ //skip files we know will fail
|
|
|
+ if (!(failing_files.includes(fn))){
|
|
|
+ filenames.push(fn);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//console.log(filenames);
|
|
@@ -57,7 +62,7 @@ module.exports = {
|
|
|
}, [], null
|
|
|
);
|
|
|
|
|
|
- client.pause(300);
|
|
|
+ client.pause(1000);
|
|
|
|
|
|
client.getTitle(function (title) {
|
|
|
this.assert.ok(title.includes("AToMPM - [Unnamed]"), "AToMPM is opened");
|
|
@@ -69,13 +74,11 @@ module.exports = {
|
|
|
loadToolbar(client, [filename]);
|
|
|
},
|
|
|
|
|
|
- 'Load all toolbars': function (client) {
|
|
|
- getFiles(client, user, '/**/*.buttons.model');
|
|
|
- },
|
|
|
+ 'Load all metamodels' : function (client) {
|
|
|
|
|
|
- // 'Load all metamodels' : function (client) {
|
|
|
- // getFiles(client, user, '/**/*Icons.metamodel');
|
|
|
- // },
|
|
|
+ let failing_files = ['/Formalisms/__Templates__/ConcreteSyntaxTemplate.defaultIcons.metamodel'];
|
|
|
+ getFiles(client, user, '/**/*Icons.metamodel', failing_files);
|
|
|
+ },
|
|
|
|
|
|
// 'Load all pattern metamodels' : function (client) {
|
|
|
// getFiles(client, user, '/**/*Icons.pattern.metamodel');
|