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 13986c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compose.ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
NETVISOR_ORGANIZATION_KEY: mock_org_key
NETVISOR_PARTNER_ID: mock_partner_id
NETVISOR_API_URL: http://nv-mock:4002
NODE_ENV: production
NODE_ENV: development
DATABASE_USERNAME: postgres
DATABASE_PASSWORD: postgres
DATABASE_HOST: db
Expand Down
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 13986c7

Please sign in to comment.