mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-02 21:57:17 +00:00
Updates helper to click on css element...
...instead of passing empty_keys
This commit is contained in:
@@ -154,7 +154,7 @@ module WebHelper
|
||||
|
||||
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).click
|
||||
find(:css, selector).set "#{tag_name}\n"
|
||||
expect(page).to have_selector ".tag-list .tag-item span", text: tag_name
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user