Add features for listing projects on the projects page

The features cover listing a project the following data:
- n active actions and m deferred actions
- n active actions and 0 deferred actions
- 0 active actions and m deferred actions
- 0 active actions and 0 deferred actions
This commit is contained in:
Matt Rogers 2011-10-20 12:09:00 -05:00
parent a7ce073351
commit 4d5a40c376

View file

@ -115,3 +115,27 @@ Feature: Manage the list of projects
Then I should see "foo,bar"
And the badge should show 4
And the project list badge for "active" projects should show 4
@selenium @wip
Scenario: Listing projects with only active actions
Given I have a project "do it now" with 2 active todos
When I go to the projects page
Then the project "do it now" should have 2 actions listed
@selenium @wip
Scenario: Listing projects with both active and deferred actions
Given I have a project "now and later" with 2 active actions and 2 deferred actions
When I go to the projects page
Then the project "now and later" should have 2 actions listed
@selenium @wip
Scenario: Listing projects with only deferred actions
Given I have a project "only later" with 3 deferred actions
When I go to the projects page
Then the project "only later" should have 3 deferred actions listed
@selenium @wip
Scenario: Listing projects with no actions
Given I have a project "all done" with 0 active actions and 0 deferred actions
When I go to the projects page
Then the project "all done" should have 0 actions listed