DEV: Reset capybara sessions and default driver after each test (#21402)
I don't think we're leaking state at the moment but the docs are recommending that this two methods are called after each run.
This commit is contained in:
parent
7ff8e5580f
commit
fe10c61dfa
|
@ -421,6 +421,8 @@ RSpec.configure do |config|
|
|||
end
|
||||
end
|
||||
|
||||
Capybara.reset_sessions!
|
||||
Capybara.use_default_driver
|
||||
Discourse.redis.flushdb
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue