summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2018-06-05 15:27:35 +0000
committerRobert Speicher <robert@gitlab.com>2018-06-05 15:27:35 +0000
commitffe87460f0925f6e091352552ba52aecea5bf4a8 (patch)
tree85a146300722e66a25a9560804115bf81089da81 /spec/features
parent1fd2c6460d0d8ff3167fb742b41a4b010cc7ad8b (diff)
parent285ffb223896f2226531be2ba10933414194155c (diff)
downloadgitlab-ce-ffe87460f0925f6e091352552ba52aecea5bf4a8.tar.gz
Merge branch '46585-gdpr-terms-acceptance' into 'master'
Resolve "Missing Accept button for terms of service" Closes #46585 See merge request gitlab-org/gitlab-ce!19156
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/users/terms_spec.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/features/users/terms_spec.rb b/spec/features/users/terms_spec.rb
index 1efa5cd5490..af407c52917 100644
--- a/spec/features/users/terms_spec.rb
+++ b/spec/features/users/terms_spec.rb
@@ -39,6 +39,22 @@ describe 'Users > Terms' do
end
end
+ context 'when the user has already accepted the terms' do
+ before do
+ accept_terms(user)
+ end
+
+ it 'allows the user to continue to the app' do
+ visit terms_path
+
+ expect(page).to have_content "You have already accepted the Terms of Service as #{user.to_reference}"
+
+ click_link 'Continue'
+
+ expect(current_path).to eq(root_path)
+ end
+ end
+
context 'terms were enforced while session is active', :js do
let(:project) { create(:project) }