@@ -6,34 +6,23 @@ import { nxE2EPreset } from '@nx/playwright/preset'
66
77import { defineConfig , devices } from '@playwright/test'
88
9- /**
10- * Read environment variables from file.
11- * https://github.com/motdotla/dotenv
12- */
139import 'dotenv/config'
1410
1511const __filename = fileURLToPath ( import . meta. url )
1612
17- // For CI, you may want to set BASE_URL to the deployed application.
18- const baseURL = process . env . BASE_URL || 'http://localhost:3000'
13+ const baseURL = process . env . CUHACKING_2025_DOCS_SITE_LOCAL_URL
1914
20- /**
21- * See https://playwright.dev/docs/test-configuration.
22- */
2315export default defineConfig ( {
2416 ...nxE2EPreset ( __filename , { testDir : './src' } ) ,
25- fullyParallel : true ,
26- workers : '100%' ,
27- /* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
17+ fullyParallel : ! process . env . CI ,
18+ workers : process . env . CI ? 6 : undefined ,
2819 retries : 2 ,
2920 use : {
3021 baseURL,
31- /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
3222 trace : 'on-first-retry' ,
3323 } ,
34- /* Run your local dev server before starting the tests */
3524 webServer : {
36- command : 'pnpm nx start docs --verbose' ,
25+ command : 'pnpm nx dev docs --verbose' ,
3726 url : 'http://localhost:3000' ,
3827 reuseExistingServer : ! process . env . CI ,
3928 cwd : workspaceRoot ,
@@ -45,29 +34,29 @@ export default defineConfig({
4534 name : 'chromium (desktop)' ,
4635 use : { ...devices [ 'Desktop Chrome' ] } ,
4736 } ,
48- {
49- name : 'firefox (desktop)' ,
50- use : { ...devices [ 'Desktop Firefox' ] } ,
51- testIgnore : [ './src/lighthouse.spec.ts' ] ,
52- } ,
53- {
54- name : 'webkit (desktop)' ,
55- use : { ...devices [ 'Desktop Safari' ] } ,
56- testIgnore : [ './src/lighthouse.spec.ts' ] ,
57- } ,
58- {
59- name : 'webkit (tablet)' ,
60- use : { ...devices [ 'iPad Mini' ] } ,
61- testIgnore : [ './src/lighthouse.spec.ts' ] ,
62- } ,
37+ // {
38+ // name: 'firefox (desktop)',
39+ // use: { ...devices['Desktop Firefox'] },
40+ // testIgnore: ['./src/lighthouse.spec.ts'],
41+ // },
42+ // {
43+ // name: 'webkit (desktop)',
44+ // use: { ...devices['Desktop Safari'] },
45+ // testIgnore: ['./src/lighthouse.spec.ts'],
46+ // },
47+ // {
48+ // name: 'webkit (tablet)',
49+ // use: { ...devices['iPad Mini'] },
50+ // testIgnore: ['./src/lighthouse.spec.ts'],
51+ // },
6352 {
6453 name : 'chromium (mobile)' ,
6554 use : { ...devices [ 'Pixel 5' ] } ,
6655 } ,
67- {
68- name : 'webkit (mobile)' ,
69- use : { ...devices [ 'iPhone 12' ] } ,
70- testIgnore : [ './src/lighthouse.spec.ts' ] ,
71- } ,
56+ // {
57+ // name: 'webkit (mobile)',
58+ // use: { ...devices['iPhone 12'] },
59+ // testIgnore: ['./src/lighthouse.spec.ts'],
60+ // },
7261 ] ,
7362} )
0 commit comments