Skip to content

Commit 0060da6

Browse files
Changed playwright config
1 parent 51c65a2 commit 0060da6

File tree

3 files changed

+21
-20
lines changed

3 files changed

+21
-20
lines changed

apps/dot-e2e/playwright.config.ts

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineConfig, devices } from '@playwright/test';
22
import { nxE2EPreset } from '@nx/playwright/preset';
33

4-
import { workspaceRoot } from '@nx/devkit';
4+
// import { workspaceRoot } from '@nx/devkit';
55

66
// For CI, you may want to set BASE_URL to the deployed application.
77
const baseURL = process.env['BASE_URL'] || 'http://localhost:4200';
@@ -19,33 +19,32 @@ export default defineConfig({
1919
...nxE2EPreset(__filename, { testDir: './src' }),
2020
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
2121
use: {
22-
headless: true,
22+
// headless: true,
2323
baseURL,
2424
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
2525
trace: 'on-first-retry',
2626
},
2727
/* 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+
// },
3434
projects: [
3535
{
3636
name: 'chromium',
3737
use: { ...devices['Desktop Chrome'] },
3838
},
39+
// {
40+
// name: 'firefox',
41+
// use: { ...devices['Desktop Firefox'] },
42+
// },
3943

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+
// },
4948

5049
// Uncomment for mobile browsers support
5150
/* {

apps/dot-e2e/project.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@
33
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"projectType": "application",
55
"sourceRoot": "apps/dot-e2e/src",
6-
"implicitDependencies": ["dot"],
7-
"// targets": "to see all targets run: nx show project dot-e2e --web",
8-
"targets": {}
6+
"implicitDependencies": ["dot"]
97
}

test-results/.last-run.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"status": "failed",
3+
"failedTests": []
4+
}

0 commit comments

Comments
 (0)