Fix select2 capybara issues

This commit is contained in:
Matt-Yorkley
2020-10-24 23:36:50 +01:00
parent f22c7fcdfb
commit 3f1e496731

View File

@@ -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)