Created
May 9, 2014 19:36
-
-
Save EvanAgee/adcf8dfd44971f329a54 to your computer and use it in GitHub Desktop.
Behat test for multiple Drupal Content Types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: Content Type Tests | |
As an Administrator | |
I should be able to create nodes of all Content Types | |
@api @Env::Backend @Creator::EvanAgee | |
Scenario: Make sure we can create Basic Pages | |
Given I am logged in as a user with the "administrator" role | |
And I visit "node/add/page" | |
Then I enter "BDD TEST BASIC PAGE" for "Title" | |
And I attach the file "photo.jpg" to "edit-field-images-und-0-upload" | |
And I enter "published" for "workbench_moderation_state_new" | |
And I press "Save" | |
Then I should see "BDD TEST BASIC PAGE" | |
And I should see "Revision state: Published" | |
Then the ".header-bg-image" element should contain ".jpg" | |
@api @Env::Backend @Creator::EvanAgee | |
Scenario: Make sure we can create Article Pages | |
Given I am logged in as a user with the "administrator" role | |
And I visit "node/add/article" | |
And I enter "BDD TEST ARTICLE" for "Title" | |
And I enter "BDD TEST BODY CONTENT..." for "Body" | |
And I attach the file "photo.jpg" to "edit-field-image-und-0-upload" | |
And I enter "published" for "workbench_moderation_state_new" | |
And I press "Save" | |
Then I should see "BDD TEST ARTICLE" | |
And I should see "Revision state: Published" | |
Then print current URL | |
@api @Env::Backend @Creator::EvanAgee | |
Scenario: Make sure we can create FAQ | |
Given I am logged in as a user with the "administrator" role | |
And I visit "node/add/faq" | |
And I enter "BDD TEST FAQ" for "Question" | |
And I enter "BDD TEST BODY CONTENT..." for "Answer" | |
And I enter "published" for "workbench_moderation_state_new" | |
And I press "Save" | |
Then I should see "BDD TEST FAQ" | |
And I should see "Revision state: Published" | |
Then print current URL | |
@api @Env::Backend @Creator::EvanAgee | |
Scenario: Make sure we can create Ministry Partner | |
Given I am logged in as a user with the "administrator" role | |
And I visit "node/add/ministry-partner" | |
And I enter "BDD TEST Ministry Partner" for "Title" | |
And I enter "BDD TEST BODY CONTENT..." for "Body" | |
And I attach the file "photo.jpg" to "edit-field-ministry-partner-logo-und-0-upload" | |
And I enter "published" for "workbench_moderation_state_new" | |
And I press "Save" | |
Then I should see "BDD TEST Ministry Partner" | |
And I should see "Revision state: Published" | |
Then print current URL | |
@api @Env::Backend @Creator::EvanAgee | |
Scenario: Make sure we can create Place | |
Given I am logged in as a user with the "administrator" role | |
And I visit "node/add/place" | |
And I enter "BDD TEST Place" for "Title" | |
And I enter "BDD TEST BODY CONTENT..." for "Body" | |
And I check the box "edit-field-taxonomy-nid-und-31" | |
And I press "Save" | |
Then I should see "BDD TEST Place" | |
Then print current URL | |
@api @Env::Backend @Creator::EvanAgee | |
Scenario: Make sure we can create Registered Event | |
Given I am logged in as a user with the "administrator" role | |
And I visit "node/add/registrations" | |
And I enter "BDD TEST Registered Event" for "Title" | |
And I enter "published" for "workbench_moderation_state_new" | |
And I press "Save" | |
Then I should see "BDD TEST Registered Event" | |
Then print current URL | |
@api @Env::Backend @Creator::EvanAgee | |
Scenario: Make sure we can create Room | |
Given I am logged in as a user with the "administrator" role | |
And I visit "node/add/room" | |
And I enter "BDD TEST Room" for "Title" | |
And I enter "BDD TEST BODY CONTENT..." for "Description" | |
And I attach the file "photo.jpg" to "edit-field-room-photo-und-0-upload" | |
And I attach the file "photo.jpg" to "edit-field-room-floor-plan-und-0-upload" | |
And I select the radio button "Gateway Southlake" | |
And I enter "published" for "workbench_moderation_state_new" | |
And I press "Save" | |
Then I should see "BDD TEST Room" | |
And I should see "Revision state: Published" | |
Then print current URL | |
@api @Env::Backend @Creator::EvanAgee | |
Scenario: Make sure we can create Session | |
Given I am logged in as a user with the "administrator" role | |
And I visit "node/add/session" | |
And I enter "BDD TEST Session" for "Session Title " | |
And I enter "published" for "workbench_moderation_state_new" | |
And I enter "00" for "edit-field-session-time-und-0-value-minute" | |
And I enter "00" for "edit-field-session-time-und-0-value2-minute" | |
And I press "Save" | |
Then I should see "BDD TEST Session" | |
And I should see "Revision state: Published" | |
Then print current URL | |
@api @Env::Backend @Creator::EvanAgee | |
Scenario: Make sure we can create Speaker | |
Given I am logged in as a user with the "administrator" role | |
And I visit "node/add/speaker" | |
And I enter "BDD TEST Speaker" for "Name" | |
And I check the box "edit-field-speaker-type-und-featured" | |
And I attach the file "photo.jpg" to "edit-field-speaker-image-und-0-upload" | |
And I attach the file "photo.jpg" to "edit-field-speaker-image-thumbnail-und-0-upload" | |
And I enter "published" for "workbench_moderation_state_new" | |
And I press "Save" | |
Then I should see "BDD TEST Speaker" | |
And I should see "Revision state: Published" | |
Then print current URL | |
@api @Env::Backend @Creator::EvanAgee | |
Scenario: Make sure we can create Track | |
Given I am logged in as a user with the "administrator" role | |
And I visit "node/add/track" | |
And I enter "BDD TEST Track" for "Title" | |
And I enter "BDD TEST BODY CONTENT..." for "Body" | |
And I press "Preview" | |
And I press "Save" | |
Then I should see "BDD TEST Track" | |
Then print current URL | |
@api @Env::Backend @Creator::EvanAgee | |
Scenario: Make sure we can create Venue | |
Given I am logged in as a user with the "administrator" role | |
And I visit "node/add/venue" | |
And I enter "BDD TEST Venue" for "Title" | |
And I enter "BDD TEST BODY CONTENT..." for "Body" | |
And I attach the file "photo.jpg" to "edit-field-venue-building-und-0-upload" | |
And I enter "published" for "workbench_moderation_state_new" | |
And I press "Save" | |
Then I should see "BDD TEST Venue" | |
And I should see "Revision state: Published" | |
Then print current URL | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment