feat(branding): redenumire ROMFAST AUTOPASS -> ROA AUTOPASS in UI
Titlu pagina, antet brand si /login afiseaza acum 'ROA AUTOPASS'. Include redesignul sectiunii Problem+Calculator combinata din landing. Teste de antet/nav aliniate la noul nume. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -224,8 +224,8 @@ def test_logo_linkeaza_acasa(client):
|
||||
"In prezent logo-ul nu e un link."
|
||||
)
|
||||
|
||||
# Titlul "ROMFAST AUTOPASS" trebuie sa fie si el in interiorul unui <a href="/">
|
||||
# Titlul "ROA AUTOPASS" trebuie sa fie si el in interiorul unui <a href="/">
|
||||
# (PRD AC US-010: Logo-ul ROMFAST + titlul linkeaza la /; titlul a fost redenumit in 5.16)
|
||||
assert re.search(r'<a\b[^>]*href="/"[^>]*>.*?ROMFAST AUTOPASS', header_html, re.DOTALL), (
|
||||
"Titlul 'ROMFAST AUTOPASS' trebuie sa fie intr-un <a href='/'> in header."
|
||||
assert re.search(r'<a\b[^>]*href="/"[^>]*>.*?ROA AUTOPASS', header_html, re.DOTALL), (
|
||||
"Titlul 'ROA AUTOPASS' trebuie sa fie intr-un <a href='/'> in header."
|
||||
)
|
||||
|
||||
@@ -741,20 +741,20 @@ def test_strip_sanatate_fara_hex_hardcodat():
|
||||
|
||||
|
||||
# ============================================================
|
||||
# PRD 5.16 US-010: Titlu ROMFAST AUTOPASS + account_name in antet
|
||||
# PRD 5.16 US-010: Titlu ROA AUTOPASS + account_name in antet
|
||||
# ============================================================
|
||||
|
||||
def test_titlu_romfast_autopass(client):
|
||||
"""US-010 (PRD 5.16): titlul din antet si tag-ul <title> sunt 'ROMFAST AUTOPASS',
|
||||
"""US-010 (PRD 5.16): titlul din antet si tag-ul <title> sunt 'ROA AUTOPASS',
|
||||
nu 'Gateway RAR AUTOPASS'."""
|
||||
_create_account_user("titlutest@test.com", name="Service Titlu")
|
||||
_login(client, "titlutest@test.com")
|
||||
html = client.get("/?tab=acasa").text
|
||||
|
||||
assert "ROMFAST AUTOPASS" in html, \
|
||||
"Titlul 'ROMFAST AUTOPASS' lipseste din antet (US-010 PRD 5.16)"
|
||||
assert "ROA AUTOPASS" in html, \
|
||||
"Titlul 'ROA AUTOPASS' lipseste din antet (US-010 PRD 5.16)"
|
||||
assert "Gateway RAR AUTOPASS" not in html, \
|
||||
"Titlul vechi 'Gateway RAR AUTOPASS' inca prezent — inlocuieste cu 'ROMFAST AUTOPASS'"
|
||||
"Titlul vechi 'Gateway RAR AUTOPASS' inca prezent — inlocuieste cu 'ROA AUTOPASS'"
|
||||
|
||||
|
||||
def test_header_arata_nume_service_logat(client):
|
||||
@@ -772,7 +772,7 @@ def test_header_arata_nume_service_logat(client):
|
||||
|
||||
def test_login_branded_nu_schelet(client):
|
||||
"""US-010 (PRD 5.16): /login are layout 2-coloane branduit cu clasa .login-shell,
|
||||
titlul 'ROMFAST AUTOPASS', si formular cu POST /login (CSRF intact)."""
|
||||
titlul 'ROA AUTOPASS', si formular cu POST /login (CSRF intact)."""
|
||||
resp = client.get("/login")
|
||||
assert resp.status_code == 200
|
||||
html = resp.text
|
||||
@@ -781,8 +781,8 @@ def test_login_branded_nu_schelet(client):
|
||||
"Clasa .login-shell lipseste din /login (US-010 PRD 5.16) — layout 2-coloane nenimplementat"
|
||||
assert "login-aside" in html, \
|
||||
"Clasa .login-aside lipseste — coloana stanga de brand lipseste (US-010)"
|
||||
assert "ROMFAST AUTOPASS" in html, \
|
||||
"Titlul 'ROMFAST AUTOPASS' lipseste din /login (US-010 PRD 5.16)"
|
||||
assert "ROA AUTOPASS" in html, \
|
||||
"Titlul 'ROA AUTOPASS' lipseste din /login (US-010 PRD 5.16)"
|
||||
# Formular intact: POST /login cu csrf_token
|
||||
assert 'action="/login"' in html, "Actiunea formularului /login s-a schimbat — CSRF route invalida"
|
||||
assert 'name="csrf_token"' in html, "csrf_token lipseste din formular — securitate compromisa"
|
||||
|
||||
Reference in New Issue
Block a user