diff --git a/src/e2e/login.e2e.js b/src/e2e/login.e2e.js index 5e8e10a04b..365f7b8192 100644 --- a/src/e2e/login.e2e.js +++ b/src/e2e/login.e2e.js @@ -8,7 +8,8 @@ describe('Login', () => { }); it('should login with failure', async () => { - await page.type('#userName', 'mockuser') + await page.wait(5000) + .type('#userName', 'mockuser') .type('#password', 'wrong_password') .click('button[type="submit"]') .wait('.ant-alert-error') // should display error @@ -16,7 +17,8 @@ describe('Login', () => { }); it('should login successfully', async () => { - const text = await page.type('#userName', 'admin') + const text = await page.wait(5000) + .type('#userName', 'admin') .type('#password', '888888') .click('button[type="submit"]') .wait('.ant-layout-sider h1') // should display error