diff options
author | Sanad Liaquat <sliaquat@gitlab.com> | 2019-07-08 15:48:33 +0500 |
---|---|---|
committer | Sanad Liaquat <sliaquat@gitlab.com> | 2019-07-09 10:26:32 +0500 |
commit | e16f224ee9628e91425c6fa9bb19bfaeb5aa1af0 (patch) | |
tree | d54451193b32e7a03f7187dae06e60a74a56dd20 /qa/qa/specs/features | |
parent | bf172b115c206cb6ed6c2b271fad600f1548b43c (diff) | |
download | gitlab-ce-e16f224ee9628e91425c6fa9bb19bfaeb5aa1af0.tar.gz |
Retry sign out if unsuccessful
Also extract retry_until into qa/qa/support/retrier.rb
Diffstat (limited to 'qa/qa/specs/features')
-rw-r--r-- | qa/qa/specs/features/browser_ui/1_manage/login/log_in_spec.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qa/qa/specs/features/browser_ui/1_manage/login/log_in_spec.rb b/qa/qa/specs/features/browser_ui/1_manage/login/log_in_spec.rb index cf225a639b6..a6bc6d2077c 100644 --- a/qa/qa/specs/features/browser_ui/1_manage/login/log_in_spec.rb +++ b/qa/qa/specs/features/browser_ui/1_manage/login/log_in_spec.rb @@ -11,8 +11,10 @@ module QA expect(menu).to have_personal_area end - Page::Main::Menu.perform do |menu| - menu.sign_out + Support::Retrier.retry_until(reload: false, sleep_interval: 1.0) do + Page::Main::Menu.perform(&:sign_out) + + Page::Main::Login.perform(&:has_sign_in_tab?) end Page::Main::Login.perform do |form| |