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: