fix(админка): таблица «Платежей» прокручивается, кнопка «Возврат проведён» не обрезается на 1280 точках

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
anor
2026-10-28 17:06:59 +10:00
co-authored by Claude Opus 5.5
parent dc1d5653a1
commit c278db45b8
2 changed files with 13 additions and 0 deletions
+11
View File
@@ -112,3 +112,14 @@ def test_stats_exhausted_with_topup_does_not_send_to_mail():
assert "Пополнить" in with_topup and "info@infosmeta.ru" not in with_topup
without = _run_stats_balance({"read_only": True})
assert "info@infosmeta.ru" in without
def test_admin_payments_table_scrolls_instead_of_clipping():
"""28.10.2026 глазами: на 1280 точках таблица «Платежей» шире области, а у .main
overflow-x: hidden — кнопка «Возврат проведён» обрезалась и не нажималась.
Таблица обязана жить в .table-wrap, как другие широкие таблицы."""
html = _read("admin.html")
page = html[html.index('id="page-payments"'):]
page = page[:page.index('<p class="note">')]
wrap = page.index('class="table-wrap"')
assert wrap < page.index('<table id="payments">')