blob: baff416dda6d06c8b8fff110981a790d87b6b34f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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 aspects 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"
Then I should be on the home page
Scenario: user uses token auth
Given a user with username "ohai" and password "secret"
When I post a photo with a token
And I go to the aspects page
Then I should be on the new user session page
|