Commit 52af120f authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'qa-mattermost-spec-retry' into 'master'

Add retry on exception to mattermost login spec

See merge request gitlab-org/gitlab-ce!31243
parents 6b025c17 63f395f9
...@@ -7,11 +7,13 @@ module QA ...@@ -7,11 +7,13 @@ module QA
Runtime::Browser.visit(:gitlab, Page::Main::Login) Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.perform(&:sign_in_using_credentials) Page::Main::Login.perform(&:sign_in_using_credentials)
Runtime::Browser.visit(:mattermost, Page::Mattermost::Login) Support::Retrier.retry_on_exception do
Page::Mattermost::Login.perform(&:sign_in_using_oauth) Runtime::Browser.visit(:mattermost, Page::Mattermost::Login)
Page::Mattermost::Login.perform(&:sign_in_using_oauth)
Page::Mattermost::Main.perform do |page| Page::Mattermost::Main.perform do |page|
expect(page).to have_content(/(Welcome to: Mattermost|Logout GitLab Mattermost)/) expect(page).to have_content(/(Welcome to: Mattermost|Logout GitLab Mattermost)/)
end
end end
end end
end end
......
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