Skip to content

Tell candidates the test sound is optional - #570

Merged
jserv merged 1 commit into
sysprog21:mainfrom
lakekenny:preflight-sound-wording
Nov 2, 2026
Merged

jserv merged 1 commit into
sysprog21:mainfrom
lakekenny:preflight-sound-wording

Conversation

@lakekenny

@lakekenny lakekenny commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

The media preflight accepts the candidate's click as confirmation of sound output without a test playback, since the candidate is the only reliable sensor of their own output, but its wording read as if playing a test sound were required. The Sound step now reads 'play a test sound to check your audio, or click "I heard it" if it already works.' in both the markup in web/interview.html and paintPreflight in web/interview.js, and the output message of mediaReadiness in web/audio-check.js reads 'Play the test tone or voice to check your audio, or click "I heard it" if it already works.' Both name the button that confirms output, so a candidate who skips the test knows what to press. confirmOutput, click-to-confirm and the other mediaReadiness messages are unchanged.

A test in tests/browser/audio-check.test.js runs paintPreflight on the state mediaReadiness returns while output is the remaining step, and checks that the Sound step text it writes matches the markup and that the status line shows the new message. It fails if any one of the three texts is changed alone.

Closes #359


Summary by cubic

The media preflight accepts the candidate's click as confirmation of sound output without a test playback, but the wording read as if playing a test sound were required. Updates the Sound step and status message to make clear the test is optional.

  • Changes the step text in web/interview.html, paintPreflight in web/interview.js, and the mediaReadiness status message in web/audio-check.js to "play a test sound ... or click 'I heard it' if it already works."
  • Adds a test in tests/browser/audio-check.test.js that confirms the step text paintPreflight writes matches the markup and the new status message.

Closes #359.

Written for commit f705240. Summary will update on new commits.

View guided diff

Copilot AI balanced review requested due to automatic review settings November 2, 2026 06:22

This comment was marked as resolved.

cubic-dev-ai[bot]

This comment was marked as resolved.

Comment thread web/audio-check.js Resolved
Comment thread web/interview.js Resolved
The preflight accepts the candidate's confirmation without a test
playback, because the candidate is the only reliable sensor of their
own output, yet the Sound step and the status line both read as if
playing a sound were required. Say that playing one checks the audio
and that clicking "I heard it", the one control that confirms output,
is enough when it already works, in the markup, in paintPreflight and
in the output message of mediaReadiness, and test that the step text
paintPreflight writes matches the markup, so the two cannot drift
apart again.

Closes sysprog21#359
@lakekenny
lakekenny force-pushed the preflight-sound-wording branch from 194db2c to f705240 Compare November 2, 2026 07:02

@ColtenOuO ColtenOuO left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@jserv
jserv merged commit b6eb8ba into sysprog21:main Nov 2, 2026
13 checks passed
@jserv

jserv commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Thank @lakekenny for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Audio output can be confirmed without playing a test sound

4 participants