Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d666310d
Commit
d666310d
authored
Jul 22, 2021
by
Tiffany Rea
Committed by
Mark Lapierre
Jul 22, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor Page::Component invite member modal actions
parent
a11ba6a9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
qa/qa/page/component/invite_members_modal.rb
qa/qa/page/component/invite_members_modal.rb
+7
-5
qa/qa/specs/features/ee/browser_ui/1_manage/group/group_audit_logs_1_spec.rb
...s/ee/browser_ui/1_manage/group/group_audit_logs_1_spec.rb
+1
-1
qa/qa/specs/features/ee/browser_ui/1_manage/project/project_audit_logs_spec.rb
...ee/browser_ui/1_manage/project/project_audit_logs_spec.rb
+1
-1
No files found.
qa/qa/page/component/invite_members_modal.rb
View file @
d666310d
...
@@ -40,18 +40,20 @@ module QA
...
@@ -40,18 +40,20 @@ module QA
click_element
:invite_a_group_button
click_element
:invite_a_group_button
end
end
def
add_member
(
username
,
access_level
=
Resource
::
Members
::
AccessLevel
::
DEVELOPER
)
def
add_member
(
username
,
access_level
=
'Developer'
)
open_invite_members_modal
open_invite_members_modal
within_element
(
:invite_members_modal_content
)
do
within_element
(
:invite_members_modal_content
)
do
fill_element
:access_level_dropdown
,
with:
access_level
fill_element
:members_token_select_input
,
username
fill_element
:members_token_select_input
,
username
Support
::
WaitForRequests
.
wait_for_requests
Support
::
WaitForRequests
.
wait_for_requests
click_button
username
click_button
username
# Guest option is selected by default, skipping these steps if desired option is 'Guest'
unless
access_level
==
'Guest'
click_element
:access_level_dropdown
click_button
access_level
end
click_element
:invite_button
click_element
:invite_button
end
end
...
...
qa/qa/specs/features/ee/browser_ui/1_manage/group/group_audit_logs_1_spec.rb
View file @
d666310d
...
@@ -92,7 +92,7 @@ module QA
...
@@ -92,7 +92,7 @@ module QA
group
.
visit!
group
.
visit!
Page
::
Group
::
Menu
.
perform
(
&
:click_group_members_item
)
Page
::
Group
::
Menu
.
perform
(
&
:click_group_members_item
)
Page
::
Group
::
Members
.
perform
do
|
members_page
|
Page
::
Group
::
Members
.
perform
do
|
members_page
|
members_page
.
add_member
(
user
.
username
)
members_page
.
add_member
(
user
.
username
,
'Guest'
)
members_page
.
update_access_level
(
user
.
username
,
"Developer"
)
members_page
.
update_access_level
(
user
.
username
,
"Developer"
)
members_page
.
remove_member
(
user
.
username
)
members_page
.
remove_member
(
user
.
username
)
end
end
...
...
qa/qa/specs/features/ee/browser_ui/1_manage/project/project_audit_logs_spec.rb
View file @
d666310d
...
@@ -44,7 +44,7 @@ module QA
...
@@ -44,7 +44,7 @@ module QA
Page
::
Project
::
Menu
.
perform
(
&
:click_members
)
Page
::
Project
::
Menu
.
perform
(
&
:click_members
)
Page
::
Project
::
Members
.
perform
do
|
members
|
Page
::
Project
::
Members
.
perform
do
|
members
|
members
.
add_member
(
user
.
username
)
members
.
add_member
(
user
.
username
,
'Guest'
)
end
end
end
end
...
...
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