Skip to content

Instantly share code, notes, and snippets.

@ckundo
ckundo / index.html
Last active April 15, 2022 13:58
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>
const page = await browser.newPage();
await page.goto('https://www.example.com', { waitUntil: "domcontentloaded" });
const voiceOver = new VoiceOver();
await voiceOver.launch();
await voiceOver.rotor({ menu: "Window Spots", find: "conten" });
await voiceOver.execute(startInteracting);
const output = await voiceOver.seek({ text: 'link More information...' });
% /System/Library/CoreServices/VoiceOver.app/Contents/MacOS/VoiceOver -h
Framework Version: 708.13
Usage: VoiceOver <subcommand> [options...]
-h -- Help.
-k -- Keyboard Help.
-l logmask -- A comma separated list of log masks (mask1,mask2,...).
-p -- Do not show splash screen.
-q -- Quick start.
@ckundo
ckundo / test.sh
Created January 6, 2020 15:31
end-to-end testing for Amazon Alexa (with display)
#!/bin/sh
# end-to-end testing for Amazon Alexa (with display)
set -e
# invoke Alexa via ask API, and print the results to stdout
speak () {
echo "User:"
echo "> $1"
id=$(ask api simulate-skill --text "$1" --locale=en-US --skill-id=<skill-id> | jq -r '.id')
@ckundo
ckundo / keydown.js
Last active June 26, 2019 02:02
js event dispatcher for keyboard triggers in XD
const ev = new KeyboardEvent("keydown", { key: "w" }); // replace "w" with the keyboard trigger value
document.querySelector("#root-1").dispatchEvent(ev);
@ckundo
ckundo / accessibility-bug-reporting.md
Last active December 9, 2017 00:42
How to: Accessibility Bug Reports

How to: Accessibility Bug Reports

Here's a run-down of steps I've used to capture and report accessibility bugs in software.

Environment

If you're using MacOS, I recommend setting up VMWare Fusion, even if you have separate Windows hardware. It's much easier to switch between environments for quick screen reader debugging with a local VM.

On MacOS

Keybase proof

I hereby claim:

  • I am ckundo on github.
  • I am ckundo (https://keybase.io/ckundo) on keybase.
  • I have a public key ASAAPhGmfQuiVMNac6G8yJjflGQkjGFd4WEmTBWGj_9UOAo

To claim this, I am signing this object:

// ==UserScript==
// @name Snowdenize All Images
// @namespace net.trmm.snowdenize
// @author Trammell Hudson <hudson@trmm.net> and Cameron Cundiff <cameron@ckundo.com>
// @include *
// @Grant none
// @version 2
// ==/UserScript==
(function() {
@ckundo
ckundo / osx-notmuch-mutt.md
Last active May 28, 2019 12:19
Search mail in Mutt with notmuch on OS X

Search mail in Mutt with notmuch on OS X

Install perl

$ brew install perl && brew link perl --force
$ brew install cpanm

Add perl module paths