summaryrefslogtreecommitdiff
path: root/spec/support/helpers/listbox_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/helpers/listbox_helpers.rb')
-rw-r--r--spec/support/helpers/listbox_helpers.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/support/helpers/listbox_helpers.rb b/spec/support/helpers/listbox_helpers.rb
index 5fcd05f31fb..e943790fc65 100644
--- a/spec/support/helpers/listbox_helpers.rb
+++ b/spec/support/helpers/listbox_helpers.rb
@@ -7,18 +7,18 @@ module ListboxHelpers
end
def select_listbox_item(text, exact_text: false)
- find('.gl-listbox-item[role="option"]', text: text, exact_text: exact_text).click
+ find('.gl-new-dropdown-item[role="option"]', text: text, exact_text: exact_text).click
end
def expect_listbox_item(text)
- expect(page).to have_css('.gl-listbox-item[role="option"]', text: text)
+ expect(page).to have_css('.gl-new-dropdown-item[role="option"]', text: text)
end
def expect_no_listbox_item(text)
- expect(page).not_to have_css('.gl-listbox-item[role="option"]', text: text)
+ expect(page).not_to have_css('.gl-new-dropdown-item[role="option"]', text: text)
end
def expect_listbox_items(items)
- expect(find_all('.gl-listbox-item[role="option"]').map(&:text)).to eq(items)
+ expect(find_all('.gl-new-dropdown-item[role="option"]').map(&:text)).to eq(items)
end
end