Files
pdfcraft/tests/interactions/document-properties/close-document.json
T
Perchenko Anton d47adeff89 M4: bind property drafts with edit-session and replay UI scenarios (#4594)
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.
2026-11-10 20:22:58 +01:00

27 lines
829 B
JSON

{
"schema": 1,
"name": "Document Properties: close-document",
"steps": [
{
"event": {"op": "open"},
"expect": {"error": null}
},
{
"event": {"op": "type", "field": "Title", "value": "Stale"},
"expect": {"error": null}
},
{
"event": {"op": "close_document"},
"expect": {"error": null, "properties_open": false, "draft": null, "active": "B.pdf", "document": {"title": "Second document", "dirty": false, "undo": null, "redo": null}, "original_bytes": true, "notice": "The document changed. Reopen Document Properties to edit the current version."}
},
{
"event": {"op": "open"},
"expect": {"error": null, "draft": {"title": "Second document"}}
},
{
"event": {"op": "click", "label": "Close"},
"expect": {"error": null}
}
]
}