diff --git a/e2e/suites/auth/auth.e2e.js b/e2e/suites/auth/auth.e2e.js index 0e9dbc5f..ff4557c4 100644 --- a/e2e/suites/auth/auth.e2e.js +++ b/e2e/suites/auth/auth.e2e.js @@ -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);