Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix into dev
This commit is contained in:
commit
bfaf9b1ed4
|
@ -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);
|
||||
},
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue