undefined}>
Click here to blur the calendar
)
const portalTrigger = getByLabelText('Open date picker')
userEvent.click(portalTrigger)
const elementInDialog = getByLabelText('Click to go forward one month')
expect(elementInDialog).toBeVisible()
userEvent.click(getByText('Click here to blur the calendar'))
expect(elementInDialog).not.toBeInTheDocument()
})
test('focus set to current date when no value selected', async () => {
const { getByLabelText } = renderWithTheme(