File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,15 +46,15 @@ jobs:
4646 id : playwright-cache
4747 with :
4848 path : ~/.cache/ms-playwright
49- key : playwright-${{ runner.os }}-1.59.0
49+ key : playwright-${{ runner.os }}-chromium-headless-shell- 1.59.0
5050
51- - name : Install Playwright browsers (cache miss)
51+ - name : Install Playwright Chromium Headless Shell (cache miss)
5252 if : steps.playwright-cache.outputs.cache-hit != 'true'
53- run : npx --yes playwright@1.59.0 install --with-deps chromium
53+ run : npx --yes playwright@1.59.0 install chromium-headless-shell
5454
5555 - name : Install Playwright system deps (cache hit)
5656 if : steps.playwright-cache.outputs.cache-hit == 'true'
57- run : npx --yes playwright@1.59.0 install-deps chromium
57+ run : npx --yes playwright@1.59.0 install-deps chromium-headless-shell
5858
5959 - name : Setup test databases
6060 env :
Original file line number Diff line number Diff line change 1+ # frozen_string_literal: true
2+
3+ # Capybara driver using Playwright with Chromium Headless Shell
4+ # The headless shell is ~44% smaller than full Chromium (189MB vs 336MB)
5+ # while maintaining full web compatibility.
6+ # See: https://playwright.dev/docs/browsers#chromium-headless-shell
7+
18Capybara . register_driver :playwright do |app |
29 Capybara ::Playwright ::Driver . new (
310 app ,
You can’t perform that action at this time.
0 commit comments