diff --git a/apps/partner-sas/tests/booking-widget.spec.ts b/apps/partner-sas/tests/booking-widget.spec.ts index 5ac4aea20..1cc211c41 100644 --- a/apps/partner-sas/tests/booking-widget.spec.ts +++ b/apps/partner-sas/tests/booking-widget.spec.ts @@ -20,7 +20,7 @@ test("can make a search with city", async ({ page }) => { await page .getByRole("button", { - name: `${formatDate(today)} - ${formatDate(tomorrow)}`, + name: new RegExp(`${formatDate(today)}.*${formatDate(tomorrow)}`), }) .click() @@ -115,7 +115,7 @@ test("can make a search with hotel", async ({ page }) => { await page .getByRole("button", { - name: `${formatDate(today)} - ${formatDate(tomorrow)}`, + name: new RegExp(`${formatDate(today)}.*${formatDate(tomorrow)}`), }) .click()