Skip to content

Commit

Permalink
fix: playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Oct 17, 2024
1 parent ad8c36f commit 42b58ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
env:
NODE_OPTIONS: "--max-old-space-size=4096"
NODE_ENV: test
CI: "true"
strategy:
matrix:
test-type: [jest, e2e, e2e-crx-lock]
Expand Down
3 changes: 2 additions & 1 deletion packages/app/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { type PlaywrightTestConfig, defineConfig } from '@playwright/test';
import './load.envs';

const PORT = process.env.PORT;
const isCI = process.env.CI === 'true';

export const playwrightConfig: PlaywrightTestConfig = {
workers: 1,
Expand All @@ -25,7 +26,7 @@ export const playwrightConfig: PlaywrightTestConfig = {
use: {
baseURL: `http://localhost:${PORT}/`,
permissions: ['clipboard-read', 'clipboard-write'],
headless: false,
headless: isCI,
trace: 'on-first-retry',
actionTimeout: 5000,
},
Expand Down

0 comments on commit 42b58ac

Please sign in to comment.