Worked test reports

Regression report for focus loss when a dialog closes

Closing a dialog restores focus to the control that opened it. Compare two versions of a small, runnable fixture. The inputs, expected values and recorded results are public.

Can a keyboard user continue the workflow from the original control?

The original implementation failed the “Second row edit button” check. Expected edit-row-2 and observed open. The corrected implementation met both expectations on the same inputs.

What the control case missed

An assertion that the first trigger receives focus passes when it happens to be the opener. Open from a second row instead and the generic default target steals the keyboard user's place.

Observed values from the two implementations
CheckExpectedOriginalCorrected
Default openeropenopenopen
Second row edit buttonedit-row-2openedit-row-2

What to check before merging

Record the actual opening element and restore focus when it still exists. Run a separate browser and keyboard check for an opener removed during editing. The model below verifies the choice of target ID.

Reproduce the recorded result

Download the Node.js fixture and run node run.mjs keyboard-focus-after-dialog with Node.js 24. Compare the printed JSON with the recorded results. This is a locally executed model of the regression, using synthetic inputs. It covers the rule shown here. Hosted runs, browser behaviour and customer PRs require their own evidence.

Primary documentation

Your next release starts here

Keep building.
Put testing to work.

Give Cue April your next testing challenge. Let your AI quality lead coordinate the checks, so your team can focus on what comes next.

Create account

Create your account, connect a repository and review your proposed setup before approving a run.