diff --git a/app/assets/javascripts/discourse/testem.js b/app/assets/javascripts/discourse/testem.js index 6f0bc0382e3..c37420a0189 100644 --- a/app/assets/javascripts/discourse/testem.js +++ b/app/assets/javascripts/discourse/testem.js @@ -96,7 +96,7 @@ module.exports = { Chrome: [ // --no-sandbox is needed when running Chrome inside a container process.env.CI ? "--no-sandbox" : null, - "--headless", + "--headless=new", "--disable-dev-shm-usage", "--disable-software-rasterizer", "--mute-audio", diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 076bab8fcc4..4b860037b9b 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -297,7 +297,7 @@ RSpec.configure do |config| end Capybara.register_driver :selenium_chrome_headless do |app| - chrome_browser_options.add_argument("--headless") + chrome_browser_options.add_argument("--headless=new") Capybara::Selenium::Driver.new(app, browser: :chrome, options: chrome_browser_options) end @@ -319,7 +319,7 @@ RSpec.configure do |config| end Capybara.register_driver :selenium_mobile_chrome_headless do |app| - mobile_chrome_browser_options.add_argument("--headless") + mobile_chrome_browser_options.add_argument("--headless=new") Capybara::Selenium::Driver.new(app, browser: :chrome, options: mobile_chrome_browser_options) end diff --git a/test/run-qunit.js b/test/run-qunit.js index 23bebaeac82..bd26d62dc34 100644 --- a/test/run-qunit.js +++ b/test/run-qunit.js @@ -37,7 +37,7 @@ async function runAllTests() { const options = { chromeFlags: [ "--disable-gpu", - "--headless", + "--headless=new", "--no-sandbox", "--disable-dev-shm-usage", "--mute-audio",