Skip to content

Commit 2fa853b

Browse files
authored
fix playwright config (#134)
CI was failing from playwright tests
1 parent bc013f2 commit 2fa853b

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ jobs:
3535
- name: 📥 Install dependencies
3636
run: pnpm install --ignore-scripts --frozen-lockfile
3737

38-
- name: 🎭 Install Playwright browsers
39-
run: pnpm exec playwright install chromium
40-
4138
- name: 🔍 Type Check
4239
run: pnpm run typecheck
4340

vite.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ export default defineConfig({
2424
name: "browser",
2525
browser: {
2626
enabled: true,
27-
provider: playwright(),
27+
provider: playwright({
28+
launchOptions: process.env.CI ? { channel: "chrome" } : undefined,
29+
}),
2830
// https://vitest.dev/guide/browser/playwright
2931
instances: [
3032
{ browser: 'chromium' },

0 commit comments

Comments
 (0)