The example from Capybara documentation. They tag the whole scenario:
You can switch to the Capybara.javascript_driver (:selenium by default) by tagging scenarios (or features) with @javascript:
@javascript
Scenario: do something Ajaxy
When I click the Ajax link
...
But I want to tag only one step:
Background:
Given I am on the homepage
And There is a button "Click me"
When I click the button "Click me"
@javascript
Then I should see a js pop-up element "Hello" within "#hello .hello"
Is it acceptable behavior? Or do I need to create a separate @javascript
tagged Scenario for only this click action?