'How to detect tab keypress in BackstopJS?
I'm trying to write tests in BackstopJS for focus states triggered by keyboard navigation. The docs only reference keypresses of numbers, letters, and symbols. I need tab and arrow key tests. Is this even possible in BackstopJS? I don't have any choice in the testing framework.
Both of the tests below do nothing.
"keypressSelectors": [
{
"selector": ".testing-div",
"keypress": "tab"
},
{
"selector": ".testing-div",
"keypress": 9 // JS keycode
}
]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
