Skip to content

Commit

Permalink
🚑 - fix: hotfix for various issues introduced in 0.0.43
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvandescheur committed Jan 27, 2025
1 parent f430587 commit d7041de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions src/components/form/form/form.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ const playFormComponent = async ({
const firstName = canvas.getByLabelText("First name");
const lastName = canvas.getByLabelText("Last name");
const age = canvas.getByLabelText("Age");
const schoolYear = canvas.getByLabelText("Select school year");
const schoolYear = canvas.getByLabelText("Select school year", {
exact: false,
});
const address = canvas.getByLabelText("Address");
const address_addition = canvas.getByLabelText("Address (addition)");
const dayOfMonth = canvas.getByLabelText("day of month");
const dateOfBirth = canvas.getByLabelText("Date of birth", { exact: false });
const english = canvas.getByLabelText("English");
const math = canvas.getByLabelText("Math");
const yes = canvas.getByLabelText("Yes");
Expand Down Expand Up @@ -116,10 +118,10 @@ const playFormComponent = async ({
typedResults ? ["Keizersgracht 117", 2] : ["Keizersgracht 117", "2"],
);

await userEvent.clear(dayOfMonth);
await userEvent.type(dayOfMonth, "15092023", { delay: 60 });
await userEvent.type(dayOfMonth, "{enter}");
await expect(dayOfMonth).toHaveValue("15");
await userEvent.clear(dateOfBirth);
await userEvent.type(dateOfBirth, "15092023", { delay: 60 });
await userEvent.type(dateOfBirth, "{enter}");
await expect(dateOfBirth).toHaveValue("15");
await expectLogToBe(
canvasElement,
"date_of_birth",
Expand Down
2 changes: 1 addition & 1 deletion src/components/form/select/select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export const Select: React.FC<SelectProps> = ({
name={name}
defaultValue={selectedOptionValue}
hidden={true}
aria-label={label}
aria-label="" // Intentionally left blank
form={form}
>
{(selectedOptionValue && (
Expand Down

0 comments on commit d7041de

Please sign in to comment.