@davoodmehraban89 / Aram-2 Mirror · read-only / commits / 92e2fce
Fork 0

Mirrored from https://github.com/davoodmehraban89/Aram.git

Synced Dec 3, 17:00 UTC

test(desktop): invoke every native button/menu and traverse all three tabs in Windows smoke

davoodmehraban89 committed Oct 30, 2026 at 23:41 UTC 92e2fce1ef580af2c4f5da1c1c9e4d8302eac40a
1 file changed +11 -2
backend/src/aram_backend/desktop_pilot.py
+11 -2
@@ -364,6 +364,13 @@ def ui_smoke_test() -> int:
364 try:
365 window.withdraw()
366 window.update_idletasks()
367 + for tab_index in range(window.tabs.index("end")):
368 + window.tabs.select(tab_index)
369 + if window.tabs.index(window.tabs.select()) != tab_index:
370 + return 17
371 + for key in ("<Control-o>", "<Control-r>", "<Control-l>", "<Control-q>", "<F1>"):
372 + if not window.bind_all(key):
373 + return 18
374 if str(window.validate_button.cget("state")) != "disabled":
375 return 10
376 window.file_menu.invoke(0) # open (real Tk menu callback)
@@ -378,10 +385,12 @@ def ui_smoke_test() -> int:
385 window.help_menu.invoke(0) # about (injected safe dialog)
386 if len(info_calls) != 1:
387 return 14
381 - window.clear_button.invoke() # clear
388 + window.clear_button.invoke() # clear button
389 if window.controller.selected_path is not None:
390 return 15
384 - window.file_menu.invoke(0) # open again
391 + window.open_button.invoke() # open button, not just menu
392 + if window.controller.selected_path != path:
393 + return 19
394 window.file_menu.invoke(2) # clear via menu
395 if window.controller.selected_path is not None:
396 return 16