Skip to content

Add integration coverage for agent completion - #489

Merged
Kai Tao (vanzue) merged 1 commit into
mainfrom
dev/vanzue/pr-487-integration-test
Jul 24, 2026
Merged

Add integration coverage for agent completion#489
Kai Tao (vanzue) merged 1 commit into
mainfrom
dev/vanzue/pr-487-integration-test

Conversation

@vanzue

Copy link
Copy Markdown
Contributor

Summary

Integration boundary

The tests type and navigate through the packaged agent pane using wtcli send-keys, then assert the rendered TUI buffer, pane-session continuity, and persisted global setting.

Testing

  • pwsh -NoProfile -File test/e2e/bootstrap.ps1 -Check
  • pwsh -NoProfile -File test/e2e/Invoke-ItE2EReport.ps1 -Path test/e2e/tests/Feature.PerTabAgent.Tests.ps1 -UpdateReport (8 passed)
  • cargo test --manifest-path tools/wta/Cargo.toml (1165 passed)
  • full and incremental release reports mark C240 and C241 [x]

Target: #487

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 265e8f6c-66bc-47ab-9750-e0f2b4eaa50a
Copilot AI review requested due to automatic review settings July 24, 2026 08:47
@vanzue
Kai Tao (vanzue) enabled auto-merge (squash) July 24, 2026 08:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds end-to-end integration coverage for the /agent <prefix> completion behavior (introduced in #487) by driving the packaged agent pane via wtcli send-keys, and updates supporting fixtures/docs so the new release checklist items are tracked.

Changes:

  • Adds two new Pester E2E cases validating /agent <prefix> completion rendering and keyboard acceptance (Tab commit, Enter selection) without pane rebuild.
  • Fixes Rust slash-command test fixtures to populate the newly-required AvailableAgent.source field.
  • Updates E2E documentation and the release checklist with new coverage items (C240/C241) and refreshed coverage counts.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
tools/wta/src/slash_command_tests.rs Updates completion agent fixtures to include AgentSource::Host so Rust tests compile and reflect the new struct shape.
test/e2e/tests/Feature.PerTabAgent.Tests.ps1 Adds E2E coverage for /agent <prefix> completion (ghost text presence, Tab commitment, Enter selection safety).
test/e2e/README.md Updates the E2E suite coverage table and coverage/test-count summaries to reflect the added cases.
doc/release-check-list.md Adds new [E2E] checklist items C240/C241 for /agent prefix completion behavior and selection safety.

@vanzue
Kai Tao (vanzue) merged commit 5b23564 into main Jul 24, 2026
11 checks passed
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.

3 participants