Created
May 6, 2014 17:15
-
-
Save EvanAgee/d811760d0ca1a09f0cbc to your computer and use it in GitHub Desktop.
Example Behat feature for testing Drupal node creation
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
# https://gist.github.com/jhedstrom/5708233 | |
Feature: Editor Tests | |
As a Conference Manager | |
I should be able to create a Node of type Session | |
@javascript @api | |
Scenario: Make sure Conference Manager can create Session | |
Given I am logged in as a user with the "Conference Manager" role | |
When I visit "node/add/session" | |
And I enter "Test Session" for "edit-title" | |
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 "Test Session" | |
And I should see "Revision state: Draft" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment