Publish curated GeoIntel source snapshot
This commit is contained in:
commit
0aae654d6e
764 files changed
+169154
No files matched your search
@@ -0,0 +1,33 @@
|
||||
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
|
||||
Reference in new issue
Block a user