From 782fe9b564e9861d0f1ddb8e835fb24e77f402c4 Mon Sep 17 00:00:00 2001 From: ddcat1115 Date: Sat, 16 Dec 2017 17:06:43 +0800 Subject: [PATCH] update --- src/e2e/login.e2e.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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