From 3764bcfe3e08f5264ddca96d40811e041c94303b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexis=20M=C3=A9taireau?= Date: Tue, 2 Apr 2024 09:58:39 +0200 Subject: [PATCH] tests: Use the first visible name when testing. There are now multiple elements accessed with the same CSS selector. --- umap/tests/integration/test_edit_map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umap/tests/integration/test_edit_map.py b/umap/tests/integration/test_edit_map.py index 4820d469..983c5aec 100644 --- a/umap/tests/integration/test_edit_map.py +++ b/umap/tests/integration/test_edit_map.py @@ -10,6 +10,6 @@ def test_can_edit_name(page, live_server, tilelayer): name_input.click() name_input.press("Control+a") name_input.fill("New map name") - expect(page.locator(".umap-main-edit-toolbox .map-name")).to_have_text( + expect(page.locator(".umap-main-edit-toolbox .map-name").nth(0)).to_have_text( "New map name" )