feat(пополнение): кнопка и окно суммы в чате, ссылка на /stats, колонки и возврат в админке

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
anor
2026-10-28 14:57:27 +10:00
co-authored by Claude Opus 5.5
parent 289ce1ff1e
commit a157d9151c
4 changed files with 195 additions and 16 deletions
+5 -1
View File
@@ -49,9 +49,13 @@ def test_chat_offers_topup_on_refusal_and_after_return():
def test_stats_has_topup_link():
html = _read("stats.html")
link = html[html.index("function topupLink"):]
link = link[:link.index("\n}\n")]
assert "Пополнить счёт" in link and "/?topup=1" in link
fn = html[html.index("function renderAccount"):]
fn = fn[:fn.index("\n}\n")]
assert "Пополнить счёт" in fn and "/?topup=1" in fn and "topup" in fn
assert "if (topup) box.append(topupLink())" in fn and "!acc && topup" in fn
assert "(res.body.limits || {}).topup" in html
def test_admin_payments_columns_refund_and_settings():