From c948b8fdd5b331e8f6f4c5b04e2d1e1c7a4d1585 Mon Sep 17 00:00:00 2001 From: Rory Doak Date: Mon, 2 Dec 2024 14:25:23 +0000 Subject: [PATCH] simplify geoJson check --- e2e/tests/ui-driven/src/helpers/geospatialChecks.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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");