Skip to content

Commit

Permalink
Switches to the headless chrome driver
Browse files Browse the repository at this point in the history
This prevents the browser from stealing focus from your editor/terminal
when running integration tests.

Once in a while I'm sure it's helpful to have this jump into the
foreground but for day to day use I think it's better to have it in the
background.
  • Loading branch information
rob committed Jan 10, 2024
1 parent b9eb75b commit c6331ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/application_system_test_case.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require "test_helper"

class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
driven_by :selenium, using: :headless_chrome, screen_size: [1400, 1400]
end

0 comments on commit c6331ac

Please sign in to comment.