summaryrefslogtreecommitdiff
path: root/spec/features/triggers_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/triggers_spec.rb')
-rw-r--r--spec/features/triggers_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/features/triggers_spec.rb b/spec/features/triggers_spec.rb
index 7f5cf2359a3..eb497715df7 100644
--- a/spec/features/triggers_spec.rb
+++ b/spec/features/triggers_spec.rb
@@ -3,6 +3,8 @@
require 'spec_helper'
RSpec.describe 'Triggers', :js do
+ include Spec::Support::Helpers::ModalHelpers
+
let(:trigger_title) { 'trigger desc' }
let(:user) { create(:user) }
let(:user2) { create(:user) }
@@ -74,7 +76,6 @@ RSpec.describe 'Triggers', :js do
describe 'trigger "Revoke" workflow' do
before do
- stub_feature_flags(bootstrap_confirmation_modals: false)
create(:ci_trigger, owner: user2, project: @project, description: trigger_title)
visit project_settings_ci_cd_path(@project)
end
@@ -86,7 +87,7 @@ RSpec.describe 'Triggers', :js do
it 'revoke trigger' do
# See if "Revoke" on trigger works post trigger creation
- page.accept_confirm do
+ accept_gl_confirm(button_text: 'Revoke') do
find('[data-testid="trigger_revoke_button"]').send_keys(:return)
end