Merge pull request #10882 from tchak/playwright-bun

chore(playwright): run playwright using bunx instead of default npx
This commit is contained in:
Paul Chavard 2024-10-05 08:58:19 +00:00 committed by GitHub
commit 5cbdfd8677
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,7 +29,8 @@ Capybara.register_driver :playwright do |app|
browser_type: (ENV['PLAYWRIGHT_BROWSER'] || 'chromium').to_sym, # :chromium (default) or :firefox, :webkit browser_type: (ENV['PLAYWRIGHT_BROWSER'] || 'chromium').to_sym, # :chromium (default) or :firefox, :webkit
headless: ENV['NO_HEADLESS'].blank?, headless: ENV['NO_HEADLESS'].blank?,
locale: Rails.application.config.i18n.default_locale, locale: Rails.application.config.i18n.default_locale,
downloadsPath: Capybara.save_path) downloadsPath: Capybara.save_path,
playwright_cli_executable_path: 'bunx playwright')
end end
Capybara.register_driver :chrome do |app| Capybara.register_driver :chrome do |app|