This commit is contained in:
Gerard 2019-02-13 09:27:13 +01:00
commit bfaf9b1ed4
2 changed files with 4 additions and 6 deletions

View File

@ -266,11 +266,11 @@ let actions = {
});
},
waitForTextInElement: function(selector, name, done) {
waitForTextInElement: function(selector, text, done) {
this.wait(selector)
.wait((selector, name) => {
return document.querySelector(selector).innerText.toLowerCase().includes(name.toLowerCase());
}, selector, name)
.wait((selector, text) => {
return document.querySelector(selector).innerText.toLowerCase().includes(text.toLowerCase());
}, selector, text)
.then(done)
.catch(done);
},

View File

@ -20,8 +20,6 @@ export function factory($http, $window, $ocLazyLoad, $translatePartialLoader, $t
return loaded[moduleName];
if (loaded[moduleName] === false)
return Promise.resolve(true);
// TODO task #1134 look for a better way to handle dependency loop
// return $q.reject(new Error(`Module dependency loop detected: ${moduleName}`));
loaded[moduleName] = false;