73e848850c
Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
23 lines
547 B
Ruby
23 lines
547 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'spec_helper'
|
|
|
|
describe 'User visits the notifications tab', :js do
|
|
let(:project) { create(:project) }
|
|
let(:user) { create(:user) }
|
|
|
|
before do
|
|
project.add_maintainer(user)
|
|
sign_in(user)
|
|
visit(profile_notifications_path)
|
|
end
|
|
|
|
it 'changes the project notifications setting' do
|
|
expect(page).to have_content('Notifications')
|
|
|
|
first('#notifications-button').click
|
|
click_link('On mention')
|
|
|
|
expect(page).to have_selector('#notifications-button', text: 'On mention')
|
|
end
|
|
end
|