... wait for it ...
This commit is contained in:
parent
bde23f8ab8
commit
67dd49b1e4
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue