Skip to content

Commit 79603a9

Browse files
committed
this should fix the test for date picker
1 parent 6343378 commit 79603a9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

apps/docs/src/remix/remix-date-picker.stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,9 @@ const testDateSelection = async ({ canvas }: StoryContext) => {
9999
}
100100
});
101101

102+
const dateToSelect = '15';
102103
await waitFor(() => {
103-
const updatedDatePickerButton = canvas.getByRole('button', { name: /15/ });
104+
const updatedDatePickerButton = canvas.getByRole('button', { name: new RegExp(dateToSelect, 'i') });
104105
expect(updatedDatePickerButton).toBeInTheDocument();
105106
});
106107
};

0 commit comments

Comments
 (0)