We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4a6398 commit 19f242fCopy full SHA for 19f242f
test/nuxt/a11y.spec.ts
@@ -524,12 +524,12 @@ describe('component accessibility audits', () => {
524
})
525
526
it('should have no accessibility violations when open', async () => {
527
- await mountSuspended(CommandPaletteHarness)
+ const wrapper = await mountSuspended(CommandPaletteHarness)
528
await nextTick()
529
530
531
const dialog = document.getElementById('command-palette-modal')
532
- const announcer = document.getElementById('command-palette-modal-announcement')
+ const announcer = wrapper.element.querySelector('#command-palette-modal-announcement')
533
534
expect(dialog).not.toBeNull()
535
expect(announcer).not.toBeNull()
0 commit comments