From 8d6e33b1b39603088bd6937c2bb0d5c852db9ca9 Mon Sep 17 00:00:00 2001 From: Jose Buitron Date: Fri, 27 Sep 2024 11:04:39 -0500 Subject: [PATCH] fix: Added url check for unique map URLs --- src/sharedData/visualization/visualization.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sharedData/visualization/visualization.spec.ts b/src/sharedData/visualization/visualization.spec.ts index 7dc0f33..f5f669d 100644 --- a/src/sharedData/visualization/visualization.spec.ts +++ b/src/sharedData/visualization/visualization.spec.ts @@ -186,8 +186,8 @@ const testVisualizationForm = async ({ // View page const url = new URL(page.url()); - const expectedPathname = `/groups/${group.slug}/map/${visualizationSlug}`; - expect(url.pathname).toBe(expectedPathname); + const expectedPattern = new RegExp(`/\/groups\/${group.slug}\/map\/[\\w-]+\/pw-map-${group.slug}/`); + expect(url.pathname).toMatch(expectedPattern); await visualizationFormPage.changeBaseMap(page, 'Satellite'); // Download file