-
Notifications
You must be signed in to change notification settings - Fork 8.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
A11y test for rules and connectors #140665
Conversation
6adae77
to
0912d05
Compare
@1Copenut I have a few more a11y errors on this app along with these two bugs which I already logged. I am going to ping you for a zoom to see about the failures in this test and if they are valid a11y issues. Thanks! |
963f1a6
to
a5f9981
Compare
@1Copenut this is ready for you to debug. Good luck. Thanks :) |
Pinging @elastic/kibana-accessibility (Project:Accessibility) |
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.
LGTM! I left a comment about further findings on the Rules Panel block we've been troubleshooting.
await testSubjects.click('notifyWhenSelect'); | ||
await testSubjects.click('onActiveAlert'); | ||
await testSubjects.click('solutionsFilterButton'); | ||
await a11y.testAppSnapshot(); |
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.
@bhavyarm Agree on skipping this block for now. I talked with Chandler about this issue yesterday and have a few ideas I'm still exploring.
When I moved the await a11y.testAppSnapshot()
to the top of the block, it caused the first input to throw an error and the "one rule must be applied" message to appear, which I would not expect to happen. The accessibility test should not be affecting the DOM, so I'm looking more closely at the helper itself. Is it injecting a script, and is the block under test using mutation observer in the React code. I'll gather what I can find and open an investigation issue with Kibana Ops.
it.skip('a11y test on inputs on rules panel', async () => {
await a11y.testAppSnapshot();
// Causes the first input to lose focus, throw error code
// Also causes the "one rule must be applied" error to appear
await testSubjects.click('ruleNameInput');
await testSubjects.setValue('ruleNameInput', 'testRule');
...
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.
Thank you very much @1Copenut
💚 Build Succeeded
Metrics [docs]Unknown metric groupsESLint disabled in files
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @bhavyarm |
(cherry picked from commit d84a36d)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
(cherry picked from commit d84a36d)
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
A11y test for rules and connectors - #139220
Meta - #51456
A11y bugs on rules connectors page: