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
b834569a
Commit
b834569a
authored
Aug 18, 2021
by
BryceLTaylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add expect lines to studio management integration tests
parent
a4f71b44
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
test/integration/studios-page.test.js
test/integration/studios-page.test.js
+9
-4
No files found.
test/integration/studios-page.test.js
View file @
b834569a
...
...
@@ -108,7 +108,9 @@ describe('studio management', () => {
let
inviteBox
=
await
findByXpath
(
'
//div[@class="studio-adder-row"]/input
'
);
await
inviteBox
.
sendKeys
(
username3
);
await
clickXpath
(
'
//div[@class="studio-adder-row"]/button
'
);
await
findByXpath
(
'
//div[@class="alert-msg"]
'
);
// the confirm alert
let
inviteSuccess
=
await
findByXpath
(
'
//div[@class="alert-msg"]
'
);
// the confirm alert
let
inviteSuccessVisible
=
await
inviteSuccess
.
isDisplayed
();
await
expect
(
inviteSuccessVisible
).
toBe
(
true
);
});
test
(
'
accept curator invite
'
,
async
()
=>
{
...
...
@@ -118,7 +120,9 @@ describe('studio management', () => {
// accept the curator invite
await
clickXpath
(
'
//button[@class="studio-invitation-button button"]
'
);
await
findByXpath
(
'
//div[contains(@class,"studio-info-box-success")]
'
);
let
acceptSuccess
=
await
findByXpath
(
'
//div[contains(@class,"studio-info-box-success")]
'
);
let
acceptSuccessVisible
=
await
acceptSuccess
.
isDisplayed
();
await
expect
(
acceptSuccessVisible
).
toBe
(
true
);
});
test
(
'
promote to manager
'
,
async
()
=>
{
...
...
@@ -139,7 +143,8 @@ describe('studio management', () => {
await
findByXpath
(
'
//div[@class="promote-content"]
'
);
// await clickXpath(//button[contains(@class="promote-button")]) <-- add this selector to the button
await
clickXpath
(
'
//div[@class="promote-button-row"]/button/span[contains(text(),"Promote")]/..
'
);
await
findByXpath
(
'
//div[contains(@class, "alert-success")]
'
);
let
promoteSuccess
=
await
findByXpath
(
'
//div[contains(@class, "alert-success")]
'
);
let
promoteSuccessVisible
=
await
promoteSuccess
.
isDisplayed
();
await
expect
(
promoteSuccessVisible
).
toBe
(
true
);
});
});
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