Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
2a4e518a
Commit
2a4e518a
authored
Oct 31, 2018
by
ιεΈ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ci error
parent
96d30c2d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
src/components/Login/map.js
src/components/Login/map.js
+2
-0
src/e2e/login.e2e.js
src/e2e/login.e2e.js
+2
-1
No files found.
src/components/Login/map.js
View file @
2a4e518a
...
@@ -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
:
[
...
...
src/e2e/login.e2e.js
View file @
2a4e518a
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment