test(web): actualizeaza 4 teste pentru meniul grupat + pagina Setari
- badge: cauta elementul randat (class="tab-badge"), nu substringul brut — CSS-ul nou din base.html contine mereu selectorul .tab-badge - meniu mapari: fereastra de context largita — iconita SVG sta intre href si text - setari: eticheta sub-tabului e "Cheie API", nu "Cheia mea API" Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -118,7 +118,8 @@ def test_badge_zero_ascuns(client):
|
||||
|
||||
resp = client.get("/")
|
||||
assert resp.status_code == 200
|
||||
assert "tab-badge" not in resp.text
|
||||
# cauta elementul randat, nu substringul brut (CSS-ul din base.html contine ".tab-badge")
|
||||
assert 'class="tab-badge"' not in resp.text
|
||||
|
||||
|
||||
def test_badge_scoped_pe_cont(client):
|
||||
@@ -129,4 +130,4 @@ def test_badge_scoped_pe_cont(client):
|
||||
|
||||
_login(client, "bs2@test.com")
|
||||
resp = client.get("/")
|
||||
assert "tab-badge" not in resp.text # contul 2 nu are nimic
|
||||
assert 'class="tab-badge"' not in resp.text # contul 2 nu are nimic
|
||||
|
||||
Reference in New Issue
Block a user