Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaspreetaxelerant/255abad79e00d87ab7e5eb8629f21b89 to your computer and use it in GitHub Desktop.
Save jaspreetaxelerant/255abad79e00d87ab7e5eb8629f21b89 to your computer and use it in GitHub Desktop.
feature file-1
@test1
Feature: Login and Create content for BehatSite
As a Drupal user
I need to be able to create Article and Basic Page
Background: Login process for Behat
Given I go to "user"
When I fill in "edit-name" with "behat_admin_user"
And I fill in "edit-pass" with "behat_admin_user"
And I press the "edit-submit" button
Then I should see an ".user-logged-in" element
Scenario: Create Basic Page on Behat site
Given I go to "/node/add/page"
And I fill in "Title" with "BehatTest"
And I fill in "Body" with "Test Body"
And I press the "Save" button
Then I should see the text "BehatTest"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment