Add a log-out step and expectation to log-in test

This commit is contained in:
Mesut Güneş 2018-09-21 17:51:01 +03:00 committed by Rémy Coutable
parent 4c7e22185b
commit d965e65f15
No known key found for this signature in database
GPG Key ID: 98DFFD1C0C62B70B
1 changed files with 10 additions and 1 deletions

View File

@ -1,7 +1,7 @@
module QA
context 'Manage', :smoke 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)
Page::Main::Login.act { sign_in_using_credentials }
@ -11,6 +11,15 @@ module QA
Page::Main::Menu.perform do |menu|
expect(menu).to have_personal_area
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