1
1
import { defineConfig , devices } from '@playwright/test' ;
2
2
import { nxE2EPreset } from '@nx/playwright/preset' ;
3
3
4
- import { workspaceRoot } from '@nx/devkit' ;
4
+ // import { workspaceRoot } from '@nx/devkit';
5
5
6
6
// For CI, you may want to set BASE_URL to the deployed application.
7
7
const baseURL = process . env [ 'BASE_URL' ] || 'http://localhost:4200' ;
@@ -19,33 +19,32 @@ export default defineConfig({
19
19
...nxE2EPreset ( __filename , { testDir : './src' } ) ,
20
20
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
21
21
use : {
22
- headless : true ,
22
+ // headless: true,
23
23
baseURL,
24
24
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
25
25
trace : 'on-first-retry' ,
26
26
} ,
27
27
/* Run your local dev server before starting the tests */
28
- webServer : {
29
- command : 'npx nx serve dot' ,
30
- url : 'http://localhost:4200' ,
31
- reuseExistingServer : ! process . env [ 'CI' ] ,
32
- cwd : workspaceRoot ,
33
- } ,
28
+ // webServer: {
29
+ // command: 'npx nx serve dot',
30
+ // url: 'http://localhost:4200',
31
+ // reuseExistingServer: !process.env['CI'],
32
+ // cwd: workspaceRoot,
33
+ // },
34
34
projects : [
35
35
{
36
36
name : 'chromium' ,
37
37
use : { ...devices [ 'Desktop Chrome' ] } ,
38
38
} ,
39
+ // {
40
+ // name: 'firefox',
41
+ // use: { ...devices['Desktop Firefox'] },
42
+ // },
39
43
40
- {
41
- name : 'firefox' ,
42
- use : { ...devices [ 'Desktop Firefox' ] } ,
43
- } ,
44
-
45
- {
46
- name : 'webkit' ,
47
- use : { ...devices [ 'Desktop Safari' ] } ,
48
- } ,
44
+ // {
45
+ // name: 'webkit',
46
+ // use: { ...devices['Desktop Safari'] },
47
+ // },
49
48
50
49
// Uncomment for mobile browsers support
51
50
/* {
0 commit comments