Skip to content

Commit

Permalink
Allow for accessibility node list to be populated
Browse files Browse the repository at this point in the history
Possibly related to accessibility node changes when `aria-expanded` is changed

Work is ongoing to stablise accessibility objects: https://chromium-review.googlesource.com/c/chromium/src/+/4027071
  • Loading branch information
colinrotherham committed Dec 8, 2022
1 parent 68e7715 commit 158467d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/govuk/components/accordion/accordion.test.js
Expand Up @@ -256,6 +256,7 @@ describe('/components/accordion', () => {
)

await $element.click()
await page.waitForTimeout(100)

await expect(getAccessibleName(page, $element)).resolves.toBe(
'Section A , Hide this section'
Expand All @@ -274,6 +275,7 @@ describe('/components/accordion', () => {
)

await $element.click()
await page.waitForTimeout(100)

await expect(getAccessibleName(page, $element)).resolves.toBe(
'Test , Additional description , Hide this section'
Expand Down

0 comments on commit 158467d

Please sign in to comment.