The open-source app everyone uses to manage agents at work
Test audit, Round 7 UI — Secret picker popover follow-up
This separate packet removes 1 registered executions, 1 rendered scenarios and 25 net test lines from ui/src/components/environment-variables-editor/EnvironmentVariablesEditor.test.tsx. It adds no helper and changes no production lines. Audit base: 2e76f5157240ee8b2d42adbdcd4c345aea07c013. All prior committed proof remains byte-identical. Registration/render savings are per complete-suite invocation; no measured runtime or CI-speed claim is made. A service-worker retirement counts only initializer setup, never a render.
Exact retirement map
| Retired registration | Keeper | Exact observations migrated |
|---|---|---|
opens the create-secret popover from the picker's + Create item (§6.4, PAP-12476) |
keeps the create-secret popover open when focus returns to a control inside the value cell (§6.4, PAP-12492) |
expect( document.querySelector('input[aria-label="Secret name"]'), "create-secret name field should render", ).toBeTruthy(); |
The retired picker/create transition and keeper use the same secret-ref value, secrets fixture, fresh callbacks, editor render, combobox focus, Create-item lookup/click and flush. Nine leading statements already match, including the initial heading assertion. The exact initial Secret name input-presence check moves before the keeper drives its late in-anchor focus return. Row.tsx retains the outside-focus guard; CreateSecretPopover.tsx owns the actual name input. Later heading/input persistence checks, outside interactions, store-as-secret and secret lifecycle cases remain unchanged.
The verifier requires matching setup statements, enclosing hooks and explicit teardown where present. It reconstructs candidate source solely from the declared registrations/assertion migrations and requires exact byte equality plus full-program AST equality outside those edits. Existing shared variable bindings, mock arguments and provider/component inputs remain the same. No other fixture, helper, action order, wait, assertion strength, timer or cleanup changes. Default CI includes the file in @paperclipai/ui under general-workspaces-a, once across its two file shards, with no workflow/config change.
Complete owner-file results
| Run | Registered | Passed | Failed | Skipped |
|---|---|---|---|---|
| Baseline | 28 | 28 | 0 | 0 |
| Candidate | 27 | 27 | 0 | 0 |
From ui/: pnpm exec vitest run src/components/environment-variables-editor/EnvironmentVariablesEditor.test.tsx.
All 1 separately selected positive controls passed. All 1 distinct production-owner regressions failed at intended retained/migrated assertions, not setup, timeout or another guard:
| Regression | Intended guard |
|---|---|
| initial-secret-name | document.querySelector('input[aria-label="Secret name"]') |
Exactly one production owner changed per control, and every owner was restored byte for byte after each mutation and checked against pinned Git bytes. Literal keeper-name filters are escaped; unselected cases are not full-suite evidence. The initial first-install receipt verifier mistook emit( for it( and rejected its receipt despite the intended test failure. The declaration-boundary matcher was corrected and that control rerun; the rejected verifier attempt supplies no accepted evidence.
Controls JSON preserves source/owner hashes, exact before/after migrations, matched setup and variable-binding proof, complete-file run/log digests, intended assertion failures and restoration checks. Temporary raw scripts/logs are identified by digests rather than committed in full.
The earlier broad local pnpm test:run was intentionally stopped before completion and is not claimed as passed. These separate focused packets precede delivery-head replay and full CI. This packet includes no push, rebase, PR or merge.