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
allmethod instead of using Nokogiri directly - and to use Capybara's
node.textmethod instead of Nokogiri'snode.contentmethod
And finally here is the code :
Then /^I should( not)? see the following table rows?( in any order)?:?$/ do |negate, ...