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
9cd5555e
Commit
9cd5555e
authored
Feb 07, 2022
by
Sanad Liaquat
Committed by
Ramya Authappan
Feb 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
E2E: Search member before performing the next action
parent
e865eea7
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
6 deletions
+33
-6
app/assets/javascripts/members/components/filter_sort/members_filtered_search_bar.vue
...rs/components/filter_sort/members_filtered_search_bar.vue
+1
-0
qa/qa/page/component/members_filter.rb
qa/qa/page/component/members_filter.rb
+26
-0
qa/qa/page/group/members.rb
qa/qa/page/group/members.rb
+3
-0
qa/qa/page/project/members.rb
qa/qa/page/project/members.rb
+1
-0
qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb
...es/browser_ui/1_manage/project/add_project_member_spec.rb
+2
-6
No files found.
app/assets/javascripts/members/components/filter_sort/members_filtered_search_bar.vue
View file @
9cd5555e
...
...
@@ -151,6 +151,7 @@ export default {
:search-input-placeholder=
"filteredSearchBar.placeholder"
:initial-filter-value=
"initialFilterValue"
data-testid=
"members-filtered-search-bar"
data-qa-selector=
"members_filtered_search_bar_content"
@
onFilter=
"handleFilter"
/>
</
template
>
qa/qa/page/component/members_filter.rb
0 → 100644
View file @
9cd5555e
# frozen_string_literal: true
module
QA
module
Page
module
Component
module
MembersFilter
extend
QA
::
Page
::
PageConcern
def
self
.
included
(
base
)
super
base
.
view
'app/assets/javascripts/members/components/filter_sort/members_filtered_search_bar.vue'
do
element
:members_filtered_search_bar_content
end
end
def
search_member
(
username
)
# TODO: Update the two actions below to use direct qa selectors once this is implemented:
# https://gitlab.com/gitlab-org/gitlab-ui/-/issues/1688
find_element
(
:members_filtered_search_bar_content
).
find
(
'input'
).
set
(
username
)
find
(
'.gl-search-box-by-click-search-button'
).
click
end
end
end
end
end
qa/qa/page/group/members.rb
View file @
9cd5555e
...
...
@@ -6,6 +6,7 @@ module QA
class
Members
<
Page
::
Base
include
Page
::
Component
::
InviteMembersModal
include
Page
::
Component
::
UsersSelect
include
Page
::
Component
::
MembersFilter
view
'app/assets/javascripts/members/components/modals/remove_member_modal.vue'
do
element
:remove_member_modal_content
...
...
@@ -31,6 +32,8 @@ module QA
end
def
update_access_level
(
username
,
access_level
)
search_member
(
username
)
within_element
(
:member_row
,
text:
username
)
do
click_element
:access_level_dropdown
click_element
:access_level_link
,
text:
access_level
...
...
qa/qa/page/project/members.rb
View file @
9cd5555e
...
...
@@ -5,6 +5,7 @@ module QA
module
Project
class
Members
<
Page
::
Base
include
QA
::
Page
::
Component
::
InviteMembersModal
include
QA
::
Page
::
Component
::
MembersFilter
view
'app/assets/javascripts/members/components/members_tabs.vue'
do
element
:groups_list_tab
...
...
qa/qa/specs/features/browser_ui/1_manage/project/add_project_member_spec.rb
View file @
9cd5555e
# frozen_string_literal: true
module
QA
RSpec
.
describe
'Manage'
,
:requires_admin
,
quarantine:
{
issue:
'https://gitlab.com/gitlab-org/gitlab/-/issues/350598'
,
type: :needs_update
,
only:
{
subdomain: :staging
}
}
do
RSpec
.
describe
'Manage'
,
:requires_admin
do
describe
'Add project member'
do
before
do
Runtime
::
Feature
.
enable
(
:invite_members_group_modal
)
...
...
@@ -25,7 +21,7 @@ module QA
Page
::
Project
::
Menu
.
perform
(
&
:click_members
)
Page
::
Project
::
Members
.
perform
do
|
members
|
members
.
add_member
(
user
.
username
)
members
.
search_member
(
user
.
username
)
expect
(
members
).
to
have_content
(
"@
#{
user
.
username
}
"
)
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