diff options
author | Mesut Güneş <gunesmes@gmail.com> | 2018-09-21 17:51:01 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-12-04 20:12:20 +0300 |
commit | d965e65f157de233e7e9502ee4cd18af087ac50f (patch) | |
tree | 4f82bd70d3731fd14910dad2b5eacefcf14c85e1 | |
parent | 4c7e22185b51e1460cdd9efe46d5c4aa958bd678 (diff) |
Add a log-out step and expectation to log-in test
-rw-r--r-- | qa/qa/specs/features/browser_ui/1_manage/login/log_in_spec.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/qa/qa/specs/features/browser_ui/1_manage/login/log_in_spec.rb b/qa/qa/specs/features/browser_ui/1_manage/login/log_in_spec.rb index dae2a9e0236..8f24a27b26f 100644 --- a/qa/qa/specs/features/browser_ui/1_manage/login/log_in_spec.rb +++ b/qa/qa/specs/features/browser_ui/1_manage/login/log_in_spec.rb @@ -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 |