From c0ea7054d69893701a07d275ffbd712436a78f86 Mon Sep 17 00:00:00 2001 From: Gonzalo Rodriguez Date: Sat, 8 Oct 2011 18:39:42 -0200 Subject: [PATCH] Add cuke that tests #2102. Change aspects in the middle of posting. --- features/posts_from_main_page.feature | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/features/posts_from_main_page.feature b/features/posts_from_main_page.feature index 0bd76018f..020ab169f 100644 --- a/features/posts_from_main_page.feature +++ b/features/posts_from_main_page.feature @@ -130,3 +130,21 @@ Feature: posting from the main page And I wait for the ajax to finish And I go to the aspects page Then I should not see "I am eating a yogurt" + + Scenario: change aspects in the middle of the post writing + When I select only "NotPostingThingsHere" aspect + And I expand the publisher + And I fill in "status_message_fake_text" with "I am eating a yogurt" + And I follow "PostingTo" within "#aspect_nav" + And I follow "NotPostingThingsHere" within "#aspect_nav" + And I wait for the ajax to finish + Then the publisher should be expanded + When I append " and also cornflakes" to the publisher + And I press "Share" + And I wait for the ajax to finish + And I am on the aspects page + And I select only "PostingTo" aspect + Then I should see "I am eating a yogurt and also cornflakes" + When I am on the aspects page + And I select only "NotPostingThingsHere" aspect + Then I should not see "I am eating a yogurt and also cornflakes"