test: update hit testing spec to verify component rendering with hidden option

This commit is contained in:
CodingOnStar
2026-01-20 19:00:29 +08:00
parent 4d1be51966
commit 3fa3666540

View File

@@ -2142,8 +2142,8 @@ describe('Integration: Hit Testing Flow', () => {
fireEvent.click(submitButton)
await waitFor(() => {
// Verify component is rendered
expect(screen.getByRole('textbox')).toBeInTheDocument()
// Verify component is rendered (use hidden: true in case dialog opened)
expect(screen.getByRole('textbox', { hidden: true })).toBeInTheDocument()
})
})