From 63d8de76d83d0557a3dffb026e1fc5ee97ae97d6 Mon Sep 17 00:00:00 2001 From: Tomas D'Stefano Date: Tue, 24 Dec 2024 23:00:15 +0000 Subject: [PATCH] Fix rubocop --- .github/workflows/build-and-deploy.yml | 13 +------------ spec/spec_helper_system.rb | 12 ++++-------- 2 files changed, 5 insertions(+), 20 deletions(-) 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]