Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/helpers/features/invite_members_modal_helpers.rb')
-rw-r--r--spec/support/helpers/features/invite_members_modal_helpers.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/spec/support/helpers/features/invite_members_modal_helpers.rb b/spec/support/helpers/features/invite_members_modal_helpers.rb
index deb75cffe0d..c40e060bc8e 100644
--- a/spec/support/helpers/features/invite_members_modal_helpers.rb
+++ b/spec/support/helpers/features/invite_members_modal_helpers.rb
@@ -2,6 +2,8 @@
module Features
module InviteMembersModalHelpers
+ include ListboxHelpers
+
def invite_member(names, role: 'Guest', expires_at: nil)
click_on 'Invite members'
@@ -63,7 +65,10 @@ module Features
end
def choose_options(role, expires_at)
- select role, from: 'Select a role'
+ page.within role_dropdown_selector do
+ toggle_listbox
+ select_listbox_item(role, exact_text: true)
+ end
fill_in 'YYYY-MM-DD', with: expires_at.strftime('%Y-%m-%d') if expires_at
end
@@ -72,6 +77,10 @@ module Features
click_link "Groups"
end
+ def role_dropdown_selector
+ '[data-testid="access-level-dropdown"]'
+ end
+
def group_dropdown_selector
'[data-testid="group-select-dropdown"]'
end