diff options
Diffstat (limited to 'spec/support/helpers/features/dom_helpers.rb')
-rw-r--r-- | spec/support/helpers/features/dom_helpers.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/support/helpers/features/dom_helpers.rb b/spec/support/helpers/features/dom_helpers.rb index ac6523f3360..cbbb80dde36 100644 --- a/spec/support/helpers/features/dom_helpers.rb +++ b/spec/support/helpers/features/dom_helpers.rb @@ -2,12 +2,12 @@ module Features module DomHelpers - def find_by_testid(testid) - page.find("[data-testid='#{testid}']") + def find_by_testid(testid, **kwargs) + page.find("[data-testid='#{testid}']", **kwargs) end - def within_testid(testid, &block) - page.within("[data-testid='#{testid}']", &block) + def within_testid(testid, **kwargs, &block) + page.within("[data-testid='#{testid}']", **kwargs, &block) end end end |