Skip to content

Commit

Permalink
fix flaky file test by resetting the session (#3517)
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Apr 22, 2024
1 parent 15aca33 commit a0c708d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/dashboard/test/system/batch_connect_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1444,8 +1444,8 @@ def make_bc_app(dir, form)
def get_favorites
# For debugging flaky tests
favorites = all('#favorites li', wait: 30)
puts "FAVORITES: "
puts favorites.map{|i| i['innerHTML']}.join('')
# puts "FAVORITES: "
# puts favorites.map{|i| i['innerHTML']}.join('')
favorites
end

Expand Down
1 change: 1 addition & 0 deletions apps/dashboard/test/system/files_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class FilesTest < ApplicationSystemTestCase
def setup
FileUtils.rm_rf(DOWNLOAD_DIRECTORY.to_s)
FileUtils.mkdir_p(DOWNLOAD_DIRECTORY.to_s)
Capybara.reset_session!
end

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

0 comments on commit a0c708d

Please sign in to comment.