Commit 0af3300c authored by jim's avatar jim Committed by ι™ˆεΈ…

fix ci

parent 680c0c3d
const path = require('path');
module.exports = {
plugins: [
[
'babel-plugin-module-resolver',
{
alias: {
components: './src/components',
components: path.join(__dirname, './src/components'),
},
},
],
[
'import',
{
libraryName: 'antd',
style: true, // or 'css'
},
],
],
};
\ No newline at end of file
};
......@@ -23,8 +23,6 @@
"dependencies": {
"@antv/data-set": "^0.8.0",
"@babel/polyfill": "^7.0.0-beta.36",
"@types/react": "^16.3.8",
"@types/react-dom": "^16.0.5",
"antd": "^3.4.3",
"antd-theme-webpack-plugin": "^1.0.8",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
......@@ -53,6 +51,8 @@
"url-polyfill": "^1.0.10"
},
"devDependencies": {
"@types/react": "^16.3.8",
"@types/react-dom": "^16.0.5",
"babel-eslint": "^8.1.2",
"babel-plugin-dva-hmr": "^0.4.1",
"babel-plugin-import": "^1.6.7",
......@@ -84,7 +84,7 @@
"stylelint-config-standard": "^18.0.0"
},
"optionalDependencies": {
"puppeteer": "^1.1.1"
"puppeteer": "^1.3.0"
},
"lint-staged": {
"**/*.{js,jsx,less}": [
......
......@@ -4,7 +4,7 @@ describe('Homepage', () => {
it('it should have logo text', async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto('http://localhost:8000');
await page.goto('http://localhost:8000', { waitUntil: 'networkidle2' });
await page.waitForSelector('h1');
const text = await page.evaluate(() => document.body.innerHTML);
expect(text).toContain('<h1>Ant Design Pro</h1>');
......
......@@ -10,7 +10,7 @@ describe('Login', () => {
beforeEach(async () => {
page = await browser.newPage();
await page.goto('http://localhost:8000/#/user/login');
await page.goto('http://localhost:8000/#/user/login', { waitUntil: 'networkidle2' });
await page.evaluate(() => window.localStorage.setItem('antd-pro-authority', 'guest'));
});
......
import React, { Fragment } from 'react';
import { Button, Row, Col, Icon, Steps, Card } from 'antd';
import Result from 'components/Result';
import Result from '../../components/Result';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
const { Step } = Steps;
......
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