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
a4f71b44
Commit
a4f71b44
authored
Aug 18, 2021
by
BryceLTaylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
split promote to studio manager integration tests into subtests
parent
1ec30589
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
15 deletions
+7
-15
test/integration/studios-page.test.js
test/integration/studios-page.test.js
+7
-15
No files found.
test/integration/studios-page.test.js
View file @
a4f71b44
...
...
@@ -71,6 +71,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
'
);
...
...
@@ -96,7 +98,7 @@ describe('studio management', () => {
afterAll
(
async
()
=>
await
driver
.
quit
());
test
(
'
promote to manage
r
'
,
async
()
=>
{
test
(
'
invite a curato
r
'
,
async
()
=>
{
// sign in as user2
await
signIn
(
username2
,
password
,
driver
);
await
findByXpath
(
'
//span[contains(@class, "profile-name")]
'
);
...
...
@@ -107,34 +109,24 @@ describe('studio management', () => {
await
inviteBox
.
sendKeys
(
username3
);
await
clickXpath
(
'
//div[@class="studio-adder-row"]/button
'
);
await
findByXpath
(
'
//div[@class="alert-msg"]
'
);
// the confirm alert
});
// sign out user2
await
clickXpath
(
'
//a[contains(@class, "user-info")]
'
);
await
clickText
(
'
Sign out
'
);
test
(
'
accept curator invite
'
,
async
()
=>
{
// Sign in user3
await
driver
.
get
(
rootUrl
);
await
driver
.
sleep
(
1000
);
await
signIn
(
username3
,
password
,
driver
);
await
findByXpath
(
'
//span[contains(@class, "profile-name")]
'
);
// accept the curator invite
await
driver
.
get
(
curatorTab
);
await
clickXpath
(
'
//button[@class="studio-invitation-button button"]
'
);
await
findByXpath
(
'
//div[contains(@class,"studio-info-box-success")]
'
);
});
// sign out user3
await
clickXpath
(
'
//a[contains(@class, "user-info")]
'
);
await
clickText
(
'
Sign out
'
);
test
(
'
promote to manager
'
,
async
()
=>
{
// sign in as user2
await
driver
.
get
(
rootUrl
);
await
driver
.
sleep
(
1000
);
await
signIn
(
username2
,
password
,
driver
);
await
findByXpath
(
'
//span[contains(@class, "profile-name")]
'
);
// promote user3
await
driver
.
get
(
curatorTab
);
let
user3href
=
'
/users/
'
+
username3
;
// click kebab menu on the user tile
let
kebabMenuXpath
=
'
//a[@href = "
'
+
user3href
+
'
"]/
'
+
...
...
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