diff options
author | Nick Thomas <nick@gitlab.com> | 2018-05-11 20:15:43 +0300 |
---|---|---|
committer | Alessio Caiazza <acaiazza@gitlab.com> | 2018-05-14 16:00:51 +0300 |
commit | 9cf92f40b0d17b1a55152b54b86e9f4270979db6 (patch) | |
tree | 721578b96cdbbd9881808dea8a9d63e9440aefb8 /spec | |
parent | 665de9475a739402ceb6773761a4d267834181ae (diff) |
Merge branch 'bvl-fix-sign-out-on-terms' into 'master'
Allow a user to sign out when on the terms page
Closes #46211
See merge request gitlab-org/gitlab-ce!18875
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/users/terms_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/features/users/terms_spec.rb b/spec/features/users/terms_spec.rb index bf6b5fa3d6a..f9469adbfe3 100644 --- a/spec/features/users/terms_spec.rb +++ b/spec/features/users/terms_spec.rb @@ -81,4 +81,22 @@ describe 'Users > Terms' do expect(find_field('issue_description').value).to eq("We don't want to lose what the user typed") end end + + context 'when the terms are enforced' do + before do + enforce_terms + end + + context 'signing out', :js do + it 'allows the user to sign out without a response' do + visit terms_path + + find('.header-user-dropdown-toggle').click + click_link('Sign out') + + expect(page).to have_content('Sign in') + expect(page).to have_content('Register') + end + end + end end |