gitlab-org--gitlab-foss/spec/features/profiles/user_visits_notifications_tab_spec.rb

22 lines
508 B
Ruby
Raw Normal View History

require 'spec_helper'
feature 'User visits the notifications tab', js: true do
let(:project) { create(:empty_project) }
let(:user) { create(:user) }
before do
project.team << [user, :master]
sign_in(user)
visit(profile_notifications_path)
end
it 'changes the project notifications setting' do
expect(page).to have_content('Notifications')
first('#notifications-button').trigger('click')
click_link('On mention')
expect(page).to have_content('On mention')
end
end