Commit 83cfd20c authored by ddavison's avatar ddavison

Remove blocks from Runtime::Browser.visit calls within Mattermost tests

Use .perform instead of .act in Mattermost test
Signed-off-by: default avatarddavison <ddavison@gitlab.com>
parent 3f4a1082
...@@ -4,16 +4,14 @@ module QA ...@@ -4,16 +4,14 @@ module QA
context 'Manage', :orchestrated, :mattermost do context 'Manage', :orchestrated, :mattermost do
describe 'Mattermost login' do describe 'Mattermost login' do
it 'user logs into Mattermost using GitLab OAuth' do it 'user logs into Mattermost using GitLab OAuth' do
Runtime::Browser.visit(:gitlab, Page::Main::Login) do Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.act { sign_in_using_credentials } Page::Main::Login.perform(&:sign_in_using_credentials)
Runtime::Browser.visit(:mattermost, Page::Mattermost::Login) do Runtime::Browser.visit(:mattermost, Page::Mattermost::Login)
Page::Mattermost::Login.act { sign_in_using_oauth } 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 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