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
629f3dda
Commit
629f3dda
authored
Aug 21, 2020
by
BryceLTaylor
Committed by
Ben Wheeler
Sep 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add waits to my-stuff tests so they’ll pass on saucelabs
parent
324d5d2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
test/integration/my-stuff.test.js
test/integration/my-stuff.test.js
+5
-2
No files found.
test/integration/my-stuff.test.js
View file @
629f3dda
...
@@ -55,6 +55,7 @@ describe('www-integration my_stuff', () => {
...
@@ -55,6 +55,7 @@ describe('www-integration my_stuff', () => {
await
driver
.
sleep
(
6000
);
await
driver
.
sleep
(
6000
);
let
gui
=
await
findByXpath
(
'
//div[@class="guiPlayer"]
'
);
let
gui
=
await
findByXpath
(
'
//div[@class="guiPlayer"]
'
);
await
expect
(
gui
.
isDisplayed
());
await
expect
(
gui
.
isDisplayed
());
await
driver
.
sleep
(
1500
);
});
});
test
(
'
clicking "see inside" should take you to the editor
'
,
async
()
=>
{
test
(
'
clicking "see inside" should take you to the editor
'
,
async
()
=>
{
...
@@ -62,6 +63,7 @@ describe('www-integration my_stuff', () => {
...
@@ -62,6 +63,7 @@ describe('www-integration my_stuff', () => {
await
clickXpath
(
'
//a[@data-control="edit"]
'
);
await
clickXpath
(
'
//a[@data-control="edit"]
'
);
let
gf
=
await
findByXpath
(
'
//img[@class="green-flag_green-flag_1kiAo"]
'
);
let
gf
=
await
findByXpath
(
'
//img[@class="green-flag_green-flag_1kiAo"]
'
);
await
expect
(
gf
.
isDisplayed
());
await
expect
(
gf
.
isDisplayed
());
await
driver
.
sleep
(
1000
);
});
});
test
(
'
Add To button should bring up a list of studios
'
,
async
()
=>
{
test
(
'
Add To button should bring up a list of studios
'
,
async
()
=>
{
...
@@ -70,16 +72,17 @@ describe('www-integration my_stuff', () => {
...
@@ -70,16 +72,17 @@ describe('www-integration my_stuff', () => {
await
clickXpath
(
'
//div[@data-control="add-to"]
'
);
await
clickXpath
(
'
//div[@data-control="add-to"]
'
);
let
dropDown
=
await
findByXpath
(
'
//div[@class="dropdown-menu"]/ul/li
'
);
let
dropDown
=
await
findByXpath
(
'
//div[@class="dropdown-menu"]/ul/li
'
);
await
expect
(
dropDown
.
isDisplayed
());
await
expect
(
dropDown
.
isDisplayed
());
await
driver
.
sleep
(
1000
);
});
});
test
(
'
+ New Studio button should take you to the studio page
'
,
async
()
=>
{
test
(
'
+ New Studio button should take you to the studio page
'
,
async
()
=>
{
await
driver
.
get
(
myStuffURL
);
await
driver
.
get
(
myStuffURL
);
await
clickXpath
(
'
//form[@id="new_studio"]/button[@type="submit"]
'
);
await
clickXpath
(
'
//form[@id="new_studio"]/button[@type="submit"]
'
);
await
driver
.
sleep
(
10
00
);
await
driver
.
sleep
(
5
00
);
// my stuff also has an element with the id tabs
// my stuff also has an element with the id tabs
let
tabs
=
await
findByXpath
(
'
//ul[@id="tabs" and @class="tabs-index box-h-tabs h-tabs"]
'
);
let
tabs
=
await
findByXpath
(
'
//ul[@id="tabs" and @class="tabs-index box-h-tabs h-tabs"]
'
);
expect
(
tabs
.
isDisplayed
());
expect
(
tabs
.
isDisplayed
());
await
driver
.
sleep
(
1000
);
});
});
test
(
'
+ New Project button should open the editor
'
,
async
()
=>
{
test
(
'
+ New Project button should open the editor
'
,
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