
> job-tracker-ui@0.1.0 test
> jest --runInBand job-date-picker-calendar.test.tsx

FAIL src/job-date-picker-calendar.test.tsx
  ● en Add date-only picker round trip retains the selected day and existing creation payload

    expect(element).toHaveTextContent()

    Expected element to have text content:
      2026-11-23
    Received:
      2026-11-22

      46 |   for (const label of [copy.addJobModalDateApplied, copy.addJobModalDeadline]) {
      47 |     fireEvent.click(screen.getByRole("button", { name: `${label} choose` }));
    > 48 |     expect(screen.getByLabelText(label)).toHaveTextContent("2026-11-23");
         |                                          ^
      49 |   }
      50 |   fireEvent.click(screen.getByRole("button", { name: copy.continue }));
      51 |   for (let step = 0; step < 3; step++) fireEvent.click(screen.getByRole("button", { name: copy.skipAndContinue }));

      at toHaveTextContent (src/job-date-picker-calendar.test.tsx:48:42)

  ● nb Add date-only picker round trip retains the selected day and existing creation payload

    expect(element).toHaveTextContent()

    Expected element to have text content:
      2026-11-23
    Received:
      2026-11-22

      46 |   for (const label of [copy.addJobModalDateApplied, copy.addJobModalDeadline]) {
      47 |     fireEvent.click(screen.getByRole("button", { name: `${label} choose` }));
    > 48 |     expect(screen.getByLabelText(label)).toHaveTextContent("2026-11-23");
         |                                          ^
      49 |   }
      50 |   fireEvent.click(screen.getByRole("button", { name: copy.continue }));
      51 |   for (let step = 0; step < 3; step++) fireEvent.click(screen.getByRole("button", { name: copy.skipAndContinue }));

      at toHaveTextContent (src/job-date-picker-calendar.test.tsx:48:42)

  ● en Edit date-only picker round trip preserves all five date controls and revision payload

    expect(element).toHaveTextContent()

    Expected element to have text content:
      2026-11-23
    Received:
      2026-11-22

      65 |   for (const label of [copy.editJobAppliedOn, copy.editJobStatusChangedOn, copy.editJobReplyReceivedOn, copy.editJobFollowUpOn, copy.editJobDeadline]) {
      66 |     fireEvent.click(screen.getByRole("button", { name: `${label} choose` }));
    > 67 |     expect(screen.getByLabelText(label)).toHaveTextContent("2026-11-23");
         |                                          ^
      68 |   }
      69 |   fireEvent.click(screen.getByRole("button", { name: copy.save }));
      70 |   await waitFor(() => expect(client.put).toHaveBeenCalledWith("/jobapplications/1", expect.objectContaining({ expectedVersion: 7, dateApplied: "2026-11-23", deadline: "2026-11-23", followUpAt: "2026-11-23", responseDate: "2026-11-23" })));

      at toHaveTextContent (src/job-date-picker-calendar.test.tsx:67:42)

  ● nb Edit date-only picker round trip preserves all five date controls and revision payload

    expect(element).toHaveTextContent()

    Expected element to have text content:
      2026-11-23
    Received:
      2026-11-22

      65 |   for (const label of [copy.editJobAppliedOn, copy.editJobStatusChangedOn, copy.editJobReplyReceivedOn, copy.editJobFollowUpOn, copy.editJobDeadline]) {
      66 |     fireEvent.click(screen.getByRole("button", { name: `${label} choose` }));
    > 67 |     expect(screen.getByLabelText(label)).toHaveTextContent("2026-11-23");
         |                                          ^
      68 |   }
      69 |   fireEvent.click(screen.getByRole("button", { name: copy.save }));
      70 |   await waitFor(() => expect(client.put).toHaveBeenCalledWith("/jobapplications/1", expect.objectContaining({ expectedVersion: 7, dateApplied: "2026-11-23", deadline: "2026-11-23", followUpAt: "2026-11-23", responseDate: "2026-11-23" })));

      at toHaveTextContent (src/job-date-picker-calendar.test.tsx:67:42)

Test Suites: 1 failed, 1 total
Tests:       4 failed, 1 passed, 5 total
Snapshots:   0 total
Time:        4.882 s
Ran all test suites matching job-date-picker-calendar.test.tsx.
