This commit is contained in:
@@ -16,8 +16,10 @@ def test_admin_accordion_closes(client, fake_gitea):
|
|||||||
def test_theme_toggle_present_and_versioned(client, fake_gitea):
|
def test_theme_toggle_present_and_versioned(client, fake_gitea):
|
||||||
page = client.get("/")
|
page = client.get("/")
|
||||||
assert 'id="theme-toggle"' in page.text
|
assert 'id="theme-toggle"' in page.text
|
||||||
assert "Mode clair" in page.text
|
|
||||||
assert "/static/js/nav.js?v=" in page.text
|
assert "/static/js/nav.js?v=" in page.text
|
||||||
|
# #55 : le bouton n'est plus dans l'en-tête applicatif.
|
||||||
|
head = page.text.split("header-actions", 1)[1].split("</header>", 1)[0]
|
||||||
|
assert 'id="theme-toggle"' not in head
|
||||||
|
|
||||||
|
|
||||||
def test_theme_js_contract(client, fake_gitea):
|
def test_theme_js_contract(client, fake_gitea):
|
||||||
@@ -32,6 +34,6 @@ def test_light_theme_tokens(client, fake_gitea):
|
|||||||
assert 'html[data-theme="light"]' in css
|
assert 'html[data-theme="light"]' in css
|
||||||
assert "--bg: #f2f2f0;" in css
|
assert "--bg: #f2f2f0;" in css
|
||||||
assert "--surface: #ffffff;" in css
|
assert "--surface: #ffffff;" in css
|
||||||
assert "--accent-2: #a92e63;" in css
|
assert "--accent-2: #0f766e;" in css
|
||||||
assert 'html[data-theme="light"] .draco-bar' in css
|
assert 'html[data-theme="light"] .draco-bar' in css
|
||||||
assert 'html[data-theme="light"] .card-menu' in css
|
assert 'html[data-theme="light"] .card-menu' in css
|
||||||
|
|||||||
Reference in New Issue
Block a user