fix: action button layout and event handler registrations

This commit is contained in:
mamad
2026-08-28 23:07:16 +03:30
parent f03d932978
commit ffa451ce02
2 changed files with 39 additions and 25 deletions
@@ -112,11 +112,11 @@ async def test_website_custom_needs_and_prompt_injection():
async def test_menu_layout():
menu = get_persian_main_menu(is_paused=False)
assert len(menu) == 5
assert len(menu) == 7
first_row_texts = [getattr(getattr(b, "button", None), "text", str(b)) for b in menu[0]]
assert any("🏠 منوی اصلی" in t for t in first_row_texts)
fourth_row_texts = [getattr(getattr(b, "button", None), "text", str(b)) for b in menu[3]]
assert any("➕ افزودن مبدا / مقصد" in t for t in fourth_row_texts)
fifth_row_texts = [getattr(getattr(b, "button", None), "text", str(b)) for b in menu[4]]
assert any("➕ افزودن مبدا / مقصد" in t for t in fifth_row_texts)
async def main():