Skip to content

Commit

Permalink
simplify geoJson check
Browse files Browse the repository at this point in the history
  • Loading branch information
RODO94 committed Dec 2, 2024
1 parent a6e5ccf commit c948b8f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions e2e/tests/ui-driven/src/helpers/geospatialChecks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit c948b8f

Please sign in to comment.