diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-09 15:08:32 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-09 15:08:32 +0000 |
commit | e9de69b545c25c9cb7fd410f9bf8ba34c6bb727b (patch) | |
tree | a59ae937a12f9e03e7c4269af4a3a0fcb1e540b2 /spec/support/helpers | |
parent | 1935f3e81b99c00697bf0b4d6a44d64068b34745 (diff) | |
download | gitlab-ce-e9de69b545c25c9cb7fd410f9bf8ba34c6bb727b.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/helpers')
-rw-r--r-- | spec/support/helpers/listbox_input_helper.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/support/helpers/listbox_input_helper.rb b/spec/support/helpers/listbox_input_helper.rb index ca7fbac5daa..c69190387f1 100644 --- a/spec/support/helpers/listbox_input_helper.rb +++ b/spec/support/helpers/listbox_input_helper.rb @@ -9,6 +9,12 @@ module ListboxInputHelper end end + def listbox_input_value(value, from:) + open_listbox_input(from) do + find("[role='option'][data-testid='listbox-item-#{value}']").click + end + end + def open_listbox_input(selector) page.within(selector) do page.find('button[aria-haspopup="listbox"]').click |