guidepup / setup

Setup your environment for screen reader test automation.
https://guidepup.dev
MIT License
5 stars 2 forks source link

Screen reader is installed in a Temp folder on Windows and after some time, the OS removes it #25

Closed AnyMa closed 5 months ago

AnyMa commented 5 months ago

Issue

Setup:

Details

I noticed that the command "npx @guidepup/setup" installs the screen reader into a temp folder on Windows. Then, sometimes Windows runs the garbage collector (or something similar) and the screen reader is gone. Is there any way to install it in a non-temp folder, so I don't need to re-install it?

jlp-craigmorten commented 5 months ago

Have introduced a new flag --nvda-install-dir where you can pass your own directory for where NVDA should be installed to.

Let me know if have any issues!

AnyMa commented 5 months ago

Hi again! what would be an example of the INSTALLATION-PATH?

cmorten commented 5 months ago

Any valid path for your device, e.g. for the tests in this repo I have:

npx @guidepup/setup --ci --record --nvda-install-dir %userprofile%\nvda

REF: https://github.com/guidepup/setup/blob/main/package.json#L30

Which places NVDA in the C:\Users\runneradmin\nvda directory in CI (you can see in the logs at https://github.com/guidepup/setup/actions/runs/7528145294/job/20489731536)

AnyMa commented 5 months ago

that's odd... couldn't make it work using this command: npx @guidepup/setup --ci --record --nvda-install-dir C:\Users\xxxxxxxxxx\guidepup

cmorten commented 5 months ago

Let me take another look!

cmorten commented 5 months ago

Hmm, you might have to elaborate on your setup as not encountering any issues...

I'm on Windows 11 Home and have tried:

Git Bash

npx @guidepup/setup --nvda-install-dir C:\\Users\\Craig\\nvda-bash

Note: Care needed when in bash shell with the escaping of the path otherwise the \ will be considered an escape character.

Powershell

 npx @guidepup/setup --nvda-install-dir C:\Users\Craig\nvda-pwsh

CMD

 npx @guidepup/setup --nvda-install-dir C:\Users\Craig\nvda-pwsh

AnyMa commented 5 months ago

Awesome! Thanks, Craig!