From 4d5a40c37677b3a2a06d7ed97caa6f6447bebef4 Mon Sep 17 00:00:00 2001 From: Matt Rogers Date: Thu, 20 Oct 2011 12:09:00 -0500 Subject: [PATCH] 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 --- features/project_list.feature | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/features/project_list.feature b/features/project_list.feature index b78b2aba..bccb8f07 100644 --- a/features/project_list.feature +++ b/features/project_list.feature @@ -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