-
Notifications
You must be signed in to change notification settings - Fork 138
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
Improve the accessibility for the test report page #1128
Comments
I found that it may have some issue with the tab order, but the shortcut for Also attached a video in case @isidorn has input for this :) demo.mp4 |
After running the tests I perform the following steps:
The following items are read by orca, the screen reader used by me, each time I press the tab key:
At this point I try to activate the link by pressing the tab key but nothing happens. |
How about pressing 'enter' instead of 'tab' when you hear 'navigate to source link'? |
OOPS!!! I made a mistake in my previous comment. I actually tried to activate the link by pressing the enter key and not the tab key. Sorry for my mistake. |
@jvesouza thanks for providing great feedback @jdneo so this looks like a custom web view created by the java-test extension. Some recommendation:
|
@isidorn Thank you for the suggestions, I guess it may related with the focus. @jvesouza I guess I know what's happening there. If it is possible, would you mind to update the VS Code setting: by default, the test report is opened in the next column, and when triggering Anyway, updating the setting is just a workaround, I will meanwhile check the implementation to see if we can set Hope this is the root cause, please let me know if this works. |
I included in the settings.json file the following line: After that I got the following result:
I can't say for sure if the method is correct because when I used the tab key I just heard it navigate to the source, without mentioning the name of the test method. |
Thanks for the feedback. I'll try to add more friendly aria labels tomorrow. How about after that, I give a private build to you for validation. You can let me know if anything is missing or unclear? |
I will certainly test as many times as necessary. I am very interested in making VScode accessibility the best possible. Here in Brazil we have several blind people who use this tool and the better the accessibility the more productive we will be. |
@jvesouza I added some aria-labels into the test report page, it still have some problems but you can have a try first. Here is private build: Same as before, it's a zip file, after unzip it, you'll find the .vsix file. The problem I cannot solve now is that the test report uses the collapsible accordion component from Bootstrap to show the execution details for each method. Though I have added the aria related attributes but the Narrator still cannot tell the current state (whether it is collapsed or expanded). @isidorn Here is the step to reproduce it:
@isidorn I'm not sure if it's related with Electron? Please let me know if I need to file an issue at VS Code repo. Thanks. |
It was excellent. When I press the enter key in the method details, the orca reads expanded or collapsed depending on the current state. However, no other information is read. |
@jvesouza I think maybe I can add some tab-index for the detail part, then you can tab the focus when the component is expanded. So next I'll do some change to make the detailed information in the expanded area can be read by the screen reader. For those passed tests, there is no more information in that expanded area. For those failed tests, you can find stackstrace inside that. Should the tab get the focus of the entire stacktrace or each tab switch to the next line of the stacktrace? |
If it is possible to navigate the stack trace using the arrows, I prefer to have access to the entire stack trace instead of accessing one line at a time with the tab key. |
@jdneo that sounds related to Electron. Though we recommend testing using NVDA screen reader, since it is free, open source and the most popular. So we actually do not test with Narrator (mostly based on community feedback) |
@isidorn You are right, I download NVDA and it works now! |
@jvesouza how about this one? |
I think that from the point of view of accessibility it was not very good.
If there is a quick way to jump from one method to another while the detail view is active, I think things get a lot better |
Does arrow-up and arrow-down not work?
I can improve it by not preserve the focus when the link is triggered
So far I have no good solution for this, since there will be many links in the detail page. I'm looking for a way to skip all these links if it is possible. A workaround I can find is when the focus is in the detail view, use We can bind some special keyboard shortcut to help navigate from different test methods. But it may conflicts with other existing bindings. |
Unfortunately pageUp and pageDown don't seem to produce any action in linux, at least in the distro I'm using. |
@jvesouza That's also a great idea. But I'm not sure if the escape key will conflict with other shortcuts. For example, |
Normally, to stop speech on the screen reader, the ctrl key is used. |
@jdneo feel free to use the |
Thank you all for the suggestion! @jvesouza please try this one. Now the test report view will listen to the |
@jdneo I think it was perfect. How about just displaying the navigation link to the source only within the detail view? |
@jvesouza Thank you for your feedback!
Emm, This is not a decision that I can quickly make by now. Since there will be some users who might need this button display out of the detail view. But at least, I will raise several PRs to improve the accessibility of the test report page to unblock the users based on our above discussion. |
Okay, I understand perfectly. I figured the answer would be something like this. |
I can navigate the java test reports using the keyboard but I cannot activate the link that seems to lead to the test source using the enter key.
This is a big problem for those who cannot use the mouse.
cc: @isidorn
The text was updated successfully, but these errors were encountered: