2 In order to demonstrate the Drush driver
4 I need to show how to tag scenarios
6 Scenario: Untagged scenario uses blackbox driver and fails
7 # features/drush.feature:6
8 Given I am logged in as a user with the "authenticated user" role
9 # FeatureContext::iAmLoggedInWithRole()
10 No ability to create users in Drupal\Driver\BlackboxDriver.
11 Put `@api` into your feature and add an api driver
12 (ex: `api_driver: drupal`) in behat.yml.
13 When I click "My account"
14 # FeatureContext::iClick()
15 Then I should see the heading "History"
16 # FeatureContext::assertHeading()
19 Scenario: Tagged scenario uses Drush driver and succeeds
20 # features/drush.feature:12
21 Given I am logged in as a user with the "authenticated user" role
22 # FeatureContext::iAmLoggedInWithRole()
23 When I click "My account"
24 # FeatureContext::iClick()
25 Then I should see the heading "History"
26 # FeatureContext::assertHeading()
28 2 scenarios (1 passed, 1 failed)
29 6 steps (3 passed, 2 skipped, 1 failed)