Skip to content

test(vehicles): the vehicles list test runs on a fixed day - #582

Open
ibrahimroshdy wants to merge 1 commit into
mainfrom
fix/vehicles-mock-test-clock
Open

ibrahimroshdy wants to merge 1 commit into
mainfrom
fix/vehicles-mock-test-clock

Conversation

@ibrahimroshdy

Copy link
Copy Markdown
Collaborator

Main's fast check has been red since 2026-11-17 on one test, apps/web/src/api/vehicles/mock/mock.test.ts "lists the vehicles in use": the Corolla's fills and the oil change's anchor are fixed dates, while "fresh", "stale" and the estimated next due are measured from today, so the estimate stopped being estimated: true as the calendar moved on. Every open PR's fast fails on it too (#565 pointed it out).

The test now runs on a fixed day (2026-10-10), as the costs tests in the same file already do. Test-only; no app code changes.

Definition of done

  • Tests: the file passes (15/15) today; it failed before on any day from 2026-11-17.
  • Docs, catalogues, KEPT_*: n/a.
  • Security-relevant: no.

The Corolla's fills and the oil change's anchor are fixed dates, and fresh, stale and the
estimated next due are measured from today, so the test started failing on 2026-11-17 and has
kept main's fast check red since. It now sets the day, as the costs tests in the same file do.

Signed-off-by: Ibrahim Roshdy <22573766+ibrahimroshdy@users.noreply.github.com>
@ibrahimroshdy
ibrahimroshdy requested a review from a team as a code owner November 21, 2026 07:09
@ibrahimroshdy ibrahimroshdy added this to the 1.14.8 milestone Nov 21, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant