Skip to content

Instantly share code, notes, and snippets.

@cAstraea
Created May 9, 2016 15:36
Show Gist options
  • Save cAstraea/d5130181436458a9ffb9074831f17f18 to your computer and use it in GitHub Desktop.
Save cAstraea/d5130181436458a9ffb9074831f17f18 to your computer and use it in GitHub Desktop.
Feature: Login
In order to gain access to the skoazell interface
As a web user
I need to login
@javascript
Scenario: Loggin in with correct username and password
Given I am on "/"
When I fill in "form-_username" with "admin@gmail.com"
When I fill in "form-_password" with "123"
And I press "login_submit"
Then I should see "Demandes d'assistance"
Given I go to "http://127.0.0.1:8080/logout"
Then I should see "Connection"
Then I should be on "http://127.0.0.1:8080/login"
@javascript
Scenario: Logging on with wrong username and password
Given I am on "/"
When I fill in "form-_username" with "admin"
And I press "login_submit"
Then I should see "Invalid credentials."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment