Skip to content

Instantly share code, notes, and snippets.

@ckundo
Last active April 15, 2022 13:58
Show Gist options
  • Save ckundo/8e69aa41172fe74a9861b370bbff6552 to your computer and use it in GitHub Desktop.
Save ckundo/8e69aa41172fe74a9861b370bbff6552 to your computer and use it in GitHub Desktop.
voiceover test case for broken Firefox form control rotor typeahead
<!DOCTYPE html>
<html lang="en">
<head>
<title>Test Case</title>
</head>
<body>
<input type="text" aria-label="test input" />
</body>
</html>
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
{
"devDependencies": {
"voiceover": "^0.4.1"
}
}
#!/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