Skip to content

Commit

Permalink
Fix date selecting in E2E
Browse files Browse the repository at this point in the history
  • Loading branch information
joonashak committed Jun 19, 2024
1 parent a16a87a commit 63eee83
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion e2e/tests/entry.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,8 @@ const fillEntryForm = async (page: Page, t: TFunction, entry: TestEntry) => {
await page.getByLabel(t("entryDialog.description")).fill(entry.description);
await page.getByLabel(t("entryDialog.duration")).pressSequentially(entry.duration);
await page.getByRole("button", { name: /.*\d\d.*/ }).click();
await page.getByRole("gridcell", { name: entry.date.split(".")[0] }).click();
await page
.getByRole("gridcell", { name: entry.date.split(".")[0] })
.first()
.click();
};

0 comments on commit 63eee83

Please sign in to comment.