Skip to content

Commit

Permalink
add true includes to gis request url check
Browse files Browse the repository at this point in the history
  • Loading branch information
RODO94 committed Dec 18, 2024
1 parent 717eeaf commit e371275
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion e2e/tests/ui-driven/src/mocks/gisResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e371275

Please sign in to comment.