@hmcts/media-viewer 4.2.26-nodejs-healthcheck-update-01 → 4.2.26
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/.yarn/cache/moment-timezone-npm-0.6.3-b95bcae468-55ae516386.zip +0 -0
- package/.yarn/cache/socket.io-parser-npm-4.2.7-0fe17183fd-da1920b9da.zip +0 -0
- package/.yarn/install-state.gz +0 -0
- package/README.md +12 -10
- package/fesm2022/hmcts-media-viewer.mjs +253 -253
- package/package.json +1 -1
- package/package.tgz +0 -0
- package/.yarn/cache/moment-timezone-npm-0.6.2-02e2e0d223-021f908742.zip +0 -0
- package/.yarn/cache/socket.io-parser-npm-4.2.6-35d9c58722-cf8f3e9fee.zip +0 -0
|
Binary file
|
|
Binary file
|
package/.yarn/install-state.gz
CHANGED
|
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` |
|
|
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 |
|
|
169
|
-
| --- | --- | --- | --- |
|
|
170
|
-
| Viewer support | `functional-output/tests/playwright-support/odhin-report/xui-playwright-support.html` | `functional-output/tests/playwright-support/
|
|
171
|
-
| Smoke | `functional-output/tests/playwright-smoke/odhin-report/xui-playwright-smoke.html` | `functional-output/tests/playwright-smoke/
|
|
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
|
-
-
|
|
190
|
-
|
|
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,
|
|
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
|
|
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.
|