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.
39 lines
1.7 KiB
JSON
39 lines
1.7 KiB
JSON
{
|
|
"schema": 1,
|
|
"name": "Document Properties: cancel-and-escape",
|
|
"steps": [
|
|
{
|
|
"event": {"op": "open"},
|
|
"expect": {"error": null}
|
|
},
|
|
{
|
|
"event": {"op": "type", "field": "Title", "value": "Discard by Cancel"},
|
|
"expect": {"error": null}
|
|
},
|
|
{
|
|
"event": {"op": "click", "label": "Cancel"},
|
|
"expect": {"error": null, "properties_open": false, "draft": null, "document": {"title": "Original", "author": "Original author", "custom": {"Untouched": "Keep me"}, "display_title": false, "dirty": false, "undo": null, "redo": null, "pages": 2, "custom_count": 1}, "original_bytes": true}
|
|
},
|
|
{
|
|
"event": {"op": "open"},
|
|
"expect": {"error": null, "draft": {"title": "Original"}}
|
|
},
|
|
{
|
|
"event": {"op": "type", "field": "Author", "value": "Discard by Escape"},
|
|
"expect": {"error": null}
|
|
},
|
|
{
|
|
"event": {"op": "escape"},
|
|
"expect": {"error": null, "properties_open": false, "draft": null, "document": {"title": "Original", "author": "Original author", "custom": {"Untouched": "Keep me"}, "display_title": false, "dirty": false, "undo": null, "redo": null, "pages": 2, "custom_count": 1}, "original_bytes": true}
|
|
},
|
|
{
|
|
"event": {"op": "open"},
|
|
"expect": {"error": null, "draft": {"author": "Original author"}}
|
|
},
|
|
{
|
|
"event": {"op": "click", "label": "Close"},
|
|
"expect": {"error": null, "properties_open": false, "draft": null, "document": {"title": "Original", "author": "Original author", "custom": {"Untouched": "Keep me"}, "display_title": false, "dirty": false, "undo": null, "redo": null, "pages": 2, "custom_count": 1}, "original_bytes": true}
|
|
}
|
|
]
|
|
}
|