My application now includes ajaxy table sorting, and I am looking to implement cucumber tests that cover the functionality with and without JavaScript support.
Using capybara, I know that by using the @javascript flag, it will execute the test with a javascript driver. Is there a way to run the scenario twice - once with javascript enabled and once without?
Perhaps something like this...
@test-both-javascript-and-non-javascript
Scenario: Table Search
When I enter "search" as "Jonathan"
And I click "Search"
Then I should be able to view users matching the search criteria:
| Jonathan | Smith | <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="1e7471707f6a767f705e7b7360767976703b767a78">[email protected]</a> | active |