Skip to content
This repository was archived by the owner on Feb 1, 2026. It is now read-only.

test(backend): fix flawed test assertions in Phase 1#372

Merged
gander merged 4 commits into
mainfrom
test/fix-flawed-tests-phase1
Feb 1, 2026
Merged

test(backend): fix flawed test assertions in Phase 1#372
gander merged 4 commits into
mainfrom
test/fix-flawed-tests-phase1

Conversation

@gander

@gander gander commented Feb 1, 2026

Copy link
Copy Markdown
Member

Fix 5 flawed tests identified in test suite audit (#333):

  • Browser Manager: Add spy to verify browser launched only once
  • Page Capturer: Reclassify 404 as valid HTTP status, not error
  • Task Queue: Add explicit timestamps to ensure deterministic priority ordering
  • Visual Comparator: Replace vague assertions with explicit threshold tests
  • Path Traversal: Clarify that both 400/404 indicate successful blocking

All tests passing (683 passed, 23 skipped)

Fix 5 flawed tests identified in test suite audit (#333):

- Browser Manager: Add spy to verify browser launched only once
- Page Capturer: Reclassify 404 as valid HTTP status, not error
- Task Queue: Add explicit timestamps to ensure deterministic priority ordering
- Visual Comparator: Replace vague assertions with explicit threshold tests
- Path Traversal: Clarify that both 400/404 indicate successful blocking

All tests passing (683 passed, 23 skipped)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions github-actions Bot added size/medium Medium effort: 2-4 hours of work backend Backend-related code (Node.js, API, database, repositories) tests Test-related changes (unit, integration, e2e tests) labels Feb 1, 2026
- queue-concurrency.test.ts: Add CountResult interface for SQL query results
- storage-concurrency.test.ts: Fix invalid run status values, use proper union type
- path-traversal-advanced.test.ts: Add biome-ignore comments for legitimate 'any' usage in test mocks
- keyboard-navigation.test.ts: Use generic Component and ComponentMountingOptions types

Fixes all 14 Biome lint warnings about noExplicitAny.
All tests pass with Node 22.21.1 and 24.12.0.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the frontend Frontend-related code (Vue.js, TypeScript, UI components) label Feb 1, 2026
@gander
gander added this pull request to the merge queue Feb 1, 2026
Merged via the queue into main with commit 31d5dde Feb 1, 2026
5 checks passed
@gander
gander deleted the test/fix-flawed-tests-phase1 branch February 1, 2026 12:30
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Diff Voyager Feb 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backend Backend-related code (Node.js, API, database, repositories) frontend Frontend-related code (Vue.js, TypeScript, UI components) size/medium Medium effort: 2-4 hours of work tests Test-related changes (unit, integration, e2e tests)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Enhancement: Missing, redundant and incorrect test cases in Diff Voyager test suite

1 participant