Giter Site home page Giter Site logo

jlp-craigmorten / setup Goto Github PK

View Code? Open in Web Editor NEW

This project forked from guidepup/setup

0.0 0.0 0.0 41.34 MB

Setup your environment for screen reader test automation.

Home Page: https://guidepup.dev

License: MIT License

JavaScript 0.57% TypeScript 99.43%

setup's Introduction

Guidepup Setup

Setup your environment for screen reader test automation.

Guidepup Setup available on NPM Guidepup available on NPM Guidepup Setup test workflows Guidepup Setup uses the MIT license

Getting Started

Run this command:

npx @guidepup/setup

And get cracking with your screen reader test automation code!

Usage

If you are running this command locally, you might find it prompts you to pass in credentials so that it can using UI automation to change a checkbox value which enables the automation of VoiceOver. If you are uncomfortable with providing your credentials, you can manually achieve these steps by follow the manual VoiceOver setup documentation.

If you are running this command in CI/CD, it is recommended to add the --ci flag to prevent interactive prompts:

npx @guidepup/setup --ci

If you are using GitHub Actions, check out the dedicated guidepup/setup-action:

- name: Setup Environment
  uses: guidepup/setup-action

If you are encountering errors in CI for MacOS you can pass a --record flag to the command which will output a screen-recording of the setup to a ./recordings/ directory:

npx @guidepup/setup --ci --record

Check out the Documentation Website for more information.

Windows

NVDA Installation

When running on windows a portable NVDA instance compatible with Guidepup will be installed to a temporary directory. The location of this installation directory is stored in the Windows registry under the key HKCU\Software\Guidepup\Nvda.

Foreground Timeout Lock

Modern versions of Windows have a setting which prevents new application instances launching in front of other applications in quick succession, requiring over 3 minutes between activations before it will actually show the window - in the interim it launches the window minimized.

Many test automation frameworks will completely close down a browser after a test has finished and then launch a new instance for the next test - on Windows this suffers from the timeout lock on foreground windows. This impacts on screen reader automation which need the window to activate and focus to be able to drive the screen reader on the application.

To mitigate this the setup script updates two keys in the Windows registry under HKCU\Control Panel\Desktop:

  • ForegroundLockTimeout - Specifies the time in milliseconds, following user input, during which the system will not allow applications to force themselves into the foreground. Defaults to 200000.
  • ForegroundFlashCount - Determines the number of times the taskbar button will flash to notify the user that a background window has been activated by the system. If the time elapsed since the last user input exceeds the value of ForegroundLockTimeout, the window will automatically be brought to the foreground. Defaults to 3.

Both of these are set to 0 by the setup script.

See Also

Check out some of the other Guidepup modules:

Support

  • VoiceOver on MacOS
  • NVDA on Windows

License

MIT

setup's People

Contributors

cmorten avatar jlp-craigmorten avatar dependabot[bot] avatar msereniti avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.