Mirrored from https://github.com/davoodmehraban89/Aram.git
Synced Dec 3, 22:00 UTC
test(desktop): exercise next/previous 200-row detail pagination in frozen EXE
davoodmehraban89 committed
Oct 31, 2026 at 21:46 UTC
23be18ead18eee37c1a981834903d33b3e47b263
1 file changed
+19
backend/src/aram_backend/desktop_five_statement.py
+19
@@ -732,6 +732,25 @@ def ui_valid_smoke_test() -> int:
732
return 33
733
window.detail_filter_var.set("همه")
734
window.detail_search_var.set("")
735
+ original_details = window._detail_rows
736
+ if not original_details:
737
+ return 34
738
+ repeats = 200 // len(original_details) + 1
739
+ window._detail_rows = original_details * repeats
740
+ window._apply_detail_filter()
741
+ if len(window.detail_tree.get_children()) != 200:
742
+ return 35
743
+ if str(window.detail_next_button.cget("state")) != "normal":
744
+ return 36
745
+ window._change_detail_page(1)
746
+ if len(window.detail_tree.get_children()) != len(window._detail_rows) - 200:
747
+ return 37
748
+ if str(window.detail_prev_button.cget("state")) != "normal":
749
+ return 38
750
+ window._change_detail_page(-1)
751
+ if len(window.detail_tree.get_children()) != 200:
752
+ return 39
753
+ window._detail_rows = original_details
754
window._apply_detail_filter()
755
if any(
756
window.outcome_tree.item(row, "values")[1] != "قابل بررسی"