prevent e2e auth loading page errors
parent
bf407a04f6
commit
473362d772
|
@ -43,6 +43,8 @@ describe('auth', function() {
|
|||
it("redirect to login", async function() {
|
||||
browser.get(browser.params.glob.host + path);
|
||||
|
||||
await utils.common.waitLoader();
|
||||
|
||||
let url = await browser.getCurrentUrl();
|
||||
|
||||
expect(url).to.be.equal(browser.params.glob.host + 'login?next=' + encodeURIComponent('/' + path));
|
||||
|
@ -53,6 +55,8 @@ describe('auth', function() {
|
|||
$('input[name="password"]').sendKeys('123123');
|
||||
$('.submit-button').click();
|
||||
|
||||
await utils.common.waitLoader();
|
||||
|
||||
let url = await browser.getCurrentUrl();
|
||||
|
||||
expect(url).to.be.equal(browser.params.glob.host + path);
|
||||
|
|
Loading…
Reference in New Issue