62 lines
3.0 KiB
Plaintext
62 lines
3.0 KiB
Plaintext
|
|
> job-tracker-ui@0.1.0 test
|
|
> jest --runInBand job-date-picker-calendar.test.tsx
|
|
|
|
FAIL src/job-date-picker-calendar.test.tsx (6.762 s)
|
|
● Edit preserves an absent or invalid application date (null) instead of inventing today
|
|
|
|
expect(element).toBeEmptyDOMElement()
|
|
|
|
Received:
|
|
"2026-11-11"
|
|
|
|
39 | render(wrap(<EditJobDialog open jobId={1} onClose={jest.fn()} onSaved={jest.fn()} />));
|
|
40 | await screen.findByDisplayValue("Teacher");
|
|
> 41 | expect(screen.getByLabelText(translations.en.editJobAppliedOn)).toBeEmptyDOMElement();
|
|
| ^
|
|
42 | fireEvent.change(screen.getByLabelText(translations.en.editJobJobTitle), { target: { value: "Saved teacher opportunity" } });
|
|
43 | fireEvent.click(screen.getByRole("button", { name: translations.en.save }));
|
|
44 | await waitFor(() => expect(client.put).toHaveBeenCalledWith("/jobapplications/1", expect.objectContaining({
|
|
|
|
at toBeEmptyDOMElement (src/job-date-picker-calendar.test.tsx:41:67)
|
|
|
|
● Edit preserves an absent or invalid application date () instead of inventing today
|
|
|
|
expect(element).toBeEmptyDOMElement()
|
|
|
|
Received:
|
|
"2026-11-11"
|
|
|
|
39 | render(wrap(<EditJobDialog open jobId={1} onClose={jest.fn()} onSaved={jest.fn()} />));
|
|
40 | await screen.findByDisplayValue("Teacher");
|
|
> 41 | expect(screen.getByLabelText(translations.en.editJobAppliedOn)).toBeEmptyDOMElement();
|
|
| ^
|
|
42 | fireEvent.change(screen.getByLabelText(translations.en.editJobJobTitle), { target: { value: "Saved teacher opportunity" } });
|
|
43 | fireEvent.click(screen.getByRole("button", { name: translations.en.save }));
|
|
44 | await waitFor(() => expect(client.put).toHaveBeenCalledWith("/jobapplications/1", expect.objectContaining({
|
|
|
|
at toBeEmptyDOMElement (src/job-date-picker-calendar.test.tsx:41:67)
|
|
|
|
● Edit preserves an absent or invalid application date (not-a-date) instead of inventing today
|
|
|
|
expect(element).toBeEmptyDOMElement()
|
|
|
|
Received:
|
|
"2026-11-11"
|
|
|
|
39 | render(wrap(<EditJobDialog open jobId={1} onClose={jest.fn()} onSaved={jest.fn()} />));
|
|
40 | await screen.findByDisplayValue("Teacher");
|
|
> 41 | expect(screen.getByLabelText(translations.en.editJobAppliedOn)).toBeEmptyDOMElement();
|
|
| ^
|
|
42 | fireEvent.change(screen.getByLabelText(translations.en.editJobJobTitle), { target: { value: "Saved teacher opportunity" } });
|
|
43 | fireEvent.click(screen.getByRole("button", { name: translations.en.save }));
|
|
44 | await waitFor(() => expect(client.put).toHaveBeenCalledWith("/jobapplications/1", expect.objectContaining({
|
|
|
|
at toBeEmptyDOMElement (src/job-date-picker-calendar.test.tsx:41:67)
|
|
|
|
Test Suites: 1 failed, 1 total
|
|
Tests: 3 failed, 7 passed, 10 total
|
|
Snapshots: 0 total
|
|
Time: 7.608 s
|
|
Ran all test suites matching job-date-picker-calendar.test.tsx.
|