diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 21:08:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 21:08:46 +0300 |
commit | 1bf106b17275c87cf8baa199599f113f154a52fe (patch) | |
tree | d2d27696ddb236922b165fb41cafc975914fd24b /spec/views/registrations | |
parent | b21276806d34b8cc0ec7ac7854ec62f70d408b3c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/views/registrations')
-rw-r--r-- | spec/views/registrations/welcome/show.html.haml_spec.rb | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/spec/views/registrations/welcome/show.html.haml_spec.rb b/spec/views/registrations/welcome/show.html.haml_spec.rb index ecdef7918de..d9c5d348e15 100644 --- a/spec/views/registrations/welcome/show.html.haml_spec.rb +++ b/spec/views/registrations/welcome/show.html.haml_spec.rb @@ -3,8 +3,6 @@ require 'spec_helper' RSpec.describe 'registrations/welcome/show' do - let(:is_gitlab_com) { false } - let_it_be(:user) { create(:user) } before do @@ -13,7 +11,6 @@ RSpec.describe 'registrations/welcome/show' do allow(view).to receive(:in_trial_flow?).and_return(false) allow(view).to receive(:user_has_memberships?).and_return(false) allow(view).to receive(:in_oauth_flow?).and_return(false) - allow(Gitlab).to receive(:com?).and_return(is_gitlab_com) render end @@ -22,24 +19,5 @@ RSpec.describe 'registrations/welcome/show' do it { is_expected.not_to have_selector('label[for="user_setup_for_company"]') } it { is_expected.to have_button('Get started!') } - it { is_expected.to have_selector('input[name="user[email_opted_in]"]') } - - describe 'email opt in' do - context 'when on gitlab.com' do - let(:is_gitlab_com) { true } - - it 'hides the email-opt in by default' do - expect(subject).to have_css('.js-email-opt-in.hidden') - end - end - - context 'when not on gitlab.com' do - let(:is_gitlab_com) { false } - - it 'hides the email-opt in by default' do - expect(subject).not_to have_css('.js-email-opt-in.hidden') - expect(subject).to have_css('.js-email-opt-in') - end - end - end + it { is_expected.not_to have_selector('input[name="user[email_opted_in]"]') } end |