summaryrefslogtreecommitdiff
path: root/spec/support/helpers
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-01-09 15:08:32 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-01-09 15:08:32 +0000
commite9de69b545c25c9cb7fd410f9bf8ba34c6bb727b (patch)
treea59ae937a12f9e03e7c4269af4a3a0fcb1e540b2 /spec/support/helpers
parent1935f3e81b99c00697bf0b4d6a44d64068b34745 (diff)
downloadgitlab-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.rb6
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