Skip to content

Studio UI test: drive the sandbox level picker that replaced the menu switch - #12866

Merged
danielhanchen merged 1 commit into
mainfrom
studio-playwright-sandbox-picker
Oct 6, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
studio-playwright-sandbox-picker

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Unsloth UI CI, Windows Unsloth UI CI and Mac Unsloth UI CI fail on main in the same Playwright step, permission levels: labels, persistence, confirmation, and focus:

expect(switch).to_have_attribute("aria-checked", "false")
AssertionError: Locator expected to have attribute 'false'

#12855 replaced the Sandbox Low/High switch in the permission menu with a "Sandbox " chip that opens a level picker ("How should code be sandboxed?" with Low and High). tests/studio/playwright_chat_ui.py still looked for the old menuitemcheckbox, so the step stopped before any of its checks ran.

Change

tests/studio/playwright_chat_ui.py only. A pick_sandbox_level helper opens the chip, checks the level it shows, and picks the target in the picker. Both places that used the switch now go through it:

  • Without an OS sandbox: the chip reads Low, picking High opens the setup popup, and every existing popup check (no command block, Copy command carrying the command, Learn more, no Install sandbox for a non-local request, Use Low sandbox keeps Low, server level low) runs as before.
  • With a working sandbox: picking High applies at once with no popup, and the stored and server levels read high.

No product code changes.

Verification

The three UI lanes (Linux, macOS, Windows) ran this branch on a staging copy, results below.

… switch

#12855 swapped the permission menu's Sandbox switch for a chip that opens a
Low/High picker, so the permission levels step failed looking for the old
menuitemcheckbox on every OS. Pick the level through the chip and picker and
keep every setup popup and persistence check.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-06T15:49:34.795021Z 085e9ed Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

Reviewed commit: 085e9ed694

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit 3a8c92a into main Oct 6, 2026
@danielhanchen
danielhanchen deleted the studio-playwright-sandbox-picker branch October 6, 2026 16:09
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