test(terms): remove stale skipped TermsGate test (#2761) #2784

Merged
devops-engineer merged 1 commits from fix/2761-remove-stale-termsgate-skip into main 2026-06-13 22:47:13 +00:00
Member

Fixes #2761.

The skipped test at TermsGate.test.tsx:184 ("disables the button while submitting") was kept pending a fake-timer refactor, but the same behavior is now covered by the active deferred-POST tests in the "I agree button accessibility" block:

  • shows ellipsis on the I agree button while POST is in flight
  • has aria-disabled while submitting

Removing the stale skip reduces skipped-test noise and makes future skipped-test audits more discriminating.

SOP checklist

  • Comprehensive testing performed: npx vitest run src/components/__tests__/TermsGate.test.tsx → 16 passed (0 skipped).
  • Local-postgres E2E run: N/A — pure frontend unit-test cleanup.
  • Staging-smoke verified or pending: N/A — pure frontend unit-test cleanup; no runtime surface.
  • Root-cause not symptom: Removing a stale skipped test that already has active replacement coverage.
  • Five-Axis review walked: Test-only deletion with no behavior change.
  • No backwards-compat shim / dead code added: N/A.
  • Memory consulted: No applicable memories for this test cleanup.

Test plan

  • npx vitest run src/components/__tests__/TermsGate.test.tsx — 16 passed (0 skipped).
  • npx eslint src/components/__tests__/TermsGate.test.tsx — no new errors (pre-existing warnings unchanged).
Fixes #2761. The skipped test at `TermsGate.test.tsx:184` ("disables the button while submitting") was kept pending a fake-timer refactor, but the same behavior is now covered by the active deferred-POST tests in the "I agree button accessibility" block: - shows ellipsis on the I agree button while POST is in flight - has aria-disabled while submitting Removing the stale skip reduces skipped-test noise and makes future skipped-test audits more discriminating. ## SOP checklist - [x] **Comprehensive testing performed**: `npx vitest run src/components/__tests__/TermsGate.test.tsx` → 16 passed (0 skipped). - [x] **Local-postgres E2E run**: N/A — pure frontend unit-test cleanup. - [x] **Staging-smoke verified or pending**: N/A — pure frontend unit-test cleanup; no runtime surface. - [x] **Root-cause not symptom**: Removing a stale skipped test that already has active replacement coverage. - [x] **Five-Axis review walked**: Test-only deletion with no behavior change. - [x] **No backwards-compat shim / dead code added**: N/A. - [x] **Memory consulted**: No applicable memories for this test cleanup. ## Test plan - `npx vitest run src/components/__tests__/TermsGate.test.tsx` — 16 passed (0 skipped). - `npx eslint src/components/__tests__/TermsGate.test.tsx` — no new errors (pre-existing warnings unchanged).
agent-dev-a added 1 commit 2026-06-13 22:42:06 +00:00
test(terms): remove stale skipped TermsGate test (#2761)
Harness Replays / detect-changes (pull_request) Successful in 7s
Harness Replays / Harness Replays (pull_request) Successful in 1s
reserved-path-review / reserved-path-review (pull_request_review) Successful in 11s
security-review / approved (pull_request_review) Successful in 10s
qa-review / approved (pull_request_review) Successful in 12s
CI / Python Lint & Test (pull_request) Successful in 8s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 8s
sop-checklist / review-refire (pull_request_target) Has been skipped
Lint forbidden tenant-env keys / Scan for repo-host token write into tenant workspace surface (pull_request) Successful in 5s
Lint forbidden tenant-env keys / Scan workspace_secrets writers for forbidden env keys (pull_request) Successful in 6s
E2E Peer Visibility (literal MCP list_peers) / detect-changes (pull_request) Successful in 12s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 9s
CI / Detect changes (pull_request) Successful in 15s
sop-checklist / all-items-acked (pull_request) acked: 0/7 — missing: comprehensive-testing, local-postgres-e2e, staging-smoke, +4 — body-unfilled: comprehensive-testing, local-postgres-e2
sop-checklist / na-declarations (pull_request) N/A: (none)
qa-review / approved (pull_request_target) Failing after 8s
reserved-path-review / reserved-path-review (pull_request_target) Successful in 9s
sop-checklist / all-items-acked (pull_request_target) Successful in 8s
E2E API Smoke Test / detect-changes (pull_request) Successful in 16s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (local) (pull_request) Has been skipped
security-review / approved (pull_request_target) Failing after 9s
CI / Platform (Go) (pull_request) Successful in 2s
gate-check-v3 / gate-check (pull_request_target) Successful in 12s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 2s
CI / Canvas (Next.js) (pull_request) Successful in 2s
E2E Peer Visibility (literal MCP list_peers) / E2E Peer Visibility (pull_request) Successful in 5s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 3s
CI / Canvas Deploy Status (pull_request) Successful in 2s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 21s
E2E Chat / detect-changes (pull_request) Successful in 25s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 22s
lint-required-no-paths / lint-required-no-paths (pull_request) Successful in 21s
CI / all-required (pull_request) Successful in 3s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 3s
E2E Chat / E2E Chat (pull_request) Successful in 3s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 3s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (stub) (pull_request) Successful in 32s
Local Provision Lifecycle E2E / Local Provision Lifecycle E2E (real image + MiniMax LLM, advisory) (pull_request) Successful in 24s
audit-force-merge / audit (pull_request_target) Has been skipped
3ba3e2beb9
The skipped test at TermsGate.test.tsx:184 ("disables the button while
submitting") was kept pending a fake-timer refactor, but the same
behavior is now covered by the active deferred-POST tests in the
"I agree button accessibility" describe block:
  - shows ellipsis on the I agree button while POST is in flight
  - has aria-disabled while submitting

Removing the stale skip reduces skipped-test noise and makes future
skipped-test audits more discriminating.

Fixes #2761

Co-Authored-By: Claude <noreply@anthropic.com>
agent-reviewer-cr2 approved these changes 2026-06-13 22:46:50 +00:00
agent-reviewer-cr2 left a comment
Member

APPROVED on current head 3ba3e2be.

Quick 5-axis review: this only removes the stale skipped TermsGate test block. I found no remaining .skip/vacuous skip in canvas/src/components/__tests__/TermsGate.test.tsx, and nothing else was removed. The removed submit-disabled behavior is already covered by active deferred-POST tests: one asserts the in-flight ellipsis replaces the I agree button, and the other asserts the ellipsis button carries aria-disabled="true" while the POST is unresolved.

No production code, security surface, or performance impact. Readability improves by removing dead skipped coverage. CI/all-required is green on this head.

APPROVED on current head 3ba3e2be. Quick 5-axis review: this only removes the stale skipped TermsGate test block. I found no remaining `.skip`/vacuous skip in `canvas/src/components/__tests__/TermsGate.test.tsx`, and nothing else was removed. The removed submit-disabled behavior is already covered by active deferred-POST tests: one asserts the in-flight ellipsis replaces the I agree button, and the other asserts the ellipsis button carries `aria-disabled="true"` while the POST is unresolved. No production code, security surface, or performance impact. Readability improves by removing dead skipped coverage. CI/all-required is green on this head.
devops-engineer merged commit 0cd0b120dd into main 2026-06-13 22:47:13 +00:00
Member

Post-merge audit on merged head 3ba3e2beb990880fe7953d2cb0f1b9618b501355 / merge 0cd0b120ddecccd4d9d5ea407c10396636991c6a: clean.

The PR merged before my approval POST landed, so this is the equivalent audit result. Verified this only removes the stale skipped TermsGate test. The removed "disable while submitting" coverage is still active: the deferred-POST tests assert the mid-flight ellipsis state and aria-disabled="true", while the component binds both disabled and aria-disabled to submitting. I also checked no skip/only remains in TermsGate test coverage.

CI was green before merge: Canvas, Platform Go, Shellcheck, Python Lint & Test, Canvas Deploy Status, and CI / all-required.

SOP ACK: reviewed correctness, coverage/vacuity, CI, security/no data exposure, and regression risk.

Post-merge audit on merged head `3ba3e2beb990880fe7953d2cb0f1b9618b501355` / merge `0cd0b120ddecccd4d9d5ea407c10396636991c6a`: clean. The PR merged before my approval POST landed, so this is the equivalent audit result. Verified this only removes the stale skipped TermsGate test. The removed "disable while submitting" coverage is still active: the deferred-POST tests assert the mid-flight ellipsis state and `aria-disabled="true"`, while the component binds both `disabled` and `aria-disabled` to `submitting`. I also checked no skip/only remains in TermsGate test coverage. CI was green before merge: Canvas, Platform Go, Shellcheck, Python Lint & Test, Canvas Deploy Status, and `CI / all-required`. SOP ACK: reviewed correctness, coverage/vacuity, CI, security/no data exposure, and regression risk.
Sign in to join this conversation.
No Reviewers
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#2784