From 3ad8101ed62c68a477b017e6e6bc35c629e7dfb3 Mon Sep 17 00:00:00 2001 From: did Date: Sun, 14 Aug 2011 14:07:15 -0700 Subject: [PATCH] re-write tests for the (reverse) has_many features (#164) --- features/admin/content_types/has_many.feature | 16 +++++++++------- .../admin/content_types/has_many_reverse.feature | 13 +------------ 2 files changed, 10 insertions(+), 19 deletions(-) diff --git a/features/admin/content_types/has_many.feature b/features/admin/content_types/has_many.feature index e8776a64..32614ddc 100644 --- a/features/admin/content_types/has_many.feature +++ b/features/admin/content_types/has_many.feature @@ -32,7 +32,7 @@ Scenario: I view a client without any projects And I follow "Alpha, Inc" And I wait until the has many selector is visible Then I should see "Empty" within the list of items - + @javascript Scenario: I add a project to a client When I go to the "Clients" model list page @@ -43,9 +43,11 @@ Scenario: I add a project to a client When I press "Save" And I wait until the has many selector is visible Then I should see "Fun project" within the list of added items - And I should not see "Empty" within the list of items - When I go to the "Clients" model list page - And I follow "Beta, Inc" - And I wait until the has many selector is visible - Then I should see "Fun project" within the list of added items - And I should not see "Empty" within the list of items + And "Fun project" should not be an option for "label" + # + # And I should not see "Empty" within the list of items + # When I go to the "Clients" model list page + # And I follow "Beta, Inc" + # And I wait until the has many selector is visible + # Then I should see "Fun project" within the list of added items + # And I should not see "Empty" within the list of items diff --git a/features/admin/content_types/has_many_reverse.feature b/features/admin/content_types/has_many_reverse.feature index a0f01c04..750f71c5 100644 --- a/features/admin/content_types/has_many_reverse.feature +++ b/features/admin/content_types/has_many_reverse.feature @@ -44,12 +44,6 @@ Scenario: I attach already created items for an existing parent and save it When I press "Save" And I wait until the has many selector is visible Then "My sexy project" should not be an option for "label" - When I go to the "Clients" model list page - And I follow "Apple Inc" - And I wait until the has many selector is visible - Then "My sexy project" should not be an option for "label" - And I should not see "Empty" within the list of items - @javascript Scenario: I create a new item and attach it @@ -64,9 +58,4 @@ Scenario: I create a new item and attach it Then I should see "Content was successfully created." When I wait until the has many selector is visible Then I should see "iPad" - And "iPad" should not be an option for "label" - When I go to the "Clients" model list page - And I follow "Apple Inc" - And I wait until the has many selector is visible - Then "iPad" should not be an option for "label" - And I should not see "Empty" within the list of items + And "iPad" should not be an option for "label" \ No newline at end of file