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