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
63e43abb
Commit
63e43abb
authored
Aug 18, 2021
by
BryceLTaylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Look for studio tabs in studio management integration tests
parent
b834569a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
test/integration/studios-page.test.js
test/integration/studios-page.test.js
+4
-4
No files found.
test/integration/studios-page.test.js
View file @
63e43abb
...
...
@@ -72,9 +72,8 @@ describe('studio page while signed out', () => {
describe
(
'
studio management
'
,
()
=>
{
// These tests all start on the curators tab of a studio and signed out
beforeAll
(
async
()
=>
{
// expect(projectUrl).toBe(defined);
driver
=
await
buildDriver
(
'
www-integration studio management
'
);
await
driver
.
get
(
rootUrl
);
...
...
@@ -93,7 +92,7 @@ describe('studio management', () => {
await
clickXpath
(
'
//a[contains(@class, "user-info")]
'
);
await
clickText
(
'
Sign out
'
);
await
driver
.
get
(
curatorTab
);
await
driver
.
sleep
(
1000
);
await
findByXpath
(
'
//div[@class="studio-tabs"]
'
);
});
afterAll
(
async
()
=>
await
driver
.
quit
());
...
...
@@ -104,7 +103,6 @@ describe('studio management', () => {
await
findByXpath
(
'
//span[contains(@class, "profile-name")]
'
);
// invite user3 to curate
await
driver
.
get
(
curatorTab
);
let
inviteBox
=
await
findByXpath
(
'
//div[@class="studio-adder-row"]/input
'
);
await
inviteBox
.
sendKeys
(
username3
);
await
clickXpath
(
'
//div[@class="studio-adder-row"]/button
'
);
...
...
@@ -129,6 +127,8 @@ describe('studio management', () => {
// sign in as user2
await
signIn
(
username2
,
password
,
driver
);
await
findByXpath
(
'
//span[contains(@class, "profile-name")]
'
);
// for some reason the user isn't showing up without reloading the page
await
driver
.
get
(
curatorTab
);
// promote user3
let
user3href
=
'
/users/
'
+
username3
;
...
...
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