Skip to content

Commit ce28bdd

Browse files
author
DavidQ
committed
Auto-open Playwright HTML report after test execution - PR_11_318E
1 parent 2eed23d commit ce28bdd

8 files changed

Lines changed: 73 additions & 2 deletions

File tree

docs/dev/codex_commands.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,10 @@ PR_11_318D
201201
```bash
202202
npx @openai/codex run --model gpt-5.3-codex --reasoning medium "Implement PR_11_318D: Expand Workspace V2 Playwright UI coverage into full Asset Manager regression with launch/add/remove/validation/export/import round-trip assertions."
203203
```
204+
205+
---
206+
PR_11_318E
207+
208+
```bash
209+
npx @openai/codex run --model gpt-5.3-codex --reasoning medium "Implement PR_11_318E: Configure Playwright HTML reporter to open automatically after targeted UI test runs."
210+
```

docs/dev/commit_comment.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Expand Workspace V2 Playwright UI regression coverage for Asset Manager launch, validation, export, and round-trip import - PR 11.318D
1+
Enable automatic Playwright HTML report opening while preserving existing test output settings - PR 11.318E
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# PR_11_318E Report
2+
3+
## Purpose
4+
Automatically open the Playwright HTML report after test runs.
5+
6+
## Files Changed
7+
- `playwright.config.cjs`
8+
- `docs/pr/PR_11_318E_PLAYWRIGHT_REPORT_AUTO_OPEN/PLAN_PR.md`
9+
- `docs/pr/PR_11_318E_PLAYWRIGHT_REPORT_AUTO_OPEN/BUILD_PR.md`
10+
- `docs/dev/reports/PR_11_318E_report.md`
11+
- `docs/dev/codex_commands.md`
12+
- `docs/dev/commit_comment.txt`
13+
14+
## Implementation Summary
15+
- Set Playwright HTML reporter `open` mode to `always`.
16+
- Kept reporter output folder at `tests/results/report`.
17+
- Preserved existing config behavior:
18+
- `headless: false`
19+
- `slowMo: 500`
20+
- `trace: "on"`
21+
- `outputDir: "tests/results"`
22+
23+
## Validation Commands
24+
- `node --check playwright.config.cjs` -> **PASS**
25+
- `npx playwright test tests/ui/workspace-v2.asset-manager.spec.js` -> **PASS**
26+
27+
## Notes
28+
- HTML report auto-open behavior is configured in Playwright; actual browser opening depends on local environment execution context.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# BUILD_PR_11_318E
2+
3+
## Implementation
4+
- Updated `playwright.config.cjs` reporter configuration to:
5+
- `["list"]`
6+
- `["html", { outputFolder: "tests/results/report", open: "always" }]`
7+
8+
## Preserved Settings
9+
- `headless: false`
10+
- `launchOptions.slowMo: 500`
11+
- `trace: "on"`
12+
- `outputDir: "tests/results"`
13+
14+
## Validation
15+
- `node --check playwright.config.cjs`
16+
- `npx playwright test tests/ui/workspace-v2.asset-manager.spec.js`
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# PLAN_PR_11_318E
2+
3+
## Purpose
4+
Enable automatic opening of the Playwright HTML report after targeted UI test runs.
5+
6+
## Scope
7+
- `playwright.config.cjs`
8+
- `docs/dev/reports/PR_11_318E_report.md`
9+
- `docs/dev/codex_commands.md`
10+
- `docs/dev/commit_comment.txt`
11+
12+
## Steps
13+
1. Update Playwright HTML reporter setting to `open: "always"`.
14+
2. Preserve existing execution settings:
15+
- `headless: false`
16+
- `slowMo`
17+
- `trace: "on"`
18+
- `outputDir: "tests/results"`
19+
3. Run required targeted validations.

playwright.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
],
1010
reporter: [
1111
["list"],
12-
["html", { outputFolder: "tests/results/report", open: "never" }]
12+
["html", { outputFolder: "tests/results/report", open: "always" }]
1313
],
1414
use: {
1515
headless: false,

tests/playwright_installation.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ HTML-JavaScript-Gaming/
112112
## 🚫 Important
113113

114114
```text
115+
115116
✔ Keep node_modules at root
116117
✔ Do NOT move node_modules to tmp
117118
✔ tests/results is safe for outputs

tests/results.zip

25.4 MB
Binary file not shown.

0 commit comments

Comments
 (0)