
> 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

      39 |   render(wrap(<AddJobModal open initialUrl="https://example.test/job" onClose={jest.fn()} onCreated={jest.fn()} />));
      40 |   await screen.findByDisplayValue("Teacher");
    > 41 |   expect(screen.getByLabelText(copy.addJobModalDeadline)).toHaveTextContent("2026-11-23");
         |                                                           ^
      42 |   fireEvent.click(screen.getByRole("button", { name: `${copy.addJobModalDeadline} clear` }));
      43 |   expect(screen.getByLabelText(copy.addJobModalDeadline)).toBeEmptyDOMElement();
      44 |   fireEvent.click(screen.getByRole("button", { name: `${copy.addJobModalDeadline} invalid` }));

      at toHaveTextContent (src/job-date-picker-calendar.test.tsx:41:59)

  ● 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

      39 |   render(wrap(<AddJobModal open initialUrl="https://example.test/job" onClose={jest.fn()} onCreated={jest.fn()} />));
      40 |   await screen.findByDisplayValue("Teacher");
    > 41 |   expect(screen.getByLabelText(copy.addJobModalDeadline)).toHaveTextContent("2026-11-23");
         |                                                           ^
      42 |   fireEvent.click(screen.getByRole("button", { name: `${copy.addJobModalDeadline} clear` }));
      43 |   expect(screen.getByLabelText(copy.addJobModalDeadline)).toBeEmptyDOMElement();
      44 |   fireEvent.click(screen.getByRole("button", { name: `${copy.addJobModalDeadline} invalid` }));

      at toHaveTextContent (src/job-date-picker-calendar.test.tsx:41:59)

  ● 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

      59 |   render(wrap(<EditJobDialog open jobId={1} onClose={jest.fn()} onSaved={jest.fn()} />));
      60 |   await screen.findByDisplayValue("Teacher");
    > 61 |   expect(screen.getByLabelText(copy.editJobDeadline)).toHaveTextContent("2026-11-23");
         |                                                       ^
      62 |   fireEvent.click(screen.getByRole("button", { name: `${copy.editJobDeadline} clear` }));
      63 |   fireEvent.click(screen.getByRole("button", { name: `${copy.editJobDeadline} invalid` }));
      64 |   expect(screen.getByLabelText(copy.editJobDeadline)).toBeEmptyDOMElement();

      at toHaveTextContent (src/job-date-picker-calendar.test.tsx:61:55)

  ● 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

      59 |   render(wrap(<EditJobDialog open jobId={1} onClose={jest.fn()} onSaved={jest.fn()} />));
      60 |   await screen.findByDisplayValue("Teacher");
    > 61 |   expect(screen.getByLabelText(copy.editJobDeadline)).toHaveTextContent("2026-11-23");
         |                                                       ^
      62 |   fireEvent.click(screen.getByRole("button", { name: `${copy.editJobDeadline} clear` }));
      63 |   fireEvent.click(screen.getByRole("button", { name: `${copy.editJobDeadline} invalid` }));
      64 |   expect(screen.getByLabelText(copy.editJobDeadline)).toBeEmptyDOMElement();

      at toHaveTextContent (src/job-date-picker-calendar.test.tsx:61:55)

  ● Edit retains its existing UTC calendar-day loading policy for a legacy offset timestamp

    expect(element).toHaveTextContent()

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

      75 |   render(wrap(<EditJobDialog open jobId={1} onClose={jest.fn()} onSaved={jest.fn()} />));
      76 |   await screen.findByDisplayValue("Teacher");
    > 77 |   expect(screen.getByLabelText(translations.en.editJobDeadline)).toHaveTextContent("2026-11-24");
         |                                                                  ^
      78 |   expect(client.put).not.toHaveBeenCalled();
      79 | });
      80 |

      at Object.toHaveTextContent (src/job-date-picker-calendar.test.tsx:77:66)

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