0

Capybara ドキュメントの例。彼らはシナリオ全体にタグを付けます:

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
  ...

しかし、私は1つのステップだけにタグを付けたい:

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"

それは容認できる行動ですか?@javascriptまたは、このクリック アクションだけのために別のタグ付きシナリオを作成する必要がありますか?

4

1 に答える 1