Commit 2a4e518a authored by ι™ˆεΈ…'s avatar ι™ˆεΈ…

fix ci error

parent 96d30c2d
...@@ -6,6 +6,7 @@ export default { ...@@ -6,6 +6,7 @@ export default {
UserName: { UserName: {
props: { props: {
size: 'large', size: 'large',
id: 'userName',
prefix: <Icon type="user" className={styles.prefixIcon} />, prefix: <Icon type="user" className={styles.prefixIcon} />,
placeholder: 'admin', placeholder: 'admin',
}, },
...@@ -21,6 +22,7 @@ export default { ...@@ -21,6 +22,7 @@ export default {
size: 'large', size: 'large',
prefix: <Icon type="lock" className={styles.prefixIcon} />, prefix: <Icon type="lock" className={styles.prefixIcon} />,
type: 'password', type: 'password',
id: 'password',
placeholder: '888888', placeholder: '888888',
}, },
rules: [ rules: [
......
...@@ -7,6 +7,7 @@ describe('Login', () => { ...@@ -7,6 +7,7 @@ describe('Login', () => {
let page; let page;
beforeAll(async () => { beforeAll(async () => {
jest.setTimeout(1000000);
browser = await puppeteer.launch({ args: ['--no-sandbox'] }); browser = await puppeteer.launch({ args: ['--no-sandbox'] });
}); });
...@@ -33,7 +34,7 @@ describe('Login', () => { ...@@ -33,7 +34,7 @@ describe('Login', () => {
timeout: 2000, timeout: 2000,
}); });
await page.type('#userName', 'admin'); await page.type('#userName', 'admin');
await page.type('#password', '888888'); await page.type('#password', 'ant.design');
await page.click('button[type="submit"]'); await page.click('button[type="submit"]');
await page.waitForSelector('.ant-layout-sider h1'); // should display error await page.waitForSelector('.ant-layout-sider h1'); // should display error
const text = await page.evaluate(() => document.body.innerHTML); const text = await page.evaluate(() => document.body.innerHTML);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment