Commit 98ecf05d authored by Robert Speicher's avatar Robert Speicher

Merge branch 'add-feature-spec-for-product-marketing-emails-setting' into 'master'

Add feature spec for product marketing emails setting

See merge request gitlab-org/gitlab!61578
parents 6450fd5d 52b7dcaa
...@@ -12,6 +12,14 @@ RSpec.describe 'User visits the notifications tab', :js do ...@@ -12,6 +12,14 @@ RSpec.describe 'User visits the notifications tab', :js do
visit(profile_notifications_path) visit(profile_notifications_path)
end end
it 'turns on the receive product marketing emails setting' do
expect(page).to have_content('Notifications')
expect do
check 'Receive product marketing emails'
end.to change { user.reload.email_opted_in }.to(true)
end
it 'changes the project notifications setting' do it 'changes the project notifications setting' do
expect(page).to have_content('Notifications') expect(page).to have_content('Notifications')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment