2 Feature: Test DrupalContext
3 In order to prove the Drupal context using the blackbox driver is working properly
5 I need to use the step definitions of this context
7 Scenario: Test the ability to find a heading in a region
8 Given I am on the homepage
9 When I click "Download & Extend"
10 Then I should see the heading "Download" in the "content" region
12 Scenario: Clicking content in a region
13 Given I am at "community.html"
14 When I click "IRC" in the "content" region
15 Then I should see "Page status" in the "right sidebar"
16 And I should see the link "Drupal News" in the "footer" region
18 Scenario: Viewing content in a region
19 Given I am on the homepage
20 Then I should see "Build something amazing." in the "left header"
22 Scenario: Test ability to find text that should not appear in a region
23 Given I am on the homepage
24 Then I should not see the text "Proprietary software is cutting edge" in the "left header"
26 Scenario: Submit a form in a region
27 Given I am on the homepage
28 When I fill in "Search…" with "Views" in the "navigation" region
29 And I press "Search" in the "navigation" region
30 Then I should see the text "Search again" in the "right sidebar" region
32 Scenario: Check a link should not exist in a region
33 Given I am on the homepage
34 Then I should not see the link "This link should never exist in a default Drupal install" in the "right header"
36 Scenario: Find a button
37 Given I am on the homepage
38 Then I should see the "Search" button
40 Scenario: Find a button in a region
41 Given I am on the homepage
42 Then I should see the "Search" button in the "navigation"
44 Scenario: Find an element in a region
45 Given I am on the homepage
46 Then I should see the "h1" element in the "left header"
48 Scenario: Element not in region
49 Given I am on the homepage
50 Then I should not see the "h1" element in the "footer"
52 Scenario: Text not in element in region
53 Given I am on the homepage
54 Then I should not see "DotNetNuke" in the "h1" element in the "left header"
56 Scenario: Find an element with an attribute in a region
57 Given I am on the homepage
58 Then I should see the "h1" element with the "id" attribute set to "site-name" in the "left header" region
60 Scenario: Find text in an element with an attribute in a region
61 Given I am on the homepage
62 Then I should see "Drupal" in the "h1" element with the "id" attribute set to "site-name" in the "left header" region
64 Scenario: Error messages
65 Given I am on "user.html"
67 Then I should see the error message "Password field is required"
68 And I should not see the error message "Sorry, unrecognized username or password"
69 And I should see the following error messages:
71 | Username or email field is required. |
72 | Password field is required |
73 And I should not see the following error messages:
75 | Sorry, unrecognized username or password |
76 | Unable to send e-mail. Contact the site administrator if the problem persists |
79 Scenario: Zombie driver is functional
80 Given I am on the homepage
81 When I click "Download & Extend"
82 Then I should see the link "Distributions"