Refactor playlists features

This commit is contained in:
Thibault Jouan
2011-07-19 19:22:53 +00:00
parent d35327e6f2
commit 3e7f4a7168
2 changed files with 8 additions and 12 deletions

View File

@@ -5,20 +5,21 @@ Feature: Playlists
I want to manage some playlists
Scenario: List playlists
Given Foo and Bar playlists
Given a playlist named "Electro"
And a playlist named "Reggae"
When I am on the playlists page
Then I should see "Foo" within "ul>li"
And I should see "Bar" within "ul>li+li"
Then I should see "Electro" within "ul>li:first-child"
And I should see "Reggae" within "ul>li:first-child+li"
Scenario: Create playlist
Given I am on the playlists page
When I follow "Create playlist"
And I fill in "Name" with "Electro"
And I press "Create"
Then I should see "Electro" within "ul>li"
Then I should see "Electro" within "ul>li:first-child"
Scenario: Edit playlist
Given a playlist named Electro
Given a playlist named "Electro"
And I am on the playlists page
When I follow "Electro"
And I fill in "Name" with "Rock"