From 61ae84319337286ffee9f96c1eefcc02a63580a9 Mon Sep 17 00:00:00 2001 From: Maxwell Salzberg Date: Sun, 16 Oct 2011 23:18:38 -0700 Subject: [PATCH] be super pedandic for travis in cukes --- features/step_definitions/aspects_steps.rb | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/features/step_definitions/aspects_steps.rb b/features/step_definitions/aspects_steps.rb index ba490c9bd..b5c8ffa16 100644 --- a/features/step_definitions/aspects_steps.rb +++ b/features/step_definitions/aspects_steps.rb @@ -8,9 +8,20 @@ end When /^I select only "([^"]*)" aspect$/ do |aspect_name| within('#aspect_nav') do click_link 'Select all' if has_link? 'Select all' - click_link 'Deselect all' + end + + And %{I wait for the ajax to finish} + + within('#aspect_nav') do + click_link 'Select all' if has_link? 'Select all' + end + + And %{I wait for the ajax to finish} + + within('#aspect_nav') do click_link aspect_name end + And %{I wait for the ajax to finish} end