From e371275f27638008d867cb537dac7f650aea5b80 Mon Sep 17 00:00:00 2001 From: Rory Doak Date: Wed, 18 Dec 2024 10:31:40 +0000 Subject: [PATCH] add true includes to gis request url check --- e2e/tests/ui-driven/src/mocks/gisResponse.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e2e/tests/ui-driven/src/mocks/gisResponse.ts b/e2e/tests/ui-driven/src/mocks/gisResponse.ts index 29dafa15ab..fbaf45ca96 100644 --- a/e2e/tests/ui-driven/src/mocks/gisResponse.ts +++ b/e2e/tests/ui-driven/src/mocks/gisResponse.ts @@ -15,7 +15,10 @@ export async function setupGISMockResponse(page: Page) { export function checkGISMockRequestUrl(url: string) { const splitUrl = url.split("/").pop()?.split("%2C"); - return !splitUrl?.includes("designated.conservationArea"); + return ( + !splitUrl?.includes("designated.conservationArea") && + splitUrl?.includes("listed") + ); } export async function setupRoadsMockResponse(page: Page) {