diff --git a/src/features/vcs/__tests__/svnToolWindowParity.test.tsx b/src/features/vcs/__tests__/svnToolWindowParity.test.tsx index 671e9381f8..f2bf06aaa1 100644 --- a/src/features/vcs/__tests__/svnToolWindowParity.test.tsx +++ b/src/features/vcs/__tests__/svnToolWindowParity.test.tsx @@ -897,7 +897,10 @@ describe("Incoming", () => { }); it("M10: follows the UI's language", async () => { - mocks.svnIncomingRevisions.mockResolvedValue(ok([revision(A, 7, Date.now() - 8 * DAY)])); + // Wednesday noon of last week: "now minus 8 days" falls two weeks back on a Sunday. + const today = new Date(); + const lastWeek = new Date(today.getFullYear(), today.getMonth(), today.getDate() - today.getDay() - 4, 12); + mocks.svnIncomingRevisions.mockResolvedValue(ok([revision(A, 7, lastWeek.getTime())])); render(); await screen.findByText("change 7"); expect(screen.getByText("Last Week")).toBeInTheDocument();