Last active
November 12, 2015 08:48
-
-
Save shulard/cab6c456d41bc29ba974 to your computer and use it in GitHub Desktop.
Behat sample features
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
Feature: Login | |
In order to use my application | |
As a website user | |
I need to be logged | |
Scenario: Try to log as a valid user | |
Given I am authenticated as "admin" | |
Then I should be on "/sites" | |
Scenario: Try to log with invalid credentials | |
Given I am authenticated as "user1" with "pass1" | |
Then I should be on "/auth" | |
And I should see a ".label-danger" element |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment