Skip to content

Commit d7041de

Browse files
🚑 - fix: hotfix for various issues introduced in 0.0.43
1 parent f430587 commit d7041de

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

src/components/form/form/form.stories.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@ const playFormComponent = async ({
6262
const firstName = canvas.getByLabelText("First name");
6363
const lastName = canvas.getByLabelText("Last name");
6464
const age = canvas.getByLabelText("Age");
65-
const schoolYear = canvas.getByLabelText("Select school year");
65+
const schoolYear = canvas.getByLabelText("Select school year", {
66+
exact: false,
67+
});
6668
const address = canvas.getByLabelText("Address");
6769
const address_addition = canvas.getByLabelText("Address (addition)");
68-
const dayOfMonth = canvas.getByLabelText("day of month");
70+
const dateOfBirth = canvas.getByLabelText("Date of birth", { exact: false });
6971
const english = canvas.getByLabelText("English");
7072
const math = canvas.getByLabelText("Math");
7173
const yes = canvas.getByLabelText("Yes");
@@ -116,10 +118,10 @@ const playFormComponent = async ({
116118
typedResults ? ["Keizersgracht 117", 2] : ["Keizersgracht 117", "2"],
117119
);
118120

119-
await userEvent.clear(dayOfMonth);
120-
await userEvent.type(dayOfMonth, "15092023", { delay: 60 });
121-
await userEvent.type(dayOfMonth, "{enter}");
122-
await expect(dayOfMonth).toHaveValue("15");
121+
await userEvent.clear(dateOfBirth);
122+
await userEvent.type(dateOfBirth, "15092023", { delay: 60 });
123+
await userEvent.type(dateOfBirth, "{enter}");
124+
await expect(dateOfBirth).toHaveValue("15");
123125
await expectLogToBe(
124126
canvasElement,
125127
"date_of_birth",

src/components/form/select/select.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export const Select: React.FC<SelectProps> = ({
237237
name={name}
238238
defaultValue={selectedOptionValue}
239239
hidden={true}
240-
aria-label={label}
240+
aria-label="" // Intentionally left blank
241241
form={form}
242242
>
243243
{(selectedOptionValue && (

0 commit comments

Comments
 (0)