-
-
Notifications
You must be signed in to change notification settings - Fork 9
Either disable user interactions during test execution or headless mode for NVDA #83
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
Comments
Hi @DeanNeal there is no way currently to operate screen readers (that I’m aware of) that allows for a non-invasive / headless operation. Screen readers haven’t been designed with this capability in mind. I can understand that this is frustrating and a friction point for developing locally because running tests requires you to step away from you device until they have finished - something of a naff developer experience by modern standards! A way forward here would be for us to develop a solution where the tests can be run remotely in a VM, a bit like who one might run tests with BrowserStack or SauceLabs say. There is an alternative lib that already implements this idea with the web driver protocol, see https://github.com/AmadeusITGroup/Assistive-Webdriver (can’t vouch as haven’t used!). In potentially promising news for the long term, there is a W3C initiative https://aria-at.w3.org/ looking into interoperability, testing, and standardised APIs for screen readers which may eventually provide the kind of headless capability you’re after. R.E. blocking user input, there are security implications to consider here and I’m not keen to extend the scope of this library to include that kind of capability. This doesn’t stop you using/building out said functionality separately and using it in a |
@cmorten Thanks for fast response and your clarifications. Is it possible to run this test in Docker? |
It’s an interesting thought - for VoiceOver no unfortunately, there isn’t a macOS docker image afaik. For NVDA it could be possible with a windows docker image 🤔 |
@cmorten I tried to use mcr.microsoft.com/windows/nanoserver:1809 but there was a problem with Microsoft Visual C++ Redistributable so switched to mcr.microsoft.com/windows:1809 Dockerfile
package.json
app.test.tsx
|
@cmorten Hi! Do you know why it happens? |
Hey - unfortunately I don't have a windows machine capable of supporting docker for windows containers so not able to repro (GitHub actions also doesn't support them). Haven't got around to exploring setting up a VM to try this. Does this just happen when using the docker image, or is on your machine as well? |
It works locally using Windows 11. The issue occurs in Docker container. |
I need this to run test as a part of CI/CD |
Is there a way how to run tests in headless mode or how can I use my computer during test execution.
Example of my code:
The text was updated successfully, but these errors were encountered: