mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-09-30 03:52:21 +02:00
Squash Odysseus development history
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
|
||||
|
||||
def test_gallery_selection_dot_has_rendered_dimensions():
|
||||
css = (ROOT / "static/style.css").read_text(encoding="utf-8")
|
||||
rule = css[css.index(".gallery-select-dot {"):]
|
||||
rule = rule[:rule.index("}")]
|
||||
|
||||
assert "display: block" in rule
|
||||
assert "width: 10px" in rule
|
||||
assert "height: 10px" in rule
|
||||
|
||||
|
||||
def test_gallery_selection_highlight_is_painted_above_thumbnail():
|
||||
css = (ROOT / "static/style.css").read_text(encoding="utf-8")
|
||||
selector = ".gallery-card:has(.gallery-select-dot.selected)::after"
|
||||
rule = css[css.index(selector):]
|
||||
rule = rule[:rule.index("}")]
|
||||
|
||||
assert "position: absolute" in rule
|
||||
assert "z-index: 3" in rule
|
||||
assert "border: 3px solid var(--accent-primary, var(--red))" in rule
|
||||
assert "pointer-events: none" in rule
|
||||
Reference in New Issue
Block a user