Skip to content

Commit

Permalink
Merge pull request #230 from jhedstrom/fix-blackbox-tests
Browse files Browse the repository at this point in the history
Fix blackbox tests against drupal.org

Signed-off-by: Jonathan Hedstrom <jhedstrom@gmail.com>
  • Loading branch information
jhedstrom committed Nov 30, 2015
1 parent d335869 commit a553151
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ matrix:
env: DRUPAL_VERSION=6
allow_failures:
- php: 7.0
env: DRUPAL_VERSION=7
- php: 5.3

# Enable Travis containers.
Expand Down
10 changes: 2 additions & 8 deletions features/blackbox.feature
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ Feature: Test DrupalContext

Scenario: Viewing content in a region
Given I am on the homepage
Then I should see "Come for the software, stay for the community" in the "left header"
Then I should see "Build something amazing." in the "left header"

Scenario: Test ability to find text that should not appear in a region
Given I am on the homepage
Then I should not see the text "Proprietary software is cutting edge" in the "left header"

Scenario: Submit a form in a region
Given I am on the homepage
When I fill in "Search Drupal.org" with "Views" in the "right header" region
When I fill in "Search " with "Views" in the "right header" region
And I press "Search" in the "right header" region
Then I should see the text "Search again" in the "right sidebar" region

Expand Down Expand Up @@ -75,12 +75,6 @@ Feature: Test DrupalContext
| Sorry, unrecognized username or password |
| Unable to send e-mail. Contact the site administrator if the problem persists |

Scenario: Messages
Given I am on "/user/register"
When I press "Create new account"
Then I should see the message "Username field is required"
But I should not see the message "Registration successful. You are now logged in"

@javascript
Scenario: Zombie driver is functional
Given I am on the homepage
Expand Down

0 comments on commit a553151

Please sign in to comment.