mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Fix select2 capybara issues
This commit is contained in:
@@ -111,6 +111,8 @@ module WebHelper
|
||||
page.find(:xpath, '//body')
|
||||
.find(:css, '.select2-drop-active .select2-result-label', text: options[:select_text] || value)
|
||||
.click
|
||||
|
||||
expect(page).to have_select2 options[:from], selected: options[:select_text] || value
|
||||
end
|
||||
|
||||
def open_select2(selector)
|
||||
|
||||
Reference in New Issue
Block a user