Skip to content

Commit

Permalink
Fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-stefano committed Dec 24, 2024
1 parent a1799a3 commit 63d8de7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
12 changes: 4 additions & 8 deletions spec/spec_helper_system.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]

Expand Down

0 comments on commit 63d8de7

Please sign in to comment.