Merged in chore/fix-broken-e2e-test (pull request #3031)
chore: Fix broken e2e tests * Update date picker selector Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user