Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
28e6b5c0
Unverified
Commit
28e6b5c0
authored
Aug 10, 2020
by
Bryce Taylor
Committed by
GitHub
Aug 10, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4290 from BryceLTaylor/update-jest-tests
Update sign-in-and-out integration tests for new chromedriver
parents
1d586f51
4fcc223d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
test/integration/sign-in-and-out.test.js
test/integration/sign-in-and-out.test.js
+6
-0
No files found.
test/integration/sign-in-and-out.test.js
View file @
28e6b5c0
...
@@ -17,6 +17,8 @@ let wwwURL = rootUrl;
...
@@ -17,6 +17,8 @@ let wwwURL = rootUrl;
if
(
remote
){
if
(
remote
){
jest
.
setTimeout
(
60000
);
jest
.
setTimeout
(
60000
);
}
else
{
jest
.
setTimeout
(
10000
);
}
}
let
driver
;
let
driver
;
...
@@ -41,8 +43,10 @@ describe('www-integration sign-in-and-out', () => {
...
@@ -41,8 +43,10 @@ describe('www-integration sign-in-and-out', () => {
await
name
.
sendKeys
(
username
);
await
name
.
sendKeys
(
username
);
let
word
=
await
findByXpath
(
'
//input[@id="frc-password-1088"]
'
);
let
word
=
await
findByXpath
(
'
//input[@id="frc-password-1088"]
'
);
await
word
.
sendKeys
(
password
);
await
word
.
sendKeys
(
password
);
await
driver
.
sleep
(
500
);
await
clickXpath
(
'
//button[contains(@class, "button") and
'
+
await
clickXpath
(
'
//button[contains(@class, "button") and
'
+
'
contains(@class, "submit-button") and contains(@class, "white")]
'
);
'
contains(@class, "submit-button") and contains(@class, "white")]
'
);
await
driver
.
sleep
(
500
);
let
element
=
await
findByXpath
(
'
//span[contains(@class, "profile-name")]
'
);
let
element
=
await
findByXpath
(
'
//span[contains(@class, "profile-name")]
'
);
let
text
=
await
element
.
getText
();
let
text
=
await
element
.
getText
();
await
expect
(
text
.
toLowerCase
()).
toEqual
(
username
.
toLowerCase
());
await
expect
(
text
.
toLowerCase
()).
toEqual
(
username
.
toLowerCase
());
...
@@ -70,8 +74,10 @@ describe('www-integration sign-in-and-out', () => {
...
@@ -70,8 +74,10 @@ describe('www-integration sign-in-and-out', () => {
await
name
.
sendKeys
(
username
);
await
name
.
sendKeys
(
username
);
let
word
=
await
findByXpath
(
'
//input[@id="frc-password-1088"]
'
);
let
word
=
await
findByXpath
(
'
//input[@id="frc-password-1088"]
'
);
await
word
.
sendKeys
(
password
);
await
word
.
sendKeys
(
password
);
await
driver
.
sleep
(
500
);
await
clickXpath
(
'
//button[contains(@class, "button") and
'
+
await
clickXpath
(
'
//button[contains(@class, "button") and
'
+
'
contains(@class, "submit-button") and contains(@class, "white")]
'
);
'
contains(@class, "submit-button") and contains(@class, "white")]
'
);
await
driver
.
sleep
(
500
);
});
});
test
(
'
sign out on www
'
,
async
()
=>
{
test
(
'
sign out on www
'
,
async
()
=>
{
...
...
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