@davoodmehraban89 / Aram / commits / bdc4d5f
Fork 0

test(desktop): exercise detail filtering and clearing in frozen Windows GUI smoke

davoodmehraban89 committed Oct 31, 2026 at 21:40 UTC bdc4d5fa73dc1726404facd8deefdd8b5d1cd86a
1 file changed +23 -1
backend/src/aram_backend/desktop_five_statement.py
+23 -1
@@ -713,13 +713,35 @@ def ui_valid_smoke_test() -> int:
713 and row[2] == "20" for row in amount_rows
714 ):
715 return 29
716 + detail_rows = window.detail_tree.get_children()
717 + if not window._detail_rows or not detail_rows:
718 + return 30
719 + if not any(
720 + row.item == "Revenue" and row.statement == "سود و زیان"
721 + for row in window._detail_rows
722 + ):
723 + return 31
724 + window.detail_filter_var.set("سود و زیان")
725 + window.detail_search_var.set("Revenue")
726 + window._apply_detail_filter()
727 + filtered = window.detail_tree.get_children()
728 + if len(filtered) != 1:
729 + return 32
730 + values = window.detail_tree.item(filtered[0], "values")
731 + if values[1] != "Revenue" or values[0] != "سود و زیان":
732 + return 33
733 + window.detail_filter_var.set("همه")
734 + window.detail_search_var.set("")
735 + window._apply_detail_filter()
736 if any(
737 window.outcome_tree.item(row, "values")[1] != "قابل بررسی"
738 for row in rows
739 ):
740 return 25
741 window.clear_button.invoke()
722 - if window.controller.result is not None or window.outcome_tree.get_children():
742 + if (window.controller.result is not None or window.outcome_tree.get_children()
743 + or window.figures_tree.get_children() or window.detail_tree.get_children()
744 + or window._detail_rows):
745 return 26
746 if str(window.run_button.cget("state")) != "disabled":
747 return 27