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
6ec73088
Commit
6ec73088
authored
Aug 20, 2021
by
BryceLTaylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up studio integration tests
parent
f67fcdc4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
test/integration/selenium-helpers.js
test/integration/selenium-helpers.js
+0
-1
test/integration/studios-page.test.js
test/integration/studios-page.test.js
+2
-3
No files found.
test/integration/selenium-helpers.js
View file @
6ec73088
...
...
@@ -159,7 +159,6 @@ class SeleniumHelper {
await
driver
.
sleep
(
500
);
await
this
.
clickXpath
(
'
//button[contains(@class, "button") and
'
+
'
contains(@class, "submit-button") and contains(@class, "white")]
'
);
// await this.findByXpath('//span[contains(@class, "profile-name")]');
}
urlMatches
(
regex
)
{
...
...
test/integration/studios-page.test.js
View file @
6ec73088
...
...
@@ -85,7 +85,7 @@ describe('studio management', () => {
await
clickXpath
(
'
//form[@id="new_studio"]/button[@type="submit"]
'
);
await
findByXpath
(
'
//div[@class="studio-tabs"]
'
);
promoteStudioURL
=
await
driver
.
getCurrentUrl
();
curatorTab
=
await
promoteStudioURL
+
'
curators
'
;
curatorTab
=
promoteStudioURL
+
'
curators
'
;
});
beforeEach
(
async
()
=>
{
...
...
@@ -134,11 +134,10 @@ describe('studio management', () => {
// promote user3
let
user3href
=
'
/users/
'
+
username3
;
// click kebab menu on the user tile
let
kebabMenuXpath
=
'
//a[@href = "
'
+
user3href
+
'
"]/
'
+
let
kebabMenuXpath
=
`//a[@href = "
${
user3href
}
"]/`
+
'
following-sibling::div[@class="overflow-menu-container"]
'
;
await
clickXpath
(
kebabMenuXpath
+
'
/button[@class="overflow-menu-trigger"]
'
);
// click promote
// await clickXpath(kebabMenuXpath + '/ul/li/button[@class="promote-button"]');
// await clickXpath('//button[@class="promote-menu-button"]'); //<-- I think this will do it
await
clickXpath
(
kebabMenuXpath
+
'
/ul/li/button/span[contains(text(), "Promote")]/..
'
);
await
findByXpath
(
'
//div[@class="promote-content"]
'
);
...
...
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