chore(playwright): run playwright using bunx instead of default npx

without this change, specs fail on systems without node installed
This commit is contained in:
Paul Chavard 2024-09-30 21:13:32 +02:00
parent ca6b413e23
commit 9aee925ab1
No known key found for this signature in database

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
headless: ENV['NO_HEADLESS'].blank?,
locale: Rails.application.config.i18n.default_locale,
downloadsPath: Capybara.save_path)
downloadsPath: Capybara.save_path,
playwright_cli_executable_path: 'bunx playwright')
end
Capybara.register_driver :chrome do |app|