summaryrefslogtreecommitdiff
path: root/spec/features/projects/show
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-20 18:42:06 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-20 18:42:06 +0000
commit6e4e1050d9dba2b7b2523fdd1768823ab85feef4 (patch)
tree78be5963ec075d80116a932011d695dd33910b4e /spec/features/projects/show
parent1ce776de4ae122aba3f349c02c17cebeaa8ecf07 (diff)
downloadgitlab-ce-6e4e1050d9dba2b7b2523fdd1768823ab85feef4.tar.gz
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to 'spec/features/projects/show')
-rw-r--r--spec/features/projects/show/user_manages_notifications_spec.rb21
1 files changed, 4 insertions, 17 deletions
diff --git a/spec/features/projects/show/user_manages_notifications_spec.rb b/spec/features/projects/show/user_manages_notifications_spec.rb
index 58a2c793b7b..9d9a75c22be 100644
--- a/spec/features/projects/show/user_manages_notifications_spec.rb
+++ b/spec/features/projects/show/user_manages_notifications_spec.rb
@@ -22,7 +22,7 @@ RSpec.describe 'Projects > Show > User manages notifications', :js do
click_notifications_button
expect(find('.update-notification.is-active')).to have_content('On mention')
- expect(find('.notifications-icon use')[:'xlink:href']).to end_with('#notifications')
+ expect(page).to have_css('.notifications-icon[data-testid="notifications-icon"]')
end
it 'changes the notification setting to disabled' do
@@ -32,7 +32,7 @@ RSpec.describe 'Projects > Show > User manages notifications', :js do
wait_for_requests
- expect(find('.notifications-icon use')[:'xlink:href']).to end_with('#notifications-off')
+ expect(page).to have_css('.notifications-icon[data-testid="notifications-off-icon"]')
end
context 'custom notification settings' do
@@ -52,7 +52,8 @@ RSpec.describe 'Projects > Show > User manages notifications', :js do
:merge_merge_request,
:failed_pipeline,
:fixed_pipeline,
- :success_pipeline
+ :success_pipeline,
+ :moved_project
]
end
@@ -67,20 +68,6 @@ RSpec.describe 'Projects > Show > User manages notifications', :js do
end
end
end
-
- context 'when ci_pipeline_fixed_notifications is disabled' do
- before do
- stub_feature_flags(ci_pipeline_fixed_notifications: false)
- end
-
- it 'hides fixed_pipeline checkbox' do
- visit project_path(project)
- click_notifications_button
- page.find('a[data-notification-level="custom"]').click
-
- expect(page).not_to have_selector("input[name='notification_setting[fixed_pipeline]']")
- end
- end
end
context 'when project emails are disabled' do