Skip to content

Commit

Permalink
Fix E2E tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdharmesh committed Feb 26, 2024
1 parent 493df29 commit b117426
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/e2e/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,10 @@ export async function fillBookingEndDate(page, endDate, click = true) {
'input[name="wc_bookings_field_start_date_to_day"]',
endDate.date
);
if (click) {
if (
click &&
(await page.locator('td.selection-end-date a').first().isVisible())
) {
await page
.locator('td.selection-end-date a')
.first()
Expand Down

0 comments on commit b117426

Please sign in to comment.