From a2fd3ed2b07b69bfd5ff4a50100c820399711ec1 Mon Sep 17 00:00:00 2001 From: Codex Date: Mon, 30 Nov 2026 21:33:27 +0100 Subject: [PATCH] Verify menu and shortcut Save As independently on the signed Windows package --- .github/qa-windows-saves.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/qa-windows-saves.py b/.github/qa-windows-saves.py index 32dc006a32..86d5b41952 100644 --- a/.github/qa-windows-saves.py +++ b/.github/qa-windows-saves.py @@ -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: