|
5 | 5 | "root": "integration-tests", |
6 | 6 | "sourceRoot": "integration-tests", |
7 | 7 | "targets": { |
8 | | - "test": { |
9 | | - "executor": "nx:run-commands", |
10 | | - "options": { |
11 | | - "cwd": "integration-tests", |
12 | | - "command": "playwright test --project='Google Chrome Fake Devices' --project=firefox --project='Microsoft Edge' --project='Mobile Chrome' --project='Electron'" |
13 | | - } |
14 | | - }, |
15 | 8 | "updateScreenshots": { |
16 | 9 | "executor": "nx:run-commands", |
17 | 10 | "cache": false, |
|
49 | 42 | "command": "tsc -p tsconfig.json --noEmit --watch --preserveWatchOutput" |
50 | 43 | } |
51 | 44 | }, |
| 45 | + "test": { |
| 46 | + "executor": "nx:run-commands", |
| 47 | + "description": "Run playwright tests in all browsers", |
| 48 | + "options": { |
| 49 | + "cwd": "integration-tests", |
| 50 | + "command": "playwright test --project='Google Chrome Fake Devices' --project=firefox --project='Microsoft Edge' --project='Mobile Chrome' --project='Electron'" |
| 51 | + } |
| 52 | + }, |
52 | 53 | "test:": { |
53 | 54 | "executor": "nx:run-commands", |
54 | | - "description": "Run playwright tests in a specific file", |
| 55 | + "description": "Run playwright tests in a specific file using the compiled version of the app without interruptions", |
| 56 | + "options": { |
| 57 | + "cwd": "integration-tests", |
| 58 | + "description": "Run playwright tests in a specific file", |
| 59 | + "command": "playwright test {args._} --project='Google Chrome Fake Devices' --workers=1 --headed", |
| 60 | + "env": { "headedMode": "true" } |
| 61 | + } |
| 62 | + }, |
| 63 | + "test:dev": { |
| 64 | + "executor": "nx:run-commands", |
| 65 | + "description": "Run playwright tests in a specific file using the dev version of the app without interruptions", |
| 66 | + "options": { |
| 67 | + "cwd": "integration-tests", |
| 68 | + "description": "Run playwright tests in a specific file", |
| 69 | + "command": "playwright test {args._} --project='Google Chrome Fake Devices' --workers=1 --headed", |
| 70 | + "env": { "headedMode": "true", "debugMode": "true" } |
| 71 | + } |
| 72 | + }, |
| 73 | + "test:debug": { |
| 74 | + "executor": "nx:run-commands", |
| 75 | + "description": "Run playwright tests in a specific file in debug mode with the dev version of the app", |
55 | 76 | "options": { |
56 | 77 | "cwd": "integration-tests", |
57 | 78 | "description": "Run playwright tests in a specific file", |
58 | | - "command": "playwright test {args._} --project='Google Chrome Fake Devices' --project=firefox --project='Microsoft Edge' --project='Mobile Chrome' --project='Electron'" |
| 79 | + "command": "playwright test {args._} --project='Google Chrome Fake Devices' --workers=1 --timeout=0", |
| 80 | + "env": { "headedMode": "true", "debugMode": "true", "PWDEBUG": "1" } |
59 | 81 | } |
60 | 82 | }, |
61 | 83 | "lint": { |
|
0 commit comments