summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-05-11 17:15:43 +0000
committerNick Thomas <nick@gitlab.com>2018-05-11 17:15:43 +0000
commitaa3004c48d6062c4f6f0dcaad91a9774445966e8 (patch)
tree7f12dc000e3af404d754ad34705bff99527cdaef /spec
parentda49a357da7926f1ce14edb5a0a4dcc9be751080 (diff)
parenta5cb2fe2e09b9b758905693360ecc680ff4afe2a (diff)
downloadgitlab-ce-aa3004c48d6062c4f6f0dcaad91a9774445966e8.tar.gz
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.rb18
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