From 6b38d5719727c2074ec315302a2b7acdf1b2683e Mon Sep 17 00:00:00 2001 From: Anton Gunnarsson Date: Wed, 29 Oct 2025 15:24:09 +0000 Subject: [PATCH] Merged in chore/fix-broken-e2e-test (pull request #3031) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit chore: Fix broken e2e tests * Update date picker selector Approved-by: Joakim Jäderberg --- apps/partner-sas/tests/booking-widget.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()