Verify menu and shortcut Save As independently on the signed Windows package

This commit is contained in:
Codex committed 2026-11-30 21:33:27 +01:00
1 parent 47a717dd65
commit a2fd3ed2b0
1 file changed
+7 -1
+7 -1
View File
@@ -159,8 +159,14 @@ try:
shortcut()
wait(lambda: digest(renamed)!=before, "Save did not update the working document")
assert digest(original)==original_hash
renamed_hash=digest(renamed)
menu_copy=root/"menu save as.vectorcraft"
engine("shape.rectangle",x=260,y=130,width=30,height=30)
picker(menu_copy,lambda: call("ui.menu.invoke",command="file.saveAs",params={}))
wait(lambda: menu_copy.stem in title(), "File > Save As did not switch to the new path")
assert digest(renamed)==renamed_hash and digest(original)==original_hash
# Reopen each saved file; template opening creates an untitled document from its contents.
for path, count in [(original,1),(copy,2),(template,2),(renamed,3)]:
for path, count in [(original,1),(copy,2),(template,2),(renamed,3),(menu_copy,4)]:
if path==template:
engine("file.newFromTemplate",path=str(path))
else: