diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index f1af8d8ed6..5272e26daf 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -247,18 +247,7 @@ jobs: - name: Install Playwright (system_specs only) if: matrix.tests == 'system_specs' run: | - docker compose exec -T web /bin/sh -c 'apk add --no-cache \ - chromium \ - nss \ - harfbuzz \ - libxcomposite \ - libxrandr \ - libxdamage \ - libxshmfence \ - udev \ - ttf-freefont \ - fonts-noto-cjk' - docker compose exec -T web /bin/sh -c 'npx playwright install --with-deps' + docker compose exec -T web /bin/sh -c 'npx playwright install --with-deps chromium' - name: ${{ matrix.tests }} tests run: | diff --git a/spec/spec_helper_system.rb b/spec/spec_helper_system.rb index 13f0e6bb40..9c27dcff41 100644 --- a/spec/spec_helper_system.rb +++ b/spec/spec_helper_system.rb @@ -10,16 +10,14 @@ Capybara.register_driver :playwright do |app| Capybara::Playwright::Driver.new(app, - browser_type: :chromium, - headless: false - ) + browser_type: :chromium, + headless: false) end Capybara.register_driver :playwright_headless do |app| Capybara::Playwright::Driver.new(app, - browser_type: :chromium, - headless: true - ) + browser_type: :chromium, + headless: true) end Capybara.javascript_driver = :playwright_headless @@ -30,8 +28,6 @@ Capybara.automatic_label_click = true RSpec.configure do |config| - screen_size = [1400, 1400] - config.before(:each, type: :system) do service = self.class.metadata[:service]