cypress-axe icon indicating copy to clipboard operation
cypress-axe copied to clipboard

Empty table does not trigger violation

Open automaticdreams opened this issue 4 years ago • 1 comments

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

automaticdreams avatar Apr 20 '21 16:04 automaticdreams

Isn't this just a axe-core problem? I'm not 100% sure if this is caused by cypress-axe.

magentaRE avatar Jul 20 '21 11:07 magentaRE