Skip to content

empty-table-header virtualised rule should run without requiring role #3788

@WilcoFiers

Description

@WilcoFiers

This test needs to be added, and needs to pass.

  it('should fail if table header has no child nodes', function () {
    var node = new axe.SerialVirtualNode({
      nodeName: 'th',
      attributes: {}
    });
    node.children = [];

    var results = axe.runVirtualRule('empty-table-header', node);

    assert.lengthOf(results.passes, 0);
    assert.lengthOf(results.violations, 1);
    assert.lengthOf(results.incomplete, 0);
  });

Metadata

Metadata

Assignees

Labels

fixBug fixes

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions