Commit e2a2ba68 authored by Rémy Coutable's avatar Rémy Coutable

Fix a sanity framework test

On first load, the login page displays the "Change your password" tab,
not the "Sign in" tab. We now assert on the presence of a text that's
always on this page.

Note that in EE, since a license is added in the `#perform_before_hooks`
method, the password is changed so that when we visit the login page,
the "Sign in" tab is displayed as expected. That's why only the CE job
failed to pass in
https://gitlab.com/gitlab-org/gitlab-qa/pipelines/31060920.
Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent d5bce06d
......@@ -6,9 +6,7 @@ module QA
it 'succeeds' do
Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.perform do |main_login|
expect(main_login.sign_in_tab?).to be(true)
end
expect(page).to have_text('Open source software to collaborate on code')
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