X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fdrupal-extension%2Ffeatures%2Fblackbox.feature;fp=vendor%2Fdrupal%2Fdrupal-extension%2Ffeatures%2Fblackbox.feature;h=59a43368ee068c38d6d794a435e4deab6cecbd95;hp=0000000000000000000000000000000000000000;hb=1270d9129ce8f27c9b28b10518e32132c58e0aca;hpb=c27c0f0cdaa3f354b1fe54a56ae7e854be6e3f68 diff --git a/vendor/drupal/drupal-extension/features/blackbox.feature b/vendor/drupal/drupal-extension/features/blackbox.feature new file mode 100644 index 000000000..59a43368e --- /dev/null +++ b/vendor/drupal/drupal-extension/features/blackbox.feature @@ -0,0 +1,82 @@ +@blackbox +Feature: Test DrupalContext + In order to prove the Drupal context using the blackbox driver is working properly + As a developer + I need to use the step definitions of this context + + Scenario: Test the ability to find a heading in a region + Given I am on the homepage + When I click "Download & Extend" + Then I should see the heading "Download" in the "content" region + + Scenario: Clicking content in a region + Given I am at "community.html" + When I click "IRC" in the "content" region + Then I should see "Page status" in the "right sidebar" + And I should see the link "Drupal News" in the "footer" region + + Scenario: Viewing content in a region + Given I am on the homepage + 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…" with "Views" in the "navigation" region + And I press "Search" in the "navigation" region + Then I should see the text "Search again" in the "right sidebar" region + + Scenario: Check a link should not exist in a region + Given I am on the homepage + Then I should not see the link "This link should never exist in a default Drupal install" in the "right header" + + Scenario: Find a button + Given I am on the homepage + Then I should see the "Search" button + + Scenario: Find a button in a region + Given I am on the homepage + Then I should see the "Search" button in the "navigation" + + Scenario: Find an element in a region + Given I am on the homepage + Then I should see the "h1" element in the "left header" + + Scenario: Element not in region + Given I am on the homepage + Then I should not see the "h1" element in the "footer" + + Scenario: Text not in element in region + Given I am on the homepage + Then I should not see "DotNetNuke" in the "h1" element in the "left header" + + Scenario: Find an element with an attribute in a region + Given I am on the homepage + Then I should see the "h1" element with the "id" attribute set to "site-name" in the "left header" region + + Scenario: Find text in an element with an attribute in a region + Given I am on the homepage + Then I should see "Drupal" in the "h1" element with the "id" attribute set to "site-name" in the "left header" region + + Scenario: Error messages + Given I am on "user.html" + When I press "Log in" + Then I should see the error message "Password field is required" + And I should not see the error message "Sorry, unrecognized username or password" + And I should see the following error messages: + | error messages | + | Username or email field is required. | + | Password field is required | + And I should not see the following error messages: + | error messages | + | Sorry, unrecognized username or password | + | Unable to send e-mail. Contact the site administrator if the problem persists | + + @javascript + Scenario: Zombie driver is functional + Given I am on the homepage + When I click "Download & Extend" + Then I should see the link "Distributions"