@hmcts/media-viewer 4.2.26-nodejs-healthcheck-update-01 → 4.2.27-qs-update

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.
Binary file
package/README.md CHANGED
@@ -131,7 +131,7 @@ Current Playwright lanes:
131
131
 
132
132
  | Lane | Config/project | Command | Scope |
133
133
  | --- | --- | --- | --- |
134
- | Standalone smoke | `playwright.config.ts`, project `smoke` | `yarn test:playwright:smoke` or `yarn test:smoke` | Opens the standalone Media Viewer demo, loads `assets/example.pdf`, and verifies the PDF viewer, page-number control and first rendered page. |
134
+ | Standalone smoke | `playwright.config.ts`, project `smoke` | `yarn test:playwright:smoke` or `yarn test:smoke` | Loads standalone PDF and image fixtures and verifies rendered-document readiness, PDF zoom and navigation, image rotation and deterministic PDF search. |
135
135
  | Viewer support | `playwright.config.ts`, project `support` | `yarn test:playwright:support` | Proves the reusable PDF, image and unsupported-media fixtures, component objects and response diagnostics. |
136
136
 
137
137
  The Playwright config runs tests fully in parallel with seven workers. Each test
@@ -165,10 +165,10 @@ remains available as `yarn test:smoke:legacy` while migration work continues.
165
165
 
166
166
  The lane wrapper commands write Playwright evidence under `functional-output/tests`:
167
167
 
168
- | Lane | Odhín | HTML | JUnit | Trace, screenshot and video output |
169
- | --- | --- | --- | --- | --- |
170
- | Viewer support | `functional-output/tests/playwright-support/odhin-report/xui-playwright-support.html` | `functional-output/tests/playwright-support/html-report/index.html` | `functional-output/tests/playwright-support/playwright-support-junit.xml` | `functional-output/tests/playwright-support/test-results` |
171
- | Smoke | `functional-output/tests/playwright-smoke/odhin-report/xui-playwright-smoke.html` | `functional-output/tests/playwright-smoke/html-report/index.html` | `functional-output/tests/playwright-smoke/playwright-smoke-junit.xml` | `functional-output/tests/playwright-smoke/test-results` |
168
+ | Lane | Odhín | JUnit | Trace, screenshot and video output |
169
+ | --- | --- | --- | --- |
170
+ | Viewer support | `functional-output/tests/playwright-support/odhin-report/xui-playwright-support.html` | `functional-output/tests/playwright-support/playwright-support-junit.xml` | `functional-output/tests/playwright-support/test-results` |
171
+ | Smoke | `functional-output/tests/playwright-smoke/odhin-report/xui-playwright-smoke.html` | `functional-output/tests/playwright-smoke/playwright-smoke-junit.xml` | `functional-output/tests/playwright-smoke/test-results` |
172
172
 
173
173
  Those are the default lane-specific paths. CNP keeps preview and AAT viewer
174
174
  support evidence separate under `functional-output/tests/playwright-support/preview`
@@ -186,8 +186,10 @@ Reporting behavior follows the MC/MO pattern:
186
186
  version, branch, target environment, CI or local context, worker count, CPU
187
187
  count and total RAM in its run information.
188
188
  - CI logs Odhín finalisation progress using the same progress reporter as MC/MO.
189
- - HTML, JUnit and Odhín reporters can run together.
190
- - Traces, screenshots and videos are kept on failure for diagnostics.
189
+ - Odhín is the only standard human-readable report. JUnit is retained for
190
+ Jenkins ingestion. Screenshots and videos are kept on failure; traces are
191
+ captured on the first retry.
192
+ The standard Playwright HTML reporter is not supported.
191
193
  - `PLAYWRIGHT_SKIP_INSTALL=true` skips browser installation when Jenkins or a
192
194
  local setup step has already installed Chromium.
193
195
  - Jenkins CNP and nightly pipelines publish the Odhín HTML reports, publish
@@ -204,9 +206,8 @@ tests and Chromium into the workspace-local `PLAYWRIGHT_BROWSERS_PATH`, and sets
204
206
 
205
207
  Useful overrides:
206
208
  - `PLAYWRIGHT_BASE_URL` or `TEST_URL`: target application URL, default `http://localhost:3000/`
207
- - `PLAYWRIGHT_REPORTERS`: comma-separated reporter list, for example `list,html,junit,odhin`
209
+ - `PLAYWRIGHT_REPORTERS`: comma-separated reporter list, for example `list,junit,odhin`
208
210
  - `PLAYWRIGHT_DEFAULT_REPORTER`: terminal reporter when `PLAYWRIGHT_REPORTERS` is not set, default `list` locally and `dot` in CI
209
- - `PLAYWRIGHT_HTML_REPORT`: HTML report folder
210
211
  - `PLAYWRIGHT_JUNIT_OUTPUT`: JUnit XML path
211
212
  - `PLAYWRIGHT_REPORT_FOLDER`: Odhín report folder
212
213
  - `PLAYWRIGHT_REPORT_INDEX_FILENAME`: Odhín report file name
@@ -250,7 +251,8 @@ Migration boundaries:
250
251
  - Keep legacy Protractor and CodeceptJS coverage until replacement coverage and
251
252
  Jenkins evidence are agreed.
252
253
  - Add stable report output paths for every new Playwright lane so Jenkins can
253
- publish Odhín, HTML and JUnit without bespoke stage logic.
254
+ publish Odhín and JUnit and archive failure diagnostics without bespoke stage
255
+ logic.
254
256
  - Prefer Playwright browser-level assertions for viewer readiness; do not treat
255
257
  an error page, blank page, wrong route or service-down page as a valid ready
256
258
  signal.