Skip to content

Commit e2d6bd8

Browse files
Fix date picker interaction in e2e test
- Use fillDatePicker helper instead of .fill() for date picker components - Follow established codebase pattern for date picker interactions - Resolves strict mode violation with Start date selector Co-Authored-By: sahil.lavingia@gmail.com <sahil.lavingia@gmail.com>
1 parent 909a33f commit e2d6bd8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

e2e/tests/company/administrator/role-field-conditional-rendering.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { companyAdministratorsFactory } from "@test/factories/companyAdministrat
33
import { companyContractorsFactory } from "@test/factories/companyContractors";
44
import { usersFactory } from "@test/factories/users";
55
import { login } from "@test/helpers/auth";
6+
import { fillDatePicker } from "@test/helpers";
67
import { expect, test } from "@test/index";
78

89
test.describe("Role field conditional rendering", () => {
@@ -81,7 +82,7 @@ test.describe("Role field conditional rendering", () => {
8182

8283
await dialog.getByLabel("Email").fill("test@example.com");
8384
await roleField.fill("Developer");
84-
await dialog.getByLabel("Start date").fill("2025-01-01");
85+
await fillDatePicker(page, "Start date", "01/01/2025");
8586
await dialog.getByRole("button", { name: "Send invite" }).click();
8687

8788
await expect(page.getByText("Invite sent")).toBeVisible();

0 commit comments

Comments
 (0)