-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI: Add a11y testing #24476
UI: Add a11y testing #24476
Conversation
import manifest from 'vault/config/asset-manifest'; | ||
|
||
preloadAssets(manifest).then(() => { | ||
setup(QUnit.assert); | ||
setApplication(Application.create(config.APP)); | ||
setupGlobalA11yHooks(() => true, { | ||
helpers: ['render'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting the tests to run only on render
until we fix some widespread issues so that they generally don't run on acceptance tests
ui/testem.js
Outdated
@@ -6,7 +6,7 @@ | |||
'use strict'; | |||
|
|||
module.exports = { | |||
test_page: 'tests/index.html?hidepassed', | |||
test_page: 'tests/index.html?hidepassed&enableA11yAudit=true', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you ever want to run without the a11y tests just remove this query parameter
* aria-labels on nav tags, connect labels to input IDs * add id to input on control group success * add default label to maskedInput textarea * final set of aria-labels in components * fix labels: sidebar target, console input and max/min button, icon * replace console max/min button tooltip with button title * Remove splattributes from Select -- due to classic component, selector was showing up twice. Instead pass @ariaLabel explicitly to <Select> * better labels on home link and list items * more labels * Add sr-only label to text-file for when uploadOnly
* update overview card and selectors * fix heading-order violations in components (https://dequeuniversity.com/rules/axe/4.8/heading-order) * fix list violations (https://dequeuniversity.com/rules/axe/4.8/list) * Replace engine type icon tooltip with title * Use HDS link with helper instead of DocLink component * wrap PKI tab links in <li> * Use standalone links on namespace empty state * heading tags, li wrappers, underlined links * Use Hds Text component * doc links, empty state links have underlines * Show flash message on tool action success
* update calendar-widget * update console ui panel colors * Update light grey on empty state, masked input, radio card, search select, tag, has-text-grey-light * color updates: masked input, namespace picker, has-text-success, kv error page * replace kv paths CodeSnippet with HDS version for better color contrast * replace LDAP cli command CodeSnippet with HDS version for better color contrast * update colors: mostly faint grey * skip color contrast test on flaky popup acceptance tests * test only color-contrast * Revert "test only color-contrast" This reverts commit 6eded7eb86152bc107086a82010e46269cfef6d8. * Update selectors for CodeBlock * fix console colors * Fixes -- masked input obscure color, unskip test, copy-secret-dropdown wrap alignment * Update structure tooltip style to match HDS until full replacement is complete * remove unused color class, set has-text-grey to foreground-faint token * update selectors from sync * color updates on json-diff-patch * setRunOptions on tests * small test updates * set run option for niche control group scenario * Replace all CodeSnippets
* wrap ul links in li * Update enableInput to be compliant * Update filterInput to be compliant * Remove superfluous qp value * Final ul's without li's * replace tooltip for icons on secret and auth mount lists * documentation * Make links consistently have underline and similar styling * fix datetime formfield id * fix link * fix some tests * small cleanup * first four buttons * Revert "first four buttons" This reverts commit 72d0284. * skip flaky tests * add waitUntil * skip tooltip test, text file updates and line chart update --------- Co-authored-by: [email protected] <[email protected]>
@@ -21,7 +21,3 @@ | |||
cursor: default; | |||
} | |||
} | |||
// NICE TO HAVE: replace all instances with helper "is-no-underline" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💙
Build Results: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked out the branch and poked around. Things look great. One non-blocking question. Nice work!!
This PR adds and enables the
ember-a11y-testing
addon for our tests, and fixes some of the violations. The a11y tests only run on integration tests, until we update our common rule violating components (user-menu, console-ui panel). All of the work was reviewed in separate, smaller PR's.Some updates you might notice in the UI:
Comparison screenshots (old left, new right)