scube-server/features/home.feature
Thibault Jouan 7bf4d4c5f9 Add authentication and User model
* Add User model
* Add SessionsController
* Add password authentication on User
* Request authentication for all actions except sign in
* Add some helpers for ApplicationController
* Update features to work with mandatory authentication
2011-08-06 23:04:36 +00:00

23 lines
683 B
Gherkin

Feature: Home
So that I can use scube efficiently
As a listener
I want to access the main features and valuable content from the homepage
Background:
Given I am signed in
Scenario: Playlist access
Given a playlist named "Electro"
When I am on the home page
Then I should see "Electro" within "ul>li"
Scenario: Last tracks added
Given the following tracks:
| name | created_at |
| Mega song 1 | 2011-07-27 19:13:42 |
| Mega song 2 | 2011-07-27 19:58:57 |
When I am on the home page
Then I should see "Mega song 2" within "ul>li:first-child"
And I should see "Mega song 1" within "ul>li:first-child+li"