Security update for permissions_by_term
[yaffs-website] / vendor / drupal / drupal-extension / doc / _static / snippets / blackbox.feature
1 Feature: Test DrupalContext
2   In order to prove the Drupal context using the blackbox driver is working properly
3   As a developer
4   I need to use the step definitions of this context
5
6   Scenario: Test the ability to find a heading in a region
7     Given I am on the homepage
8     When I click "Download & Extend"
9     Then I should see the heading "Core" in the "content" region
10
11   Scenario: Clicking content in a region
12     Given I am at "download"
13     When I click "About Distributions" in the "content" region
14     Then I should see "Page status" in the "right sidebar"
15     And I should see the link "Drupal News" in the "footer" region
16
17   Scenario: Viewing content in a region
18     Given I am on the homepage
19     Then I should see "Come for the software, stay for the community" in the "left header"
20
21   Scenario: Test ability to find text that should not appear in a region
22     Given I am on the homepage
23     Then I should not see the text "Proprietary software is cutting edge" in the "left header"
24
25   Scenario: Submit a form in a region
26     Given I am on the homepage
27     When I fill in "Search Drupal.org" with "Views" in the "right header" region
28     And I press "Search" in the "right header" region
29     Then I should see the text "Search again" in the "right sidebar" region
30
31   Scenario: Check a link should not exist in a region
32     Given I am on the homepage
33     Then I should not see the link "This link should never exist in a default Drupal install" in the "right header"
34
35   Scenario: Find a button
36     Given I am on the homepage
37     Then I should see the "Search" button
38
39   Scenario: Find a button in a region
40     Given I am on the homepage
41     Then I should see the "Search" button in the "right header"
42
43   Scenario: Find an element in a region
44     Given I am on the homepage
45     Then I should see the "h1" element in the "left header"
46
47   Scenario: Element not in region
48     Given I am on the homepage
49     Then I should not see the "h1" element in the "footer"
50
51   Scenario: Text not in element in region
52     Given I am on the homepage
53     Then I should not see "DotNetNuke" in the "h1" element in the "left header"
54
55   Scenario: Find an element with an attribute in a region
56     Given I am on the homepage
57     Then I should see the "h1" element with the "id" attribute set to "site-name" in the "left header" region
58
59   Scenario: Find text in an element with an attribute in a region
60     Given I am on the homepage
61     Then I should see "Drupal" in the "h1" element with the "id" attribute set to "site-name" in the "left header" region
62
63   Scenario: Error messages
64    Given I am on "/user"
65    When I press "Log in"
66    Then I should see the error message "Password field is required"
67    And I should not see the error message "Sorry, unrecognized username or password"
68    And I should see the following error messages:
69    | error messages             |
70    | Username field is required |
71    | Password field is required |
72    And I should not see the following error messages:
73    | error messages                                                                |
74    | Sorry, unrecognized username or password                                      |
75    | Unable to send e-mail. Contact the site administrator if the problem persists |
76
77  Scenario: Messages
78    Given I am on "/user/register"
79    When I press "Create new account"
80    Then I should see the message "Username field is required"
81    But I should not see the message "Registration successful. You are now logged in"