From 2a4e518ae09d614cb7493c2c2995b9b898fc121b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Wed, 31 Oct 2018 11:23:52 +0800 Subject: [PATCH] fix ci error --- src/components/Login/map.js | 2 ++ src/e2e/login.e2e.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/Login/map.js b/src/components/Login/map.js index 72e547c2..dfa88199 100644 --- a/src/components/Login/map.js +++ b/src/components/Login/map.js @@ -6,6 +6,7 @@ export default { UserName: { props: { size: 'large', + id: 'userName', prefix: , placeholder: 'admin', }, @@ -21,6 +22,7 @@ export default { size: 'large', prefix: , type: 'password', + id: 'password', placeholder: '888888', }, rules: [ diff --git a/src/e2e/login.e2e.js b/src/e2e/login.e2e.js index 366de8cc..589ad46b 100644 --- a/src/e2e/login.e2e.js +++ b/src/e2e/login.e2e.js @@ -7,6 +7,7 @@ describe('Login', () => { let page; beforeAll(async () => { + jest.setTimeout(1000000); browser = await puppeteer.launch({ args: ['--no-sandbox'] }); }); @@ -33,7 +34,7 @@ describe('Login', () => { timeout: 2000, }); await page.type('#userName', 'admin'); - await page.type('#password', '888888'); + await page.type('#password', 'ant.design'); await page.click('button[type="submit"]'); await page.waitForSelector('.ant-layout-sider h1'); // should display error const text = await page.evaluate(() => document.body.innerHTML); -- GitLab