Last active
April 15, 2022 13:58
-
-
Save ckundo/8e69aa41172fe74a9861b370bbff6552 to your computer and use it in GitHub Desktop.
voiceover test case for broken Firefox form control rotor typeahead
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Test Case</title> | |
</head> | |
<body> | |
<input type="text" aria-label="test input" /> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Welcome to macOS. VoiceOver is on. Firefox Test Case window Browser tabs toolbar item palette | |
Form Controls menu | |
Window Spots menu | |
Content - Test Case group | |
Test Case group | |
Window Spots menu | |
No items in Web Spots menu | |
Form Controls menu | |
No items in Form Controls menu | |
Session ended |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"devDependencies": { | |
"voiceover": "^0.4.1" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/node | |
const { exec } = require('child_process') | |
const { VoiceOver } = require('voiceover'); | |
async function run() { | |
const voiceOver = new VoiceOver({ log: true }); | |
voiceOver.tail(); | |
await voiceOver.launch(); | |
exec("open ./index.html -a Firefox"); | |
await new Promise((resolve) => setTimeout(resolve, 3000)); | |
await voiceOver.rotor({ menu: "Window Spots", find: "content" }); | |
await voiceOver.rotor({ menu: "Form Controls", find: "test" }); | |
// expect the test input to be listed, but nothing shows up | |
await voiceOver.quit(); | |
} | |
run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment