3 In order to prove the Drupal context is working properly for Drupal 8
5 I need to use the step definitions of this context
7 Scenario: Create and log in as a user
8 Given I am logged in as a user with the "authenticated user" role
9 When I click "My account"
10 Then I should see the text "Member for"
12 Scenario: Target links within table rows
13 Given I am logged in as a user with the "administrator" role
14 When I am at "admin/structure/types"
15 And I click "Manage fields" in the "Article" row
16 Then I should be on "admin/structure/types/manage/article/fields"
17 And I should see the link "Add field"
19 Scenario: Create users with roles
21 | name | mail | roles |
22 | Joe User | joe@example.com | Administrator |
23 | Jane Doe | jane@example.com | |
24 And I am logged in as a user with the "administrator" role
25 When I visit "admin/people"
26 Then I should see the text "Administrator" in the "Joe User" row
27 And I should not see the text "administrator" in the "Jane Doe" row
29 Scenario: Find a heading in a region
30 Given I am not logged in
31 When I am on the homepage
32 Then I should see the heading "Search" in the "left sidebar" region