@hmcts/media-viewer 4.2.33-4951 → 4.2.34

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
@@ -116,9 +116,10 @@ For browser-level proof that the standalone viewer is using AAT-backed services,
116
116
  yarn test:local:aat
117
117
  ```
118
118
 
119
- This executes the functional Playwright lane against the local standalone Media Viewer.
120
- It creates the same AAT-backed CCD cases and DM Store documents as the migrated legacy
121
- scenarios, while keeping the browser at `http://localhost:3000/`. The lightweight
119
+ This executes the Functional Playwright contracts against the local standalone Media
120
+ Viewer and AAT-backed proxy configuration while keeping the browser at
121
+ `http://localhost:3000/`. It does not create CCD cases or DM Store documents; use
122
+ the opt-in external-service contracts for those live service probes. The lightweight
122
123
  route and health check remains available as `yarn smoke:local:aat`.
123
124
 
124
125
  ### 5. Run Playwright tests
@@ -132,15 +133,15 @@ Current Playwright lanes:
132
133
  | Lane | Config/project | Command | Scope |
133
134
  | --- | --- | --- | --- |
134
135
  | Standalone smoke | `playwright.config.ts`, project `smoke` | `yarn test:playwright:smoke` or `yarn test:smoke` | One readiness contract: loads a standalone PDF and proves the rendered viewer, first page and canvas are usable. |
135
- | Migrated functional | `playwright.config.ts`, project `functional` | `yarn test:playwright:functional` | 71 fixture-backed browser contracts across 13 feature files. Two additional image-annotation create contracts are discoverable, ticketed against [EXUI-5124](https://tools.hmcts.net/jira/browse/EXUI-5124), and excluded from the default selection because the current product does not persist an image draw-box annotation. See [`playwright_tests/functional/README.md`](playwright_tests/functional/README.md). |
136
- | Live integration | `playwright.config.ts`, project `integration` | `yarn test:playwright:integration` | Five bounded AAT service contracts, including CCD/DM Store document setup and live annotation create/retrieve/update/delete. Four CCD browser-route contracts are discoverable and ticketed against [EXUI-5122](https://tools.hmcts.net/jira/browse/EXUI-5122) and [EXUI-5123](https://tools.hmcts.net/jira/browse/EXUI-5123). |
136
+ | Migrated functional | `playwright.config.ts`, project `functional` | `yarn test:playwright:functional` | 74 fixture-backed browser contracts across 13 feature files, including separate failed PDF/image rendered-state diagnostics. Two additional image-annotation create contracts are discoverable, ticketed against [EXUI-5124](https://tools.hmcts.net/jira/browse/EXUI-5124), and excluded from the default selection because the current product does not persist an image draw-box annotation. See [`playwright_tests/functional/README.md`](playwright_tests/functional/README.md). |
137
+ | External service diagnostics | `playwright.config.ts`, opt-in project `external-service-contracts` | `yarn test:playwright:external-service-contracts` | Optional live AAT CCD/DM Store/annotation probes for a deliberate environment investigation. The default command executes 6 non-defect service contracts; four CCD browser-route contracts tagged against [EXUI-5122](https://tools.hmcts.net/jira/browse/EXUI-5122) and [EXUI-5123](https://tools.hmcts.net/jira/browse/EXUI-5123) remain discoverable but are excluded by default. Use `PLAYWRIGHT_INCLUDE_KNOWN_DEFECTS=true` to discover and execute all 10. They are never part of normal PR assurance. |
137
138
  | 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. |
138
139
 
139
140
  The current migration slice is deliberately separated from smoke: smoke proves
140
- the application is ready, functional proves user-facing viewer behaviour, and
141
- support proves the reusable automation contracts, and Integration proves the
142
- live AAT service boundaries without making the standalone browser suite depend
143
- on shared CCD state. Every Playwright Odhín report includes a capability
141
+ the application is ready, functional proves user-facing viewer behaviour and
142
+ its deterministic Viewer/service request-response contracts, and support proves
143
+ the reusable automation contracts. External service diagnostics
144
+ are opt-in and never gate a standalone Media Viewer change. Every Playwright Odhín report includes a capability
144
145
  inventory that states whether each contract is selected by default or is a
145
146
  discoverable, ticketed product-defect contract.
146
147
 
@@ -280,21 +281,16 @@ case or DM Store document. Run the fixture-backed Functional lane locally with:
280
281
  yarn test:playwright:functional
281
282
  ```
282
283
 
283
- For live service-boundary proof, load the approved local AAT settings, start
284
- the AAT proxy, then run the serial Integration lane:
284
+ The default local suite is standalone: it needs neither AAT credentials nor
285
+ shared CCD, DM Store or annotation-service state. External service diagnostics
286
+ are deliberately opt-in and must not be used as normal migration assurance. The
287
+ external command runs 6 contracts by default; `PLAYWRIGHT_INCLUDE_KNOWN_DEFECTS=true`
288
+ runs the full 10-contract inventory, including the four ticketed CCD browser defects.
289
+ Known product-defect contracts are not skipped: they remain discoverable and
290
+ run only when explicitly selected:
285
291
 
286
292
  ```
287
- yarn check:aat-config
288
- yarn start:aat
289
- PLAYWRIGHT_SKIP_INSTALL=true yarn test:playwright:integration
290
- ```
291
-
292
- Integration creates a unique CCD case and documents for its own lifecycle; it
293
- does not share them with Functional tests. Known product-defect contracts are
294
- not skipped: they remain discoverable and run only when explicitly selected:
295
-
296
- ```
297
- PLAYWRIGHT_INCLUDE_KNOWN_DEFECTS=true yarn playwright test --grep @defect-EXUI-5124
293
+ PLAYWRIGHT_INCLUDE_KNOWN_DEFECTS=true yarn test:playwright:functional -- --grep @defect-EXUI-5124
298
294
  ```
299
295
 
300
296
  ### Useful overrides
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmcts/media-viewer",
3
- "version": "4.2.33-4951",
3
+ "version": "4.2.34",
4
4
  "description": "Media Viewer",
5
5
  "keywords": [
6
6
  "Angular",
@@ -23,7 +23,7 @@
23
23
  "pdfjs-dist": "^4.10.38",
24
24
  "socket.io-client": "^4.8.0",
25
25
  "tslib": "^2.3.0",
26
- "uuid": "^11.1.1"
26
+ "uuid": "^11.0.3"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "@angular/animations": "^20.0.0",
package/package.tgz CHANGED
Binary file