Skip to content

Instantly share code, notes, and snippets.

@shulard
Last active November 12, 2015 08:48
Show Gist options
  • Save shulard/cab6c456d41bc29ba974 to your computer and use it in GitHub Desktop.
Save shulard/cab6c456d41bc29ba974 to your computer and use it in GitHub Desktop.
Behat sample features
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