@@ -8,36 +8,19 @@ import { defineConfig, devices } from '@playwright/test';
8
8
// import path from 'path';
9
9
// dotenv.config({ path: path.resolve(__dirname, '.env') });
10
10
11
- /**
12
- * See https://playwright.dev/docs/test-configuration.
13
- */
14
11
export default defineConfig ( {
15
- /**
16
- * Global test timeout (ms)
17
- * Increased to 30 seconds to accommodate slow loads
18
- */
19
12
timeout : 30000 ,
20
13
testDir : './tests' ,
21
- /* Run tests in files in parallel */
14
+ testIgnore : [ ' tests/unit/**' ] ,
22
15
fullyParallel : true ,
23
- /* Fail the build on CI if you accidentally left test.only in the source code. */
24
16
forbidOnly : ! ! process . env . CI ,
25
- /* Retry on CI only */
26
17
retries : process . env . CI ? 2 : 0 ,
27
- /* Opt out of parallel tests on CI. */
28
18
workers : process . env . CI ? 1 : undefined ,
29
- /* Reporter to use. See https://playwright.dev/docs/test-reporters */
30
19
reporter : 'html' ,
31
- /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
32
- /**
33
- * Shared settings for all tests. Sets baseURL for page.goto and API requests.
34
- */
35
20
use : {
36
21
baseURL : 'http://localhost:5173' ,
37
22
trace : 'on-first-retry' ,
38
23
} ,
39
-
40
- /* Configure projects for major browsers */
41
24
projects : [
42
25
{
43
26
name : 'chromium' ,
@@ -76,10 +59,6 @@ export default defineConfig({
76
59
// },
77
60
] ,
78
61
79
- /**
80
- * Run the SvelteKit dev server before starting Playwright tests.
81
- * Uses Vite default port 5173.
82
- */
83
62
webServer : {
84
63
command : 'npm run dev' ,
85
64
url : 'http://localhost:5173' ,
0 commit comments