test(terms): remove stale skipped TermsGate test (#2761) #2784
Reference in New Issue
Block a user
Delete Branch "fix/2761-remove-stale-termsgate-skip"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:Removing the stale skip reduces skipped-test noise and makes future skipped-test audits more discriminating.
SOP checklist
npx vitest run src/components/__tests__/TermsGate.test.tsx→ 16 passed (0 skipped).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).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>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 incanvas/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 carriesaria-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.
Post-merge audit on merged head
3ba3e2beb990880fe7953d2cb0f1b9618b501355/ merge0cd0b120ddecccd4d9d5ea407c10396636991c6a: 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 bothdisabledandaria-disabledtosubmitting. 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.