doc-detective / doc-detective-core

The NPM package that powers Doc Detective's testing functionality.
https://doc-detective.com
MIT License
8 stars 2 forks source link

Reduce necessary permissions for driver installation #125

Closed hawkeyexl closed 6 months ago

hawkeyexl commented 6 months ago

Drivers currently require global installation, which needs elevated permissions. This is a problem on work devices with locked-down permissions.

To mitigate the issue, change to calling appium and installing drivers via npx rather than doing it directly or globally. This will install the drivers in the local package instead of in globally by default and should sidestep some of the permissions issues.

Full-fledged workaround includes a docker image, but any images will have reduced functionality, so we need to do what we can to reduce permissions for npx installs, too.