mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
12 lines
245 B
Ruby
12 lines
245 B
Ruby
# frozen_string_literal: true
|
|
|
|
def dismiss_warning
|
|
# Click dismiss on distributor warning
|
|
click_button 'Dismiss'
|
|
end
|
|
|
|
def trigger_click(id, text)
|
|
# replace node buy the elements node, for example
|
|
page.find(id, text).trigger("click")
|
|
end
|