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:
Alan Guo Xiang Tan 2023-05-05 11:37:04 +08:00 committed by GitHub
parent 7ff8e5580f
commit fe10c61dfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -421,6 +421,8 @@ RSpec.configure do |config|
end
end
Capybara.reset_sessions!
Capybara.use_default_driver
Discourse.redis.flushdb
end