summaryrefslogtreecommitdiff
path: root/spec/features/admin/admin_hooks_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/admin/admin_hooks_spec.rb')
-rw-r--r--spec/features/admin/admin_hooks_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/features/admin/admin_hooks_spec.rb b/spec/features/admin/admin_hooks_spec.rb
index 1e675fc0ce7..9a438b65e68 100644
--- a/spec/features/admin/admin_hooks_spec.rb
+++ b/spec/features/admin/admin_hooks_spec.rb
@@ -74,11 +74,13 @@ describe 'Admin::Hooks', feature: true do
end
end
- describe 'Test' do
+ describe 'Test', js: true do
before do
WebMock.stub_request(:post, @system_hook.url)
visit admin_hooks_path
- click_link 'Test hook'
+
+ find('.hook-test-button.dropdown').click
+ click_link 'Push events'
end
it { expect(current_path).to eq(admin_hooks_path) }