Managed validation / full (pull_request) Successful in 18s
GeoIntel release gates / Compile, test, contracts and builds (pull_request) Successful in 2m56s
GeoIntel release gates / Python and npm vulnerability policy (pull_request) Successful in 24s
GeoIntel release gates / GIS image, SBOM and container scan (pull_request) Failing after 54s
40 lines
1.5 KiB
Python
40 lines
1.5 KiB
Python
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
from tests.frontend_contract import read_feature
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
|
|
|
|
def test_overview_uses_named_hierarchy_regions() -> None:
|
|
app = read_feature("shell")
|
|
|
|
assert 'className="overview-action-copy"' in app
|
|
assert 'className="quick-action-grid overview-quick-actions"' in app
|
|
assert 'className="quick-action-button"' in app
|
|
assert 'aria-label="Aanbevolen acties"' in app
|
|
|
|
|
|
def test_status_strip_has_compact_section_surface_contracts() -> None:
|
|
css = (ROOT / "frontend" / "src" / "styles" / "app.css").read_text(encoding="utf-8")
|
|
|
|
assert ".workbench-status-strip" in css
|
|
assert "background: linear-gradient(180deg, var(--gi-surface), var(--gi-brand-50));" in css
|
|
assert ".status-strip-grid" in css
|
|
assert "grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));" in css
|
|
assert ".status-tile-topline" in css
|
|
assert ".status-tile strong" in css
|
|
assert "min-height: 5.85rem;" in css
|
|
|
|
|
|
def test_overview_action_callout_is_visually_secondary() -> None:
|
|
css = (ROOT / "frontend" / "src" / "styles" / "app.css").read_text(encoding="utf-8")
|
|
|
|
assert ".overview-action-copy" in css
|
|
assert ".overview-quick-actions" in css
|
|
assert ".quick-action-button" in css
|
|
assert "background: linear-gradient(135deg, rgba(15, 118, 110, 0.08), color-mix(in srgb, var(--gi-surface) 82%, transparent));" in css
|
|
assert "border-left: 4px solid var(--accent);" in css
|
|
assert "align-content: center;" in css
|