17 lines
No EOL
521 B
Gherkin
17 lines
No EOL
521 B
Gherkin
Feature: user authentication
|
|
|
|
Scenario: user logs in
|
|
Given a user with username "ohai" and password "secret"
|
|
When I go to the new user session page
|
|
And I fill in "Username" with "ohai"
|
|
And I fill in "Password" with "secret"
|
|
And I press "Sign in"
|
|
Then I should be on the stream page
|
|
|
|
@javascript
|
|
Scenario: user logs out
|
|
Given I am signed in
|
|
And I click on my name in the header
|
|
And I follow "Log out"
|
|
And I wait for 1 seconds
|
|
Then I should be on the new user session page |