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/listbox_helpers.rb')
-rw-r--r--spec/support/helpers/listbox_helpers.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/helpers/listbox_helpers.rb b/spec/support/helpers/listbox_helpers.rb
index e943790fc65..7a734d2b097 100644
--- a/spec/support/helpers/listbox_helpers.rb
+++ b/spec/support/helpers/listbox_helpers.rb
@@ -10,6 +10,10 @@ module ListboxHelpers
find('.gl-new-dropdown-item[role="option"]', text: text, exact_text: exact_text).click
end
+ def select_disclosure_dropdown_item(text, exact_text: false)
+ find('.gl-new-dropdown-item', text: text, exact_text: exact_text).click
+ end
+
def expect_listbox_item(text)
expect(page).to have_css('.gl-new-dropdown-item[role="option"]', text: text)
end