Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix a11y chart tests #526

Closed
lukasholzer opened this issue Feb 4, 2020 · 1 comment · Fixed by #563
Closed

Fix a11y chart tests #526

lukasholzer opened this issue Feb 4, 2020 · 1 comment · Fixed by #563
Assignees
Labels
bug A broken behaviour that was working previously has-pr P3 Important issue that needs to be resolved

Comments

@lukasholzer
Copy link
Contributor

lukasholzer commented Feb 4, 2020

Bug Report

Expected Behavior

The a11y tests should pass with our configuration.

Current Behavior

the blacklisted examples don't pass.

/** Blacklisted default examples */
const BLACKLIST = [
  'chart-selection-area-default-example',
  'chart-stream-example',
  'chart-loading-example',
];

Steps to Reproduce

Go to the apps/demos/src/barista-examples.a11y.ts a11y tests file and uncomment the blacklist.
Then run ng run demos:a11y --configuration=watch

Use --configurartion=ci to execute it like on the ci

Detailed Description

 ✖ chart-loading-example

   1) AssertionError: 1 violations found:
      1) ARIA attributes must conform to valid names
          "dt-loading-spinner"
      : expected false to be truthy

 ✖ chart-selection-area-default-example

   1) AssertionError: 1 violations found:
      1) ARIA attributes must conform to valid names
          "dt-chart-range"
      	"dt-chart-timestamp"
      : expected false to be truthy

 ✖ chart-stream-example

   1) AssertionError: 1 violations found:
      1) ARIA attributes must conform to valid names
          "dt-loading-spinner"
      : expected false to be truthy
