We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2f6c693 + ee97be4 commit 4a7fe20Copy full SHA for 4a7fe20
1 file changed
features/support/hooks.rb
@@ -1,5 +1,11 @@
1
# frozen_string_literal: true
2
3
+# IMPORTANT: make sure this hook is defined **before** the one that saves screenshots,
4
+# because the After hooks run in the reverse order in which they are defined.
5
+After("@javascript") do
6
+ Capybara.page&.driver&.quit
7
+end
8
+
9
Around '@security' do |scenario, block|
10
with_forgery_protection(&block)
11
end
@@ -200,10 +206,6 @@
200
206
201
207
202
208
203
-After("@javascript") do
204
- Capybara.page&.driver&.quit
205
-end
-
209
After do |scenario|
210
if ENV['FAIL_FAST']
211
Cucumber.wants_to_quit = true if scenario.failed?
0 commit comments