Repository navigation
test(ui): match the sentence-case secret save label - #192191
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR changes the stored-secret browser test’s Save selector from “Save: Bot Token” to “Save: Bot token”. Example: The browser test types x__OPENCLAW_REDACTED__ into the Telegram bot-token field.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source commit Merge readiness✅ Ready for maintainer review This PR is a useful, minimal test repair: the selector matches the intentional sentence-case label, and both secret-rejection assertions remain intact. No introduced defect was found; the failing CI shard reports a separate Channels fixture failure. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI derives field labels from schema hints and renders secret-field Save buttons; this browser test exercises that renderer with a fake secret owner and checks that redaction placeholders cannot be saved. flowchart LR
A[Schema hint] --> B[Sentence case label owner]
B --> C[Secret field Save button]
C --> D[Browser regression test]
D --> E[Refusal and validation assertions]
Technical reviewBest possible solution: Retain the one-selector correction and both sentinel-rejection assertions, then handle the inherited CI failure through the existing landing policy. Do we have a high-confidence way to reproduce the issue? The original Chromium CI annotation shows the missing Save element, and current source explains it exactly: “Bot Token” becomes “Bot token” before the accessible name is rendered; no local reproduction was run. Is this the best way to solve the issue? This is the smallest complete repair: update the existing selector to the intentional label while preserving the production rejection path and its assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e28b068b1fc8. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests 0. Total 0 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 3, 2026, 2:08 PM ET / 19:08 UTC. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
What Problem This Solves
The stored-secret browser test still looked for
Save: Bot Tokenafter #191352 (72b1c6d83222) switched generated setting labels to sentence case. The button is present asSave: Bot token, so the test failed before exercising the redaction-sentinel refusal.User Impact
Restores CI coverage of rejecting redaction placeholders as typed secrets. Production behavior is unchanged.
Why This Change Was Made
Update the exact selector to the current label. The test still clicks Save, verifies that the secret owner receives no save, and checks native validation. Test timing and line count are unchanged.
Evidence
3235705cb012ae32e803e7c210669928269070e1; after the correction, all 13 tests inui/src/components/config-form-stored-secret.browser.test.tspassed.pnpm tsgo:ui, focused lint/format, and test-line ratchet passed.Inherited CI failures
Exact-head CI run 41697911013 completed with only the known Channels save fixture failures in
ui/src/pages/channels/channels-page.save.test.ts, suiteChannelsPage save against a file changed elsewhere:writes nothing over fields changed elsewhere, then lets the newer values winwrites the edits over the newer values only on Overwritestill saves next to a change elsewhere that the edits don't touchreports a Save cut short by a dropped connection once a re-read shows it landedreports a Save cut short by a dropped connection once a re-read shows it not landedEach fails at the same
Missing DM policy option pairingassertion inchoose, before reaching save behavior. These match the independently observed failures on #192169, #192170, #192171, and #192172. The tested merge preserves the complete Channels page, helper, app, library, dependency, workflow, and component owners; this PR changes only the unrelated stored-secret browser-test selector. Security and the other selected jobs passed. The authorized inherited-failure route retains this failed CI result.