Created
January 22, 2016 18:20
-
-
Save visabhishek/e01dbeec5760cdf80c28 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Feature: Behat tests for a clean install of the Drupal 8 standard profile. These | |
tests are meant both to verify the Drupal install as well as Behat test features | |
(like API access and JavaScript handling). | |
Scenario: Ensure the Login link is available for anonymous users. | |
Given I am an anonymous user | |
When I am on the homepage | |
And I click "Log in" | |
Then I should see an "input#edit-name" element | |
And I should see an "input#edit-pass" element | |
@api | |
Scenario: Ensure as a logged in user, I can log out. | |
Given I am logged in as a user with the "authenticated user" role | |
When I click "Log out" | |
Then I should be on the homepage | |
And I should see "Log in" | |
@api @javascript | |
Scenario: Ensure the Reports page is loaded into an overlay when the Reports | |
menu item is clicked. | |
Given I am logged in as a user with the "administrator" role | |
And I am on the homepage | |
And I click "My account" | |
And I click "Edit" | |
When I fill in "pass[pass1]" with "123" | |
Then I should see "Password strength" in the ".form-item-pass-pass1" element | |
@wip | |
Scenario: This is a broken test scenario, which should be excluded with the | |
example Gruntconfig.json due to the wip tag. | |
Given I am logged in as a user with the "xyz" role | |
When I am on the xyz page | |
And I click "Xyz" | |
Then I should be on "abc" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment