... wait for it ...

This commit is contained in:
Florian Staudacher 2012-05-20 22:44:08 +02:00
parent bde23f8ab8
commit 67dd49b1e4

View file

@ -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