Files
geointel/backend/tests/test_sprint74_data_map_mobile_polish.py
T
Jens faeb58ef6d
GeoIntel release gates / Compile, test, contracts and builds (push) Successful in 1m49s
GeoIntel release gates / Python and npm vulnerability policy (push) Successful in 21s
GeoIntel release gates / Production AI image, SBOM and container scan (push) Successful in 5m39s
GeoIntel release gates / Deploy exact gated revision to Unraid (push) Failing after 58m43s
Initial public release
2026-08-31 21:56:53 +02:00

34 lines
1.2 KiB
Python

from pathlib import Path
from tests.frontend_contract import read_feature
ROOT = Path(__file__).resolve().parents[2]
def test_data_and_map_mobile_polish_css_contracts() -> None:
css = (ROOT / "frontend" / "src" / "styles" / "app.css").read_text(encoding="utf-8")
assert ".file-input-label input[type='file']" in css
assert ".dataset-upload-form label" in css
assert ".dataset-action-grid" in css
assert ".dataset-action-button" in css
assert ".map-toolbar" in css
assert ".layer-control-card input[type='range']" in css
assert ".map-empty-action-grid" in css
assert ".map-empty-action-grid button" in css
assert "minmax(7.25rem, 1fr)" in css
assert "touch-action: pan-x;" in css
def test_data_and_map_components_keep_existing_workflow_markup() -> None:
dataset_panel = read_feature("datasets")
map_workspace = read_feature("map_workspace")
assert 'className="dataset-upload-form"' in dataset_panel
assert 'className="file-input-label"' in dataset_panel
assert "dataset-action-grid" in dataset_panel
assert "dataset-action-button" in dataset_panel
assert "map-toolbar" in map_workspace
assert "layer-control-card" in map_workspace
assert "map-empty-action-grid" in map_workspace