Commit d4466ea9 authored by Sanad Liaquat's avatar Sanad Liaquat

Revert to using retry_until

parent d920f705
...@@ -24,4 +24,4 @@ ...@@ -24,4 +24,4 @@
- if current_user_menu?(:sign_out) - if current_user_menu?(:sign_out)
%li.divider %li.divider
%li %li
= link_to _("Sign out"), destroy_user_session_path, class: "sign-out-link" = link_to _("Sign out"), destroy_user_session_path, class: "sign-out-link qa-sign-out-link"
...@@ -5,7 +5,7 @@ module QA ...@@ -5,7 +5,7 @@ module QA
module Main module Main
class Menu < Page::Base class Menu < Page::Base
view 'app/views/layouts/header/_current_user_dropdown.html.haml' do view 'app/views/layouts/header/_current_user_dropdown.html.haml' do
element :user_sign_out_link, 'link_to _("Sign out")' # rubocop:disable QA/ElementWithPattern element :sign_out_link
element :settings_link, 'link_to s_("CurrentUser|Settings")' # rubocop:disable QA/ElementWithPattern element :settings_link, 'link_to s_("CurrentUser|Settings")' # rubocop:disable QA/ElementWithPattern
end end
...@@ -53,7 +53,7 @@ module QA ...@@ -53,7 +53,7 @@ module QA
def sign_out def sign_out
within_user_menu do within_user_menu do
click_element :user_sign_out_link, Page::Main::Login click_element :sign_out_link
end end
end end
......
...@@ -11,8 +11,10 @@ module QA ...@@ -11,8 +11,10 @@ module QA
expect(menu).to have_personal_area expect(menu).to have_personal_area
end end
Support::Retrier.retry_on_exception do Support::Retrier.retry_until(reload: false, sleep_interval: 0.5) do
Page::Main::Menu.perform(&:sign_out) Page::Main::Menu.perform(&:sign_out)
Page::Main::Login.perform(&:has_sign_in_tab?)
end end
Page::Main::Login.perform do |form| Page::Main::Login.perform do |form|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment