Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'features/support/paths.rb')
-rw-r--r--features/support/paths.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/features/support/paths.rb b/features/support/paths.rb
index 7962fe17d..d6c7ff157 100644
--- a/features/support/paths.rb
+++ b/features/support/paths.rb
@@ -70,10 +70,12 @@ module NavigationHelpers
end
def confirm_on_page(page_name)
- if page_name == "my profile page"
- expect(page).to have_path_in([person_path(@me.person), user_profile_path(@me.username)])
- else
- expect(page).to have_path(path_to(page_name))
+ page.driver.send(:retry_if_wrong_world) do
+ if page_name == "my profile page"
+ expect(page).to have_path_in([person_path(@me.person), user_profile_path(@me.username)])
+ else
+ expect(page).to have_path(path_to(page_name))
+ end
end
end
end