cypress-axe
cypress-axe copied to clipboard
Empty table does not trigger violation
A table with headers but no body should trigger a violation, but it does not. Testing the same page with chrome plugin shows a violation
<table class="govuk-table">
<caption class="govuk-table__caption govuk-table__caption--m">Your files</caption>
<thead class="govuk-table__head">
<tr class="govuk-table__row">
<th scope="col" class="govuk-table__header">File name</th>
<th scope="col" class="govuk-table__header">Date uploaded</th>
<th scope="col" class="govuk-table__header">Action</th>
</tr>
</thead>
<tbody class="govuk-table__body">
</tbody>
</table>
I can confirm that cypress-axe is being run, as if I remove the h1 from the page, a violation is triggered
Isn't this just a axe-core problem? I'm not 100% sure if this is caused by cypress-axe.