From 0ea3fcec397b69815975647f5e2aa5fe944a8486 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 20 Jun 2022 11:10:13 +0000 Subject: Add latest changes from gitlab-org/gitlab@15-1-stable-ee --- spec/features/admin/admin_labels_spec.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'spec/features/admin/admin_labels_spec.rb') diff --git a/spec/features/admin/admin_labels_spec.rb b/spec/features/admin/admin_labels_spec.rb index ba0870a53ae..fa5c94aa66e 100644 --- a/spec/features/admin/admin_labels_spec.rb +++ b/spec/features/admin/admin_labels_spec.rb @@ -16,7 +16,6 @@ RSpec.describe 'admin issues labels' do describe 'list' do before do - stub_feature_flags(bootstrap_confirmation_modals: false) visit admin_labels_path end @@ -38,11 +37,9 @@ RSpec.describe 'admin issues labels' do end it 'deletes all labels', :js do - page.within '.labels' do - page.all('.js-remove-label').each do |remove| - accept_confirm { remove.click } - wait_for_requests - end + page.all('.labels .js-remove-label').each do |remove| + accept_gl_confirm(button_text: 'Delete label') { remove.click } + wait_for_requests end wait_for_requests -- cgit v1.2.3