```1
@lukasholzer lukasholzer added good first issue Good for newcomers help wanted Extra attention is needed bug A broken behaviour that was working previously labels Feb 4, 2020
@lukasholzer lukasholzer added the P3 Important issue that needs to be resolved label Feb 4, 2020
@tomheller
Copy link
Collaborator

This one depends on #524 to be merged.

tomheller added a commit that referenced this issue Feb 6, 2020
Specific inputs like `aria-label-button-close` are not allowed based on
the aria specification. ONly known aria attributes are allowed to be
used. We have renamed the inputs in question to their camelcased
version, but kept the old ones for compatibility for now.
With version 7.0. we sould remove the kebap-cased inputs.

Fixes #526
Fixes #79
@tomheller tomheller mentioned this issue Feb 6, 2020
4 tasks
tomheller added a commit that referenced this issue Feb 6, 2020
Specific inputs like `aria-label-button-close` are not allowed based on
the aria specification. ONly known aria attributes are allowed to be
used. We have renamed the inputs in question to their camelcased
version, but kept the old ones for compatibility for now.
With version 7.0. we sould remove the kebap-cased inputs.

Fixes #526
Fixes #79
tomheller added a commit that referenced this issue Feb 6, 2020
Specific inputs like `aria-label-button-close` are not allowed based on
the aria specification. ONly known aria attributes are allowed to be
used. We have renamed the inputs in question to their camelcased
version, but kept the old ones for compatibility for now.
With version 7.0. we sould remove the kebap-cased inputs.

Fixes #526
Fixes #79
tomheller added a commit that referenced this issue Feb 7, 2020
Specific inputs like `aria-label-button-close` are not allowed based on
the aria specification. Only known aria attributes are allowed to be
used. We have renamed the inputs in question to their camelcased
version, but kept the old ones for compatibility for now.
With version 7.0. we sould remove the kebap-cased inputs.

Fixes #526
Fixes #79
tomheller added a commit that referenced this issue Feb 7, 2020
correctly.

Fixes an accessibility issue, where the consumption icon set an
`aria-role` attribute to its host, but the accepted attribute is `role`.

Fixes #526
tomheller added a commit that referenced this issue Feb 7, 2020
The empty state within the table needs to have a valid role, to be
present in the table. As an empty table without `row` or `rowgroup`
roled elements is invalid.

Fixes #526
tomheller added a commit that referenced this issue Feb 7, 2020
correctly.

Fixed the binding of the aria label to the host and added aria-labels to
all the examples.

Fixes #526
tomheller added a commit that referenced this issue Feb 7, 2020
attribute on radio roles.

The `toggle-button-group-item` wrongfully applied a `aria-pressed`
attribute, but the allowed one within an radio-group is `aria-checked`.

Fixes #526
tomheller added a commit that referenced this issue Feb 7, 2020
correctly.

Fixed the binding of the aria label to the host and added aria-labels to
all the examples.

Fixes #526
tomheller added a commit that referenced this issue Feb 7, 2020
attribute on radio roles.

The `toggle-button-group-item` wrongfully applied a `aria-pressed`
attribute, but the allowed one within an radio-group is `aria-checked`.

Fixes #526
tomheller added a commit that referenced this issue Feb 7, 2020
tomheller added a commit that referenced this issue Feb 7, 2020
The empty state within the table needs to have a valid role, to be
present in the table. As an empty table without `row` or `rowgroup`
roled elements is invalid.

Fixes #526
tomheller added a commit that referenced this issue Feb 7, 2020
tomheller added a commit that referenced this issue Feb 7, 2020
The empty state within the table needs to have a valid role, to be
present in the table. As an empty table without `row` or `rowgroup`
roled elements is invalid.

Fixes #526
tomheller added a commit that referenced this issue Feb 12, 2020
Specific inputs like `aria-label-button-close` are not allowed based on
the aria specification. Only known aria attributes are allowed to be
used. We have renamed the inputs in question to their camelcased
version, but kept the old ones for compatibility for now.
With version 7.0. we sould remove the kebap-cased inputs.

Fixes #526
Fixes #79
tomheller added a commit that referenced this issue Feb 12, 2020
correctly.

Fixes an accessibility issue, where the consumption icon set an
`aria-role` attribute to its host, but the accepted attribute is `role`.

Fixes #526
tomheller added a commit that referenced this issue Feb 12, 2020
correctly.

Fixed the binding of the aria label to the host and added aria-labels to
all the examples.

Fixes #526
tomheller added a commit that referenced this issue Feb 12, 2020
attribute on radio roles.

The `toggle-button-group-item` wrongfully applied a `aria-pressed`
attribute, but the allowed one within an radio-group is `aria-checked`.

Fixes #526
@tomheller tomheller removed the help wanted Extra attention is needed label Feb 12, 2020
@tomheller tomheller self-assigned this Feb 12, 2020
tomheller added a commit that referenced this issue Feb 12, 2020
correctly.

Fixes an accessibility issue, where the consumption icon set an
`aria-role` attribute to its host, but the accepted attribute is `role`.

Fixes #526
tomheller added a commit that referenced this issue Feb 12, 2020
correctly.

Fixed the binding of the aria label to the host and added aria-labels to
all the examples.

Fixes #526
tomheller added a commit that referenced this issue Feb 12, 2020
attribute on radio roles.

The `toggle-button-group-item` wrongfully applied a `aria-pressed`
attribute, but the allowed one within an radio-group is `aria-checked`.

Fixes #526
tomheller added a commit that referenced this issue Feb 12, 2020
tomheller added a commit that referenced this issue Feb 12, 2020
The empty state within the table needs to have a valid role, to be
present in the table. As an empty table without `row` or `rowgroup`
roled elements is invalid.

Fixes #526
tomheller added a commit that referenced this issue Feb 13, 2020
Specific inputs like `aria-label-button-close` are not allowed based on
the aria specification. Only known aria attributes are allowed to be
used. We have renamed the inputs in question to their camelcased
version, but kept the old ones for compatibility for now.
With version 7.0. we sould remove the kebap-cased inputs.

Fixes #526
Fixes #79
tomheller added a commit that referenced this issue Feb 13, 2020
correctly.

Fixes an accessibility issue, where the consumption icon set an
`aria-role` attribute to its host, but the accepted attribute is `role`.

Fixes #526
tomheller added a commit that referenced this issue Feb 13, 2020
correctly.

Fixed the binding of the aria label to the host and added aria-labels to
all the examples.

Fixes #526
tomheller added a commit that referenced this issue Feb 13, 2020
attribute on radio roles.

The `toggle-button-group-item` wrongfully applied a `aria-pressed`
attribute, but the allowed one within an radio-group is `aria-checked`.

Fixes #526
tomheller added a commit that referenced this issue Feb 13, 2020
tomheller added a commit that referenced this issue Feb 13, 2020
The empty state within the table needs to have a valid role, to be
present in the table. As an empty table without `row` or `rowgroup`
roled elements is invalid.

Fixes #526
tomheller added a commit that referenced this issue Feb 13, 2020
tomheller added a commit that referenced this issue Feb 13, 2020
The empty state within the table needs to have a valid role, to be
present in the table. As an empty table without `row` or `rowgroup`
roled elements is invalid.

Fixes #526
tomheller added a commit that referenced this issue Feb 13, 2020
tomheller added a commit that referenced this issue Feb 13, 2020
The empty state within the table needs to have a valid role, to be
present in the table. As an empty table without `row` or `rowgroup`
roled elements is invalid.

Fixes #526
tomheller added a commit that referenced this issue Feb 13, 2020
tomheller added a commit that referenced this issue Feb 13, 2020
The empty state within the table needs to have a valid role, to be
present in the table. As an empty table without `row` or `rowgroup`
roled elements is invalid.

Fixes #526
tomheller added a commit that referenced this issue Feb 13, 2020
…ggle-button-group, tag-list, empty-state, cta-card, table, filter-field): Fixes an issue with aria label name clashes for a11y.

Specific inputs like `aria-label-button-close` are not allowed based on
the aria specification. Only known aria attributes are allowed to be
used. We have renamed the inputs in question to their camelcased
version, but kept the old ones for compatibility for now.
With version 7.0. we sould remove the kebap-cased inputs.

Fixes #526
Fixes #79
tomheller added a commit that referenced this issue Feb 13, 2020
…ggle-button-group, tag-list, empty-state, cta-card, table, filter-field): Fixes an issue with aria label name clashes for a11y.

Specific inputs like `aria-label-button-close` are not allowed based on
the aria specification. Only known aria attributes are allowed to be
used. We have renamed the inputs in question to their camelcased
version, but kept the old ones for compatibility for now.
With version 7.0. we sould remove the kebap-cased inputs.

Fixes #526
Fixes #79
github-actions bot pushed a commit that referenced this issue Feb 13, 2020
…ggle-button-group, tag-list, empty-state, cta-card, table, filter-field): Fixes an issue with aria label name clashes for a11y.

Specific inputs like `aria-label-button-close` are not allowed based on
the aria specification. Only known aria attributes are allowed to be
used. We have renamed the inputs in question to their camelcased
version, but kept the old ones for compatibility for now.
With version 7.0. we sould remove the kebap-cased inputs.

Fixes #526
Fixes #79
yngrdyn pushed a commit to yngrdyn/barista that referenced this issue Nov 9, 2020
…ggle-button-group, tag-list, empty-state, cta-card, table, filter-field): Fixes an issue with aria label name clashes for a11y.

Specific inputs like `aria-label-button-close` are not allowed based on
the aria specification. Only known aria attributes are allowed to be
used. We have renamed the inputs in question to their camelcased
version, but kept the old ones for compatibility for now.
With version 7.0. we sould remove the kebap-cased inputs.

Fixes dynatrace-oss#526
Fixes dynatrace-oss#79
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug A broken behaviour that was working previously has-pr P3 Important issue that needs to be resolved
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants