Created
July 10, 2019 16:09
-
-
Save jaspreetaxelerant/255abad79e00d87ab7e5eb8629f21b89 to your computer and use it in GitHub Desktop.
feature file-1
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
@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