Files
jobtrackingapp/docs/ui-modernisation/evidence/career/frontend/a3-career-navigation-red.log
T

44 lines
2.0 KiB
Plaintext

> job-tracker-ui@0.1.0 test
> jest --runInBand --watch=false --runTestsByPath src/career-workspace-page.test.tsx --testNamePattern=overview opens every canonical section --json --outputFile=../docs/ui-modernisation/a3-career-navigation-red.json
FAIL src/career-workspace-page.test.tsx
● en overview opens every canonical section directly without saving or reloading the profile
expect(received).not.toBeNull()
Received: null
204 | for (const section of sections) {
205 | const action = document.querySelector<HTMLButtonElement>(`button[data-edit-career-section="${section}"]`);
> 206 | expect(action).not.toBeNull();
| ^
207 | fireEvent.click(action!);
208 | await waitFor(() => expect(document.getElementById(`career-section-${section}`)).toContainElement(document.activeElement as HTMLElement));
209 | expect(new URLSearchParams(location.search).get('keep')).toBe('1');
at toBeNull (src/career-workspace-page.test.tsx:206:24)
● nb overview opens every canonical section directly without saving or reloading the profile
expect(received).not.toBeNull()
Received: null
204 | for (const section of sections) {
205 | const action = document.querySelector<HTMLButtonElement>(`button[data-edit-career-section="${section}"]`);
> 206 | expect(action).not.toBeNull();
| ^
207 | fireEvent.click(action!);
208 | await waitFor(() => expect(document.getElementById(`career-section-${section}`)).toContainElement(document.activeElement as HTMLElement));
209 | expect(new URLSearchParams(location.search).get('keep')).toBe('1');
at toBeNull (src/career-workspace-page.test.tsx:206:24)
Test Suites: 1 failed, 1 total
Tests: 2 failed, 14 skipped, 16 total
Snapshots: 0 total
Time: 5.666 s, estimated 7 s
Ran all test suites within paths "src/career-workspace-page.test.tsx".
Test results written to: ..\docs\ui-modernisation\a3-career-navigation-red.json