Skip to content

test(assistant): reach the import command from the previous control - #306

Merged
chaxus merged 1 commit into
mainfrom
fix/firefox-focus-affordance
Nov 3, 2026
Merged

chaxus merged 1 commit into
mainfrom
fix/firefox-focus-affordance

Conversation

@chaxus

@chaxus chaxus commented Nov 3, 2026

Copy link
Copy Markdown
Member

Problem

The 4 text controls and import fields remain recognizable cases in agent-interface-affordances.spec.ts have failed on nightly Firefox since 2026-10-21 (toBeFocused on "Import structured result").

The test focuses the command, presses Tab, then Shift+Tab to enter keyboard-focus mode. The command is the last tabbable element on the page. In Firefox, Tab leaves focus on it, so Shift+Tab moves to the previous control (.agent-view-back). A local probe of document.activeElement confirmed each step. This is a test assumption, not a product defect.

Change

Focus, then Shift+Tab, then Tab, so focus arrives from the previous control. The outline assertions are unchanged. Record: docs/explorations/2026-11-03-firefox-tab-off-the-end.md.

Verification

  • Local Firefox: 4/4 red before the change (reproduced), 4/4 green after.
  • Local macOS WebKit is red both before and after: macOS keyboard navigation does not tab to buttons by default. Linux WebKit in CI was green before; nightly is dispatched on this branch to confirm.

🤖 Generated with Claude Code

The command is the last tabbable element on the page. Firefox leaves
focus on it when Tab runs off the end, so Tab then Shift+Tab landed on
the control before it and the nightly Firefox run has failed since
2026-10-21. Shift+Tab then Tab arrives from the previous control in
every engine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying document with  Cloudflare Pages  Cloudflare Pages

Latest commit: a930517
Status: ✅  Deploy successful!
Preview URL: https://a906f662.document-7hm.pages.dev
Branch Preview URL: https://fix-firefox-focus-affordance.document-7hm.pages.dev

View logs

@chaxus
chaxus merged commit 07f2623 into main Nov 3, 2026
31 checks passed
@chaxus
chaxus deleted the fix/firefox-focus-affordance branch November 3, 2026 08:42
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.

1 participant