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

fix ci error

parent 96d30c2d
......@@ -6,6 +6,7 @@ export default {
UserName: {
props: {
size: 'large',
id: 'userName',
prefix: <Icon type="user" className={styles.prefixIcon} />,
placeholder: 'admin',
},
......@@ -21,6 +22,7 @@ export default {
size: 'large',
prefix: <Icon type="lock" className={styles.prefixIcon} />,
type: 'password',
id: 'password',
placeholder: '888888',
},
rules: [
......
......@@ -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);
......
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