Skip to content

Commit 66f6d93

Browse files
committed
fix(VDatePicker): fix incorect test
1 parent c958c93 commit 66f6d93

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/vuetify/src/components/VDatePicker/__tests__/VDatePicker.spec.browser.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ describe('VDatePicker', () => {
3434
await userEvent.click(await within(yearsContainer).getByText('2025'))
3535
await userEvent.click(await screen.findByTestId('month-btn'))
3636
await commands.waitStable('.v-date-picker-months')
37-
await userEvent.click(await screen.findByText('Jan'))
37+
38+
const monthsContainer = await screen.getByCSS('.v-date-picker-months__content')
39+
await userEvent.click(await within(monthsContainer).getByText('Jan'))
40+
41+
// await userEvent.click(await screen.findByText('Jan'))
3842
await commands.waitStable('.v-date-picker-month__days')
3943
await userEvent.click(await screen.findByText(7))
4044

0 commit comments

Comments
 (0)