From 67dd49b1e4e6ab992be819ca9cea1338ff89dc9d Mon Sep 17 00:00:00 2001 From: Florian Staudacher Date: Sun, 20 May 2012 22:44:08 +0200 Subject: [PATCH] ... wait for it ... --- features/step_definitions/web_steps.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/features/step_definitions/web_steps.rb b/features/step_definitions/web_steps.rb index 0f16404da..9bba335cc 100644 --- a/features/step_definitions/web_steps.rb +++ b/features/step_definitions/web_steps.rb @@ -195,6 +195,10 @@ end Then /^(?:|I )should be on (.+)$/ do |page_name| current_path = URI.parse(current_url).path + wait_until(3) do + current_path = path_to(page_name) + end + if current_path.respond_to? :should current_path.should == path_to(page_name) else