diff --git a/src/govuk/components/summary-list/template.test.js b/src/govuk/components/summary-list/template.test.js index a22c114792..5966f1efe5 100644 --- a/src/govuk/components/summary-list/template.test.js +++ b/src/govuk/components/summary-list/template.test.js @@ -224,6 +224,13 @@ describe('Summary list', () => { expect($action[1].tagName).toEqual('span') expect($($action[1]).text()).toEqual('') }) + + it('passes accessibility tests when only some rows have actions', async () => { + const $ = render('summary-list', examples['with some actions']) + + const results = await axe($.html()) + expect(results).toHaveNoViolations() + }) }) }) })