Skip to content

Commit cbabdbb

Browse files
committed
ci: use system chrome for e2e
1 parent 927dad5 commit cbabdbb

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/e2e.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ jobs:
9191
if: github.event_name == 'workflow_dispatch' || steps.changes.outputs.website_e2e == 'true'
9292
run: pnpm --filter @opentickly/website run build
9393

94-
- name: Install Playwright browsers
94+
- name: Install Playwright dependencies
9595
if: github.event_name == 'workflow_dispatch' || steps.changes.outputs.website_e2e == 'true'
9696
timeout-minutes: 10
97-
run: pnpm exec vp exec playwright install --with-deps --only-shell chromium
97+
run: pnpm exec vp exec playwright install-deps chromium
9898

9999
- name: Start backend
100100
if: github.event_name == 'workflow_dispatch' || steps.changes.outputs.website_e2e == 'true'
@@ -133,6 +133,8 @@ jobs:
133133
134134
- name: Run E2E tests
135135
if: github.event_name == 'workflow_dispatch' || steps.changes.outputs.website_e2e == 'true'
136+
env:
137+
PLAYWRIGHT_BROWSER_CHANNEL: chrome
136138
run: |
137139
cd apps/website
138140
pnpm exec vp exec playwright test

apps/website/playwright.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import os from "node:os";
22
import { defineConfig } from "@playwright/test";
33

4+
const browserChannel = process.env.PLAYWRIGHT_BROWSER_CHANNEL;
5+
46
export default defineConfig({
57
testDir: "./e2e",
68
retries: 1,
@@ -9,6 +11,7 @@ export default defineConfig({
911
use: {
1012
actionTimeout: 5_000,
1113
baseURL: process.env.PLAYWRIGHT_BASE_URL ?? "http://localhost:5173",
14+
channel: browserChannel === undefined || browserChannel === "" ? undefined : browserChannel,
1215
headless: true,
1316
locale: "en-US",
1417
// Pin browser timezone so tests that assert literal time strings stay

0 commit comments

Comments
 (0)