summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDesiree Chevalier <dchevalier@gitlab.com>2019-07-26 09:59:51 -0400
committerDesiree Chevalier <dchevalier@gitlab.com>2019-07-29 09:39:46 -0400
commit63f395f96ef6bb96fee7ce7eb7672b0a8f7d6d1e (patch)
tree8fc8b19a26dca09ea7e2470c699f0fe5f132d27b
parent914bfabba6708696c049d3a0304d67873b39c047 (diff)
downloadgitlab-ce-qa-mattermost-spec-retry.tar.gz
Add retry on exception to mattermost loginqa-mattermost-spec-retry
-rw-r--r--qa/qa/specs/features/browser_ui/1_manage/login/log_into_mattermost_via_gitlab_spec.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/qa/qa/specs/features/browser_ui/1_manage/login/log_into_mattermost_via_gitlab_spec.rb b/qa/qa/specs/features/browser_ui/1_manage/login/log_into_mattermost_via_gitlab_spec.rb
index 67610b62ed7..0a999cf00fa 100644
--- a/qa/qa/specs/features/browser_ui/1_manage/login/log_into_mattermost_via_gitlab_spec.rb
+++ b/qa/qa/specs/features/browser_ui/1_manage/login/log_into_mattermost_via_gitlab_spec.rb
@@ -7,11 +7,13 @@ module QA
Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.perform(&:sign_in_using_credentials)
- Runtime::Browser.visit(:mattermost, Page::Mattermost::Login)
- Page::Mattermost::Login.perform(&:sign_in_using_oauth)
+ Support::Retrier.retry_on_exception do
+ Runtime::Browser.visit(:mattermost, Page::Mattermost::Login)
+ Page::Mattermost::Login.perform(&:sign_in_using_oauth)
- Page::Mattermost::Main.perform do |page|
- expect(page).to have_content(/(Welcome to: Mattermost|Logout GitLab Mattermost)/)
+ Page::Mattermost::Main.perform do |page|
+ expect(page).to have_content(/(Welcome to: Mattermost|Logout GitLab Mattermost)/)
+ end
end
end
end