mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Improve flaky form interaction process in #fill_in_tag
This commit is contained in:
@@ -137,7 +137,10 @@ module WebHelper
|
||||
end
|
||||
|
||||
def fill_in_tag(tag_name, selector = "tags-input .tags input")
|
||||
expect(page).to have_selector selector
|
||||
find(:css, selector).send_keys ""
|
||||
find(:css, selector).set "#{tag_name}\n"
|
||||
expect(page).to have_selector ".tag-list .tag-item span", text: tag_name
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user