diff --git a/e2e/tests/ui-driven/src/helpers/geospatialChecks.ts b/e2e/tests/ui-driven/src/helpers/geospatialChecks.ts index 1ef7fa36c8..908be43c1f 100644 --- a/e2e/tests/ui-driven/src/helpers/geospatialChecks.ts +++ b/e2e/tests/ui-driven/src/helpers/geospatialChecks.ts @@ -2,10 +2,8 @@ import { expect, Page } from "@playwright/test"; import { Feature } from "geojson"; export const checkGeoJsonContent = async (page: Page, geoJson: Feature) => { - // Wait for the map component to be present using the id - const mapComponent = await page.waitForSelector( - "my-map#property-information-map", - ); + // Wait for the map component to be present + const mapComponent = await page.waitForSelector("my-map",); // Get the geojsonData attribute const geojsonData = await mapComponent.getAttribute("geojsondata");