mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-10 21:11:52 +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.
23 lines
749 B
JSON
23 lines
749 B
JSON
{
|
|
"schema": 1,
|
|
"name": "Document Properties: undo-aba",
|
|
"steps": [
|
|
{
|
|
"event": {"op": "open"},
|
|
"expect": {"error": null}
|
|
},
|
|
{
|
|
"event": {"op": "type", "field": "Title", "value": "Stale"},
|
|
"expect": {"error": null}
|
|
},
|
|
{
|
|
"event": {"op": "external_edit_undo", "key": "Title", "value": "Temporary"},
|
|
"expect": {"error": null, "properties_open": false, "draft": null, "document": {"title": "Original", "undo": null, "redo": "Change Title"}, "notice": "The document changed. Reopen Document Properties to edit the current version."}
|
|
},
|
|
{
|
|
"event": {"op": "redo"},
|
|
"expect": {"error": null, "document": {"title": "Temporary", "undo": "Change Title", "redo": null}}
|
|
}
|
|
]
|
|
}
|