fix(desktop): correct frozen EXE pagination smoke to assert bounded 200-row second page
davoodmehraban89 committed
Nov 1, 2026 at 00:02 UTC
57cbe295f76b6c1c81656371b196cfac6d5b244e
1 file changed
+5
-1
backend/src/aram_backend/desktop_five_statement.py
+5
-1
@@ -835,7 +835,11 @@ def ui_valid_smoke_test() -> int:
835
if str(window.detail_next_button.cget("state")) != "normal":
836
return 36
837
window._change_detail_page(1)
838
- if len(window.detail_tree.get_children()) != len(window._detail_rows) - 200:
838
+ # Each page is bounded to 200 *filtered* rows; it must not
839
+ # materialize the entire remaining 75k-row dataset into Tk.
840
+ if len(window.detail_tree.get_children()) != min(
841
+ window._detail_page_size, expected_trial_balance - window._detail_page_size,
842
+ ):
843
return 37
844
if str(window.detail_prev_button.cget("state")) != "normal":
845
return 38