Skip to content

Commit a069928

Browse files
committed
chore: update playwright config
1 parent 623a23b commit a069928

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

.github/workflows/playwright.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
name: Playwright Tests
2+
3+
# Disabled until playwright config is fixed
4+
# on:
5+
# push:
6+
# branches: [ main, master ]
7+
# pull_request:
8+
# branches: [ main, master ]
29
on:
310
push:
411
branches: [ main, master ]

playwright.config.js

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,14 @@ export default defineConfig({
2525
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2626
use: {
2727
/* Base URL to use in actions like `await page.goto('/')`. */
28-
baseURL: 'http://localhost:5173',
28+
baseURL: process.env.BASE_URL || 'http://localhost:5173',
2929

3030
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
3131
trace: 'on-first-retry',
32+
33+
/* Take screenshot on failure */
34+
screenshot: 'only-on-failure',
35+
video: 'retain-on-failure',
3236
},
3337

3438
/* Configure projects for major browsers */
@@ -38,15 +42,15 @@ export default defineConfig({
3842
use: { ...devices['Desktop Chrome'] },
3943
},
4044

41-
{
42-
name: 'firefox',
43-
use: { ...devices['Desktop Firefox'] },
44-
},
45+
// {
46+
// name: 'firefox',
47+
// use: { ...devices['Desktop Firefox'] },
48+
// },
4549

46-
{
47-
name: 'webkit',
48-
use: { ...devices['Desktop Safari'] },
49-
},
50+
// {
51+
// name: 'webkit',
52+
// use: { ...devices['Desktop Safari'] },
53+
// },
5054

5155
/* Test against mobile viewports. */
5256
// {
@@ -75,6 +79,8 @@ export default defineConfig({
7579
url: 'http://localhost:5173',
7680
reuseExistingServer: !process.env.CI,
7781
timeout: 120 * 1000,
82+
stdout: 'pipe',
83+
stderr: 'pipe',
7884
},
7985
timeout: 30000,
8086
})

0 commit comments

Comments
 (0)