Skip to content

Commit

Permalink
correctly reset Capybara before these tests (#3607)
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Jun 13, 2024
1 parent e1a9549 commit e1312a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/dashboard/test/system/files_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ class FilesTest < ApplicationSystemTestCase
def setup
FileUtils.rm_rf(DOWNLOAD_DIRECTORY.to_s)
FileUtils.mkdir_p(DOWNLOAD_DIRECTORY.to_s)
Capybara.reset_session!

# we want to clear the console logs from any previous test.
Capybara.current_session.quit
end

test "visiting files app doesn't raise js errors" do
Expand Down

0 comments on commit e1312a5

Please sign in to comment.