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)
|
this.wait(selector)
|
||||||
.wait((selector, name) => {
|
.wait((selector, text) => {
|
||||||
return document.querySelector(selector).innerText.toLowerCase().includes(name.toLowerCase());
|
return document.querySelector(selector).innerText.toLowerCase().includes(text.toLowerCase());
|
||||||
}, selector, name)
|
}, selector, text)
|
||||||
.then(done)
|
.then(done)
|
||||||
.catch(done);
|
.catch(done);
|
||||||
},
|
},
|
||||||
|
|
|
@ -20,8 +20,6 @@ export function factory($http, $window, $ocLazyLoad, $translatePartialLoader, $t
|
||||||
return loaded[moduleName];
|
return loaded[moduleName];
|
||||||
if (loaded[moduleName] === false)
|
if (loaded[moduleName] === false)
|
||||||
return Promise.resolve(true);
|
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;
|
loaded[moduleName] = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue