feat(пополнение): кнопка и окно суммы в чате, ссылка на /stats, колонки и возврат в админке
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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():
|
||||
|
||||
Reference in New Issue
Block a user