Commit ab6cb37d authored by Dan Davison's avatar Dan Davison

Merge branch '327-basic-login-logout-qa' into 'master'

[QA] Add a log-out step and expectation to `qa/qa/specs/features/browser_ui/1_manage/login/log_in_spec.rb`

Closes #52700

See merge request gitlab-org/gitlab-ce!23554
parents c6002b62 d965e65f
module QA module QA
context 'Manage', :smoke do context 'Manage', :smoke do
describe 'basic user login' do describe 'basic user login' do
it 'user logs in using basic credentials' do it 'user logs in using basic credentials and logs out' do
Runtime::Browser.visit(:gitlab, Page::Main::Login) Runtime::Browser.visit(:gitlab, Page::Main::Login)
Page::Main::Login.act { sign_in_using_credentials } Page::Main::Login.act { sign_in_using_credentials }
...@@ -11,6 +11,15 @@ module QA ...@@ -11,6 +11,15 @@ module QA
Page::Main::Menu.perform do |menu| Page::Main::Menu.perform do |menu|
expect(menu).to have_personal_area expect(menu).to have_personal_area
end end
Page::Main::Menu.perform do |menu|
menu.sign_out
expect(menu).not_to have_personal_area
end
Page::Main::Login.perform do |form|
expect(form.sign_in_tab?).to be(true)
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