@formatjs/editor 1.5.0 → 1.5.2
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 +6 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -513,9 +513,8 @@ library. The workflow demo demonstrates a React Intl consumer without making
|
|
|
513
513
|
## Browser interaction tests
|
|
514
514
|
|
|
515
515
|
Write native Playwright `*.spec.ts` files in `packages/editor/vrt/`. The
|
|
516
|
-
|
|
517
|
-
accessible locators, clicks, and web-first assertions. VRT captures are generated from the `.visual.tsx` module. Both targets
|
|
518
|
-
server, shell, declared inputs, and pinned Testcontainers browser.
|
|
516
|
+
runner supplies `baseURL`, so specs can use `page.goto('/')`,
|
|
517
|
+
accessible locators, clicks, and web-first assertions. VRT captures are generated from the `.visual.tsx` module. Both targets use the built application and pinned Testcontainers browser.
|
|
519
518
|
|
|
520
519
|
```sh
|
|
521
520
|
bazel test //packages/editor/vrt:e2e_test --test_output=errors
|
|
@@ -535,10 +534,10 @@ Playwright 1.63 native `mount()` specs for the real editor. The typed
|
|
|
535
534
|
mount/update/unmount. The tests check provider updates without losing a draft,
|
|
536
535
|
clear, ICU validation, and isolation between mounts.
|
|
537
536
|
|
|
538
|
-
`component_browser_test`
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
537
|
+
`component_browser_test` consumes the built gallery and compiled component specs.
|
|
538
|
+
E2E uses a compiled custom server adapter serving the same built app. The runtime
|
|
539
|
+
selects compiled `*.browser.spec.js` separately from E2E `*.spec.js` and generated
|
|
540
|
+
VRT captures. CI should explicitly run all three
|
|
542
541
|
manual browser targets. Screenshot baselines and updates remain in `visual_test`.
|
|
543
542
|
|
|
544
543
|
The default export of `editor.visual.tsx` is a `ComponentVisualModule`: it declares
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formatjs/editor",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Headless ICU MessageFormat editor for React",
|
|
6
6
|
"keywords": [
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@formatjs/icu-messageformat-parser": "3.5.
|
|
44
|
+
"@formatjs/icu-messageformat-parser": "3.5.18"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@types/react": "^19.0.0",
|