X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fdrupal%2Fdrupal-extension%2Ffeatures%2Fd8.feature;fp=vendor%2Fdrupal%2Fdrupal-extension%2Ffeatures%2Fd8.feature;h=d079c60a285f5dcb0fd33a6f57767a90fc96effa;hb=1270d9129ce8f27c9b28b10518e32132c58e0aca;hp=0000000000000000000000000000000000000000;hpb=c27c0f0cdaa3f354b1fe54a56ae7e854be6e3f68;p=yaffs-website diff --git a/vendor/drupal/drupal-extension/features/d8.feature b/vendor/drupal/drupal-extension/features/d8.feature new file mode 100644 index 000000000..d079c60a2 --- /dev/null +++ b/vendor/drupal/drupal-extension/features/d8.feature @@ -0,0 +1,32 @@ +@d8 @api +Feature: DrupalContext + In order to prove the Drupal context is working properly for Drupal 8 + As a developer + I need to use the step definitions of this context + + Scenario: Create and log in as a user + Given I am logged in as a user with the "authenticated user" role + When I click "My account" + Then I should see the text "Member for" + + Scenario: Target links within table rows + Given I am logged in as a user with the "administrator" role + When I am at "admin/structure/types" + And I click "Manage fields" in the "Article" row + Then I should be on "admin/structure/types/manage/article/fields" + And I should see the link "Add field" + + Scenario: Create users with roles + Given users: + | name | mail | roles | + | Joe User | joe@example.com | Administrator | + | Jane Doe | jane@example.com | | + And I am logged in as a user with the "administrator" role + When I visit "admin/people" + Then I should see the text "Administrator" in the "Joe User" row + And I should not see the text "administrator" in the "Jane Doe" row + + Scenario: Find a heading in a region + Given I am not logged in + When I am on the homepage + Then I should see the heading "Search" in the "left sidebar" region