From 0a75539750482e821f5d963da28a4b8af5599642 Mon Sep 17 00:00:00 2001 From: Matt Brictson Date: Fri, 14 Aug 2026 17:56:22 -0700 Subject: [PATCH] Disable Chrome feature to improve system test reliability --- template/spec/support/system.rb | 3 +++ template/test/application_system_test_case.rb | 3 +++ 2 files changed, 6 insertions(+) diff --git a/template/spec/support/system.rb b/template/spec/support/system.rb index 7929c10..343302e 100644 --- a/template/spec/support/system.rb +++ b/template/spec/support/system.rb @@ -11,6 +11,9 @@ # Fixes slowdowns on macOS options.add_argument("--disable-gpu") + + # Fixes intermittent assertion failures + options.add_argument("--disable-features=DeferRendererTasksAfterInput") end end end diff --git a/template/test/application_system_test_case.rb b/template/test/application_system_test_case.rb index c1f2942..5ae4d93 100644 --- a/template/test/application_system_test_case.rb +++ b/template/test/application_system_test_case.rb @@ -12,5 +12,8 @@ class ApplicationSystemTestCase < ActionDispatch::SystemTestCase # Fixes slowdowns on macOS options.add_argument("--disable-gpu") + + # Fixes intermittent assertion failures + options.add_argument("--disable-features=DeferRendererTasksAfterInput") end end