Skip to content

test(arena): cover select dialog key actions#3614

Merged
wenshao merged 1 commit into
QwenLM:mainfrom
reidliu41:arena-select-dialog-tests
Apr 25, 2026
Merged

test(arena): cover select dialog key actions#3614
wenshao merged 1 commit into
QwenLM:mainfrom
reidliu41:arena-select-dialog-tests

Conversation

@reidliu41

Copy link
Copy Markdown
Contributor

Summary

Adds focused test coverage for ArenaSelectDialog keyboard interactions:

  • Escape closes the dialog without applying or cleaning up results
  • x discards Arena results via cleanup without applying changes
  • Enter applies the highlighted successful agent
  • Enter does nothing for a failed/non-selectable agent

Validation

  • Commands run:
    # paste commands here
  • Prompts / inputs used:
  • Expected result:
  • Observed result:
  • Quickest reviewer verification path:
  • Evidence (output, logs, screenshots, video, JSON, before/after, etc.):

Scope / Risk

  • Main risk or tradeoff:
  • Not covered / not validated:
  • Breaking changes / migration notes:

Testing Matrix

  • cd packages/cli && npx vitest run src/ui/components/arena/ArenaSelectDialog.test.tsx
  • npm run build
  • npm run typecheck
  • npm run lint:ci
  • git diff --check
  • cd packages/cli && npm run test:ci
🍏 🪟 🐧
npm run ⚠️ ⚠️ Pass
npx ⚠️ ⚠️ ⚠️
Docker ⚠️ ⚠️ ⚠️
Podman ⚠️ N/A N/A
Seatbelt ⚠️ N/A N/A

Testing matrix notes:

Linked Issues / Bugs

Based on the comment #3394 (comment)

  Add ArenaSelectDialog tests for Escape, discard, and winner selection key paths.

  Verify Escape only closes the dialog, x discards without applying changes, Enter applies the highlighted successful agent, and
  failed agents remain inert when selected.

@wenshao wenshao 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.

No issues found. LGTM! ✅ — gpt-5.5 via Qwen Code /review

@wenshao wenshao merged commit 70cebc4 into QwenLM:main Apr 25, 2026
13 checks passed
xaelistic pushed a commit to xaelistic/qwen-code that referenced this pull request Jun 7, 2026
Add ArenaSelectDialog tests for Escape, discard, and winner selection key paths.

  Verify Escape only closes the dialog, x discards without applying changes, Enter applies the highlighted successful agent, and
  failed agents remain inert when selected.
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.

2 participants