Skip to content

test: add probe test plan for Tool Auto Approve feature#306

Closed
ethanyhou wants to merge 1 commit into
mainfrom
ethan/add-auto-approve-probe-tests
Closed

test: add probe test plan for Tool Auto Approve feature#306
ethanyhou wants to merge 1 commit into
mainfrom
ethan/add-auto-approve-probe-tests

Conversation

@ethanyhou

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 22, 2026 13:55

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 a new SWTBot test plan that validates the end-to-end integration surface of the unified Tool Auto Approve preferences page and its interactions with Agent Mode tool confirmations.

Changes:

  • Introduces an auto-approve.md integration test plan covering page rendering, org-policy gating, and cross-category confirmation/auto-approval behavior.
  • Defines P0/P1 test cases spanning terminal deny/allow flows, Global Auto Approve confirmation, and Reset-to-Defaults behavior.
  • Adds a consolidated screenshots checklist for the key verification points.

Comment on lines +16 to +18
## Test Cases

### TC-001: Tool Auto Approve preference page renders all four sections
Comment on lines +141 to +155
#### Preconditions
- Global Auto Approve is **disabled**.
- A Terminal **Deny** rule exists for `curl`.
- **Agent Mode** selected.

#### Steps
1. Open **Tool Auto Approve → Global Auto Approve**.
2. Click the **"Auto approve all tool calls"** checkbox.
3. Observe the **"Enable Global Auto Approve?"** confirmation dialog warning
about the risk; click **Cancel** and verify the checkbox stays unchecked.
4. Click the checkbox again and click **Confirm**; verify it is now checked.
5. Click **Apply and Close**.
6. In Agent Mode, trigger a `curl` terminal command (normally denied), then an
MCP tool call, then a file operation on a file outside the attached
context.
@xinyi-gong

Copy link
Copy Markdown
Member

I already have separate test plans covering the auto-approve functionality. Could you please check whether these newly added test cases can be covered by, or merged into, the existing test cases?

@jdneo

jdneo commented Jun 24, 2026

Copy link
Copy Markdown
Member

Since we already have existing test plan for auto approve. Close this one.

@jdneo jdneo closed this Jun 24, 2026
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.

4 participants