show sync button for admin
This commit is contained in:
@@ -173,13 +173,15 @@ def test_dark_palette_and_contrast(
|
||||
>= 4.5:1 from live computed styles (not eyeballed)."""
|
||||
for path in ("/", "/sources.html"):
|
||||
page.goto(f"{app_url}{path}")
|
||||
# The visible page background is the <html> canvas (rgb(10, 14, 23)
|
||||
# = #0a0e17). <body> itself stays transparent so the z-index:-1
|
||||
# grid/glow layers (test_animated_background) are not painted over.
|
||||
# The visible page background is the <html> canvas (rgb(15, 10, 10)
|
||||
# = #0f0a0a — the 2026-08-28 dark-red rebrand; it was the phase-08
|
||||
# #0a0e17 canvas). <body> itself stays transparent so the
|
||||
# z-index:-1 grid/glow layers (test_animated_background) are not
|
||||
# painted over.
|
||||
bg = page.evaluate(
|
||||
"() => getComputedStyle(document.documentElement).backgroundColor"
|
||||
)
|
||||
assert bg == "rgb(10, 14, 23)", f"expected the dark page bg on {path}, got {bg}"
|
||||
assert bg == "rgb(15, 10, 10)", f"expected the dark page bg on {path}, got {bg}"
|
||||
body_bg = page.evaluate("() => getComputedStyle(document.body).backgroundColor")
|
||||
assert body_bg == "rgba(0, 0, 0, 0)", (
|
||||
f"{path}: body must stay transparent (the background layers need to show)"
|
||||
|
||||
Reference in New Issue
Block a user