@trackunit/iris-app-playwright 0.1.39 → 0.1.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -33,7 +33,7 @@ This creates:
|
|
|
33
33
|
- `playwright/support/fixtures.ts` — re-exports `test`, `expect`, and `describe`
|
|
34
34
|
- `playwright/fixtures/auth.json` — fill in credentials
|
|
35
35
|
- `playwright/tests/app.spec.ts` — sample login spec
|
|
36
|
-
- `e2e
|
|
36
|
+
- `e2e` and `e2e-ui` targets in `project.json`
|
|
37
37
|
|
|
38
38
|
### 2. Fill in credentials
|
|
39
39
|
|
|
@@ -64,10 +64,10 @@ describe("My Feature", () => {
|
|
|
64
64
|
|
|
65
65
|
```bash
|
|
66
66
|
# Against dev environment (headless)
|
|
67
|
-
yarn nx run my-app:e2e
|
|
67
|
+
yarn nx run my-app:e2e --configuration=dev
|
|
68
68
|
|
|
69
69
|
# Interactive UI mode
|
|
70
|
-
yarn nx run my-app:e2e-
|
|
70
|
+
yarn nx run my-app:e2e-ui --configuration=local
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
> **Outside the devcontainer:** Playwright browser binaries are not bundled. Run
|
|
@@ -193,7 +193,7 @@ Defaults to Playwright's behaviour (`undefined`, project-level setting wins). Se
|
|
|
193
193
|
Set the `codeowner` environment variable to append a `[team-name]` suffix to all describe titles in the test report:
|
|
194
194
|
|
|
195
195
|
```bash
|
|
196
|
-
codeowner=team-gluon-fe yarn nx run my-app:e2e
|
|
196
|
+
codeowner=team-gluon-fe yarn nx run my-app:e2e --configuration=dev
|
|
197
197
|
```
|
|
198
198
|
|
|
199
199
|
Use the `describe` wrapper exported from `@trackunit/iris-app-playwright/support` (not Playwright's built-in `test.describe`) to get this behaviour.
|
package/package.json
CHANGED
|
@@ -47,7 +47,7 @@ async function playwrightConfigurationGenerator(tree, options) {
|
|
|
47
47
|
...existingProjectConfig,
|
|
48
48
|
targets: {
|
|
49
49
|
...existingProjectConfig.targets,
|
|
50
|
-
"e2e-
|
|
50
|
+
"e2e-ui": {
|
|
51
51
|
executor: "nx:run-commands",
|
|
52
52
|
options: {
|
|
53
53
|
command: `playwright test --config=playwright.config.ts --headed --ui`,
|
|
@@ -55,7 +55,7 @@ async function playwrightConfigurationGenerator(tree, options) {
|
|
|
55
55
|
},
|
|
56
56
|
configurations,
|
|
57
57
|
},
|
|
58
|
-
"e2e
|
|
58
|
+
"e2e": {
|
|
59
59
|
executor: "nx:run-commands",
|
|
60
60
|
options: {
|
|
61
61
|
command: `playwright test --config=playwright.config.ts`,
|