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
|
await page
|
||||||
.getByRole("button", {
|
.getByRole("button", {
|
||||||
name: `${formatDate(today)} - ${formatDate(tomorrow)}`,
|
name: new RegExp(`${formatDate(today)}.*${formatDate(tomorrow)}`),
|
||||||
})
|
})
|
||||||
.click()
|
.click()
|
||||||
|
|
||||||
@@ -115,7 +115,7 @@ test("can make a search with hotel", async ({ page }) => {
|
|||||||
|
|
||||||
await page
|
await page
|
||||||
.getByRole("button", {
|
.getByRole("button", {
|
||||||
name: `${formatDate(today)} - ${formatDate(tomorrow)}`,
|
name: new RegExp(`${formatDate(today)}.*${formatDate(tomorrow)}`),
|
||||||
})
|
})
|
||||||
.click()
|
.click()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user