Add latest added tracks list on the home page

This commit is contained in:
Thibault Jouan
2011-07-27 21:42:33 +00:00
parent b39bc2d6da
commit 46abe07268
8 changed files with 46 additions and 0 deletions

View File

@@ -8,3 +8,12 @@ Feature: Home
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"