Skip to content

Instantly share code, notes, and snippets.

@EvanAgee
Created May 6, 2014 17:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EvanAgee/d811760d0ca1a09f0cbc to your computer and use it in GitHub Desktop.
Save EvanAgee/d811760d0ca1a09f0cbc to your computer and use it in GitHub Desktop.
Example Behat feature for testing Drupal node creation
# 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