Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarciabriseno committed Nov 12, 2024
1 parent f60b2eb commit a3d3e10
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/page_objects/mobile_hv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,13 @@ class HvMobile implements MobileInterface {
const times = time.split(":");
// Find the visible flatpickr instance
const flatpickrs = await this.page.locator(".flatpickr-calendar").all();
const timepicker = (await Promise.all(flatpickrs.map(async (locator) => {return {locator: locator, visible: await locator.isVisible()}})))
.filter((result) => result.visible)[0].locator;
const timepicker = (
await Promise.all(
flatpickrs.map(async (locator) => {
return { locator: locator, visible: await locator.isVisible() };
})
)
).filter((result) => result.visible)[0].locator;

await timepicker.getByLabel("Hour").click();
await timepicker.getByLabel("Hour").fill(times[0]);
Expand Down

0 comments on commit a3d3e10

Please sign in to comment.