Added aria-describedby to EuiFilePicker#2919
Conversation
|
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
|
Hey Anish! Thanks for this PR! I think I wasn't clear enough in the issue, sorry! I'm going to try to explain again. (Unfortunately, I think this will require a bit of a refactor of your work.) So I think this issue can be broken down into two tasks:
Hopefully that makes more sense and feel free to ask if anything isn't clear before jumping into the code! |
|
@myasonik all changes have been done |
myasonik
left a comment
There was a problem hiding this comment.
Thanks for the quick turnaround!
I left a few thoughts on what you've got here now.
Co-Authored-By: Michail Yasonik <michail@yasonik.com>
Co-Authored-By: Michail Yasonik <michail@yasonik.com>
|
@myasonik Changes have been made |
myasonik
left a comment
There was a problem hiding this comment.
Looks good to me!
Please wait for an EUI team member to approve this PR before merging though (all the other reviewers are EUI team)
|
jenkins test this |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_2919/ |
thompsongl
left a comment
There was a problem hiding this comment.
The CI failure is due to outdated test snapshots. This is expected, as markup changes like the ones in this PR need to be confirmed.
Run yarn test locally and you'll be prompted to review the snapshot expectations, and given a command to update outdated snapshots.
|
@thompsongl Test Snapshot has been updated |
cchaos
left a comment
There was a problem hiding this comment.
Just a quick problem with the changelog
|
jenkins test this |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_2919/ |
thompsongl
left a comment
There was a problem hiding this comment.
Ah yes. The CI failure reminded me that htmlIdGenerator needs to be mocked in Jest tests, otherwise the id will change every run.
Add the following to src/components/form/file_picker/file_picker.tsx
// Mock the htmlIdGenerator to generate predictable ids for snapshot tests
jest.mock('../../../services/accessibility/html_id_generator', () => ({
htmlIdGenerator: () => () => 'htmlId',
}));And then you'll need to update the snapshots once again.
Hopefully we'll come up with a less manual solution than this soon
|
@thompsongl changes Done 👍 |
|
jenkins test this |
|
Preview documentation changes for this PR: https://eui.elastic.co/pr_2919/ |
Summary
Fixes :#2917
Checklist