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/8ddedb40e75dcd80d7a9f0fc4677e081 to your computer and use it in GitHub Desktop.
Save jaspreetaxelerant/8ddedb40e75dcd80d7a9f0fc4677e081 to your computer and use it in GitHub Desktop.
Feature file-2
@test2
Feature: Login and Create content for BehatSite
As a Drupal user
I need to be able to edit 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
@javascript
Scenario: Edit Page on Behat site
Given I am on "/"
Given I visit content page "behattest"
And I click "Edit"
And I wait for AJAX to finish
And I fill in "Title" with "newtext1"
And I press the "edit-submit" button
Then I am at "newtext1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment