Cucumber step to match table rows with Capybara (within wrapper method supported)
Here is an update from the original card to support Capybara's within
method.
The original card always looked thru all tables on the page.
The 2 points i changed were :
- to use Capybara's
all
method instead of using Nokogiri directly - and to use Capybara's
node.text
method instead of Nokogiri'snode.content
method
And finally here is the code :
Then /^I should( not)? see the following table rows?( in any order)?:?$/ do |negate, ...