[quarantine] dev-login.spec.ts — silently passes in CI without asserting #54
Labels
No labels
blocked:gate-fetch
blocked:gate-implement
blocked:needs-attention
blocked:needs-decision
blocked:needs-human
blocked:needs-local-checkout
blocked:no-changes
bug
feature-request
in-progress
needs-decompose
needs-triage
ops-task
quickfix
security/high
security/low
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/nodedesk#54
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Quarantined under Mark/nodedesk#49 (Phase 2 quality gates).
Test location
tests/dev-login.spec.tsReproduction
Failure mode
The "Developer Login (Bypass)" button only renders in
NODE_ENV=development. CI builds withNODE_ENV=production, so the test takes theelsebranch (line 22-26), logs a message, and passes without asserting anything. It claims coverage it never provides.Root cause
Conditional test logic that depends on runtime environment mode. The test should either run only in a dev-mode CI job, or explicitly
test.skipwith reason when the button is hidden.Acceptance criteria for un-quarantine
NODE_ENV=developmentand includes this test, ORtest.skip+ reason when button is hidden, ORReferences
docs/ci/audit.md§3.5, P2-1Closed by fixup lane — deliverable verified on main
Implementation landed on origin/main and satisfies the acceptance criterion (option 2: conditional-skip pattern):
a279d63fix(#54): dev-login e2e explicitly skips when dev button hidden9c554c9docs(testing): mark dev-login no-op finding resolved (#54)tests/dev-login.spec.tsnow callstest.skip(reason)when the Developer Login (Bypass) button is hidden (lines 10-13), and theconsole.logfallback is removed — CI production builds report the test as skipped with a clear reason instead of silently passing. Verify gate evidence: gate 1 (test.skippresent / noconsole.log) PASS, gate 2 (production build, playwright → "1 skipped") PASS, lint PASS.The dev-mode e2e gate still trips a known pre-existing Turbopack first-compile race (family-14 redirect timeout —
expect(page).toHaveURL(/\/app/)needs an explicit{ timeout: 30000 }); that is a test-infra follow-up, not a blocker for this quarantine issue.