chore: attempt to fix CI tests related to /hot/

This commit is contained in:
David Larlet 2024-11-23 15:58:06 -05:00
parent b6229a05b7
commit 3f91f42d4c
No known key found for this signature in database
GPG key ID: 3E2953A359E7E7BD
2 changed files with 2 additions and 3 deletions

View file

@ -25,7 +25,7 @@
"limitBounds": {},
"tilelayer": {
"maxZoom": 20,
"url_template": "https://tile.openstreetmap.fr/hot/{z}/{x}/{y}.png",
"url_template": "https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png",
"minZoom": 0,
"attribution": "map data © [[https://osm.org/copyright|OpenStreetMap contributors]] under ODbL - Tiles © HOT",
"name": "OSM Humanitarian (OSM-FR)"

View file

@ -1,5 +1,4 @@
import json
import os
import platform
import re
from pathlib import Path
@ -90,7 +89,7 @@ def test_umap_import_from_textarea(live_server, tilelayer, page, settings):
expect(page.get_by_text("Cities")).to_be_visible()
expect(page.locator(".leaflet-control-minimap")).to_be_visible()
expect(
page.locator('img[src="https://tile.openstreetmap.fr/hot/6/32/21.png"]')
page.locator('img[src="https://tile.openstreetmap.fr/6/32/21.png"]')
).to_be_visible()
# Should not have imported id, while in the file options
assert not page.evaluate("U.MAP.properties.id")