garris / garris/BackstopJS

How to simulate keyboard navigation?

Open
#1,411 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.2k
Forks
621
PR merge metrics
No merged PRs in 30d

Description

I'm trying to test focus states, which are only triggered via keyboard navigation. Is there a way to simulate a tab or arrow keypress?

Tried seeing if submitting a keycode instead of a string would work; it doesn't.

`{
"selector": ".testing-div",
"keypress": 9 // JS keycode
}`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.