mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-11 00:41:21 +00:00
Binds Properties dialog drafts to the vendored edit-session crate (byte-identical to PerchAnton/edit-session@033f7c3a, ledger in vendor/README) and adds replayable UI scenarios. Includes a merge of main and a test covering the clean Properties inspection-tab live refresh.
31 lines
1.0 KiB
JSON
31 lines
1.0 KiB
JSON
{
|
|
"schema": 1,
|
|
"name": "Document Properties: no-op-preserves-redo",
|
|
"steps": [
|
|
{
|
|
"event": {"op": "external_edit_undo", "key": "Subject", "value": "Future"},
|
|
"expect": {"error": null, "document": {"title": "Original", "subject": null, "undo": null, "redo": "Change Subject"}}
|
|
},
|
|
{
|
|
"event": {"op": "open"},
|
|
"expect": {"error": null}
|
|
},
|
|
{
|
|
"event": {"op": "type", "field": "Title", "value": "Transient"},
|
|
"expect": {"error": null}
|
|
},
|
|
{
|
|
"event": {"op": "type", "field": "Title", "value": " Original "},
|
|
"expect": {"error": null, "draft": {"title": " Original "}, "document": {"title": "Original", "undo": null, "redo": "Change Subject"}}
|
|
},
|
|
{
|
|
"event": {"op": "click", "label": "Close"},
|
|
"expect": {"error": null, "properties_open": false, "draft": null, "document": {"title": "Original", "undo": null, "redo": "Change Subject"}}
|
|
},
|
|
{
|
|
"event": {"op": "redo"},
|
|
"expect": {"error": null, "document": {"subject": "Future"}}
|
|
}
|
|
]
|
|
}
|