Skip to content

Commit

Permalink
feat: use new headless rendering mode
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Aug 26, 2023
1 parent 4fdb4f4 commit bf17a19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion variants/accessibility/spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
<<~OPTIONS
# Lighthouse Matcher options
options.add_argument("--remote-debugging-port=9222")
Lighthouse::Matchers.chrome_flags = %w[headless no-sandbox]
Lighthouse::Matchers.chrome_flags = %w[headless=new no-sandbox]
OPTIONS
end
2 changes: 1 addition & 1 deletion variants/backend-base/spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
options.add_argument("--window-size=1920,1080")

# Add other Chrome arguments here
options.add_argument("--headless") unless ENV["HEADFUL"]
options.add_argument("--headless=new") unless ENV["HEADFUL"]

# Docker compatibility
options.add_argument("--no-sandbox")
Expand Down

0 comments on commit bf17a19

Please sign in to comment.