Skip to content

Commit 19f242f

Browse files
committed
test: fix cmd palette a11y test
1 parent b4a6398 commit 19f242f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/nuxt/a11y.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,12 +524,12 @@ describe('component accessibility audits', () => {
524524
})
525525

526526
it('should have no accessibility violations when open', async () => {
527-
await mountSuspended(CommandPaletteHarness)
527+
const wrapper = await mountSuspended(CommandPaletteHarness)
528528
await nextTick()
529529
await nextTick()
530530

531531
const dialog = document.getElementById('command-palette-modal')
532-
const announcer = document.getElementById('command-palette-modal-announcement')
532+
const announcer = wrapper.element.querySelector('#command-palette-modal-announcement')
533533

534534
expect(dialog).not.toBeNull()
535535
expect(announcer).not.toBeNull()

0 commit comments

Comments
 (0)