Polish assistant wording and mobile explorer
This commit is contained in:
@@ -112,7 +112,11 @@ class GeoAssistantService:
|
||||
if "population" in estimated_themes:
|
||||
answer = re.sub(
|
||||
r"\bde officiële telling\b",
|
||||
"de van de officiële bron afgeleide schatting",
|
||||
lambda match: (
|
||||
"De uit de officiële bron afgeleide schatting"
|
||||
if match.group(0)[0].isupper()
|
||||
else "de uit de officiële bron afgeleide schatting"
|
||||
),
|
||||
answer,
|
||||
flags=re.IGNORECASE,
|
||||
)
|
||||
|
||||
@@ -163,7 +163,7 @@ def test_geo_assistant_never_labels_area_weighted_population_as_official_count()
|
||||
)
|
||||
|
||||
assert "officiële telling" not in answer.casefold()
|
||||
assert answer.startswith("de van de officiële bron afgeleide schatting")
|
||||
assert answer.startswith("De uit de officiële bron afgeleide schatting")
|
||||
|
||||
|
||||
def test_geo_assistant_does_not_add_irrelevant_estimate_disclosure() -> None:
|
||||
|
||||
@@ -18,6 +18,14 @@ def test_mobile_overflow_hardening_css_contracts() -> None:
|
||||
assert "repeat(2, minmax(0, 1fr))" in css
|
||||
assert "overflow-x: clip;" in css
|
||||
assert "overscroll-behavior-x: contain;" in css
|
||||
assert (
|
||||
"section > div:not(.map-controls):not(.feature-inspector):not(.quick-action-grid)"
|
||||
":not(.geo-explorer-layout)"
|
||||
) in css
|
||||
|
||||
explorer_mobile_css = css.split("@media (max-width: 920px)", 1)[1]
|
||||
explorer_mobile_rule = explorer_mobile_css.split(".geo-explorer-layout", 1)[1]
|
||||
assert "display: block;" in explorer_mobile_rule.split("}", 1)[0]
|
||||
|
||||
|
||||
def test_long_identifier_wrapping_contracts() -> None:
|
||||
|
||||
Reference in New Issue
Block a user