From 83384b08ea3bc67fa102c1fbead57ffb6fe6a3a5 Mon Sep 17 00:00:00 2001 From: Sarah Mei <sarahmei@gmail.com> Date: Mon, 5 Sep 2011 16:50:16 -0700 Subject: [PATCH] Wait for aspect toggles to return before looking for content --- features/posts_from_main_page.feature | 2 ++ 1 file changed, 2 insertions(+) diff --git a/features/posts_from_main_page.feature b/features/posts_from_main_page.feature index 7ae3298270..5950a5f75a 100644 --- a/features/posts_from_main_page.feature +++ b/features/posts_from_main_page.feature @@ -35,10 +35,12 @@ Feature: posting from the main page When I am on the aspects page And I follow "PostTo" within "#aspect_nav" + And I wait for the ajax to finish Then I should see "I am eating a yogurt" When I am on the aspects page And I follow "DidntPostTo" within "#aspect_nav" + And I wait for the ajax to finish Then I should not see "I am eating a yogurt" Scenario: post a photo with text -- GitLab