docs(qa): bind mail import and Career restore regression evidence

This commit is contained in:
cesnimda
2026-11-16 22:43:56 +01:00
parent fb3936cb1d
commit 2d9836b6a2
52 changed files with 1309 additions and 0 deletions
@@ -0,0 +1,13 @@
# Career Profile history restore lifetime
16 November 2026. Source `fb3936cb`, after independent mail source `2043f992`, branch `codex/a3-ui-10`.
Restore/history completion now captures the existing session cookie/context/invalidation contract and mounted generation. A stale restore response cannot apply state, start history refresh or notify a different workflow. History reads likewise discard stale completions. Success uses the existing current-language translation ref. The local-provider, dirty-profile, mutation-pending and expected revision guards remain; canonical ownership, import comparisons, history and revision/conflict payloads are preserved. No schema, parser/import engine, renderer, physical PDF or canonical writer was replaced.
PASSED:56 distinct cases across career-import-review23, career-editor and career-workspace-page33. Zero failed/skipped in final run. Initial seven tests failed, but three mounted assertions matched existing page alerts as well as toasts; the intermediate misleadingly named green receipt is20 pass/3 harness assertion failures. Assertions were corrected to translated feedback. A separate corrected red run against original HEAD Career source reproduced all seven failures (16 filtered cases). Fixed source was restored byte-for-byte in finally and its hashes independently checked by root against the worker report. The final56-case affected run passed; earlier23-case counts overlap56.
Root reviewed the source/tests and final native JSON, checked both source hashes, and ran shared project TypeScript and scoped lint on four changed mail/Career files: PASSED after correcting root's unrelated Gmail test query option. Whitespace check passed. AST refresh PASSED19,237 nodes/47,299 edges. Results are fixture-based component/API-helper qualification, not real authentication/database or integrated security testing.
No new export/browser run: prior Next build remains FAILED and advisory qualification open. Other Career mutations/import lifetime, original-user-profile fallback, physical rendering, native language/device/AT and final A3/security/release gates remain separate. Deferred CV-import engine overhaul remains excluded.
Source, canonical and exact gzip receipts: [SOURCE_RECEIPTS.json](evidence/career-restore-lifetime/SOURCE_RECEIPTS.json).
@@ -0,0 +1,11 @@
# Gmail message and thread import completion lifetime
16 November 2026. Source `2043f992`, based on `8f9cf70d`, branch `codex/a3-ui-10`.
Six deferred fixtures reproduced late success/failure feedback and extra candidate reads after leaving, plus old-language failures in message/thread imports. Both paths now bind completion to the existing active job/generation, check after POST and each awaited read, and guard feedback/loading cleanup. New job setup clears old import loading IDs. The current translation ref supplies both nested thread count copy and message feedback. Active payloads, selected message/thread IDs, current-job read order and already-linked handling remain.
PASSED:90 distinct cases in five mail suites; earlier84 overlaps90. Final Gmail26 rechecked after removing a test query option unsupported by TypeScript; overlaps90. TypeScript initially FAILED on that option; final shared four-file lint and project TypeScript PASSED. Whitespace check PASSED. Independent read-only source review found no actionable defect; it did not execute tests. Same-component job switching and departure during follow-up reads were reviewed statically, not specifically exercised by the six added cases.
Actual integration AST refresh PASSED after both mail/Career changes:19,237 nodes/47,299 edges, via E output. No new build/browser/provider/model execution: prior build remains failed on the unqualified Next security warning. Already accepted server work is not rolled back. Remaining relink/unlink/disconnect/confirmed-delete/status/choice and real-service/native workflows are not included. No final security/A3/Phase10/release acceptance.
Source, canonical and exact gzip receipts: [SOURCE_RECEIPTS.json](evidence/gmail-import-lifetime/SOURCE_RECEIPTS.json).
@@ -0,0 +1,110 @@
{
"sourceCommit": "fb3936cb1d9ac6dbbec94ec9ba91b9982aa104d0",
"sourcesLfSha256": {
"job-tracker-ui/src/views/CareerProfilePage.tsx": "fd616e59c1297d9cd1c4695a47013f801027552adf62eebf815fe05359f98182",
"job-tracker-ui/src/career-import-review.test.tsx": "88f5f99240b49ec4f4add576327d4139ea4e77b2c7da716d470bd6d2aa6add21",
"job-tracker-ui/src/sessionBoundary.ts": "09edca77c98294818d2ad0c409ce595f1b6ca0c1f60419fc1078b70f96f5b7b9"
},
"evidenceLfSha256": {
"red.log": "7c79e580969e5b3607e45aa0c7ef642ee975573d760de132af6990e62251b427",
"red-corrected.log": "fe9e6a7cc70b0338575a7f74e4c895b5dc26dc5da4beb8829273371309c49d88",
"red-corrected.json": "77b1eff2aaa0a90467848a1b55e122e3684885cce705c9b95160979b53175605",
"red-corrected-process.json": "53ee869e4f32711880c45f8eebc5efcc684cc48abe361c6f838b5d434898c4ec",
"green.log": "124e41e6c30fb68a00a818cc9a7e071bb29f5bad0f79da4ec952df0e022d5d46",
"green.json": "52c4db272e4efee4b7c0b5d79a1da4099e76ae0789819c139dd2effdf932a9b9",
"affected.log": "6b39c24d91ec0b60595a73262f4b8df60c47561c907a6987312325a44e56ba7f",
"affected.json": "a6aafa341bdd27f8cda8cf5f8727e165e107507fd8bc3bf8493de818b2e1831b",
"result-summary.json": "a53e68030ba9da3d70fe829803beb129131bc5a21a4ea228578f60cefcda7b35",
"mail-career-types.txt": "668d030a70c5e0ba2cfdf7691b33adb8a2388e0a6c6f1663b11c696594f186f9",
"mail-career-types-final.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"mail-career-lint.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"mail-career-lint-final.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"mail-career-graph.txt": "d63fcb6d0c800e26195b173cef904a33fb4e85b0f9a859a2bcd54f5b141bca16"
},
"nativeReceipts": [
{
"path": "red.log",
"gzipPath": "red.log.gz",
"rawSha256": "7c79e580969e5b3607e45aa0c7ef642ee975573d760de132af6990e62251b427",
"gzipSha256": "c0132969f53c002d6ffcc5c2677847cc48c57339cffdec8909f97a2b6224aee3"
},
{
"path": "red-corrected.log",
"gzipPath": "red-corrected.log.gz",
"rawSha256": "fe9e6a7cc70b0338575a7f74e4c895b5dc26dc5da4beb8829273371309c49d88",
"gzipSha256": "3bac520ccfb717527c51ef3231b1bb5ba38bcd87447e81ad26df23d67f63f93a"
},
{
"path": "red-corrected.json",
"gzipPath": "red-corrected.json.gz",
"rawSha256": "77b1eff2aaa0a90467848a1b55e122e3684885cce705c9b95160979b53175605",
"gzipSha256": "df4be9a89e1a01cbae3994b5109f48fcbc5fbade0b7c6d4f74b736f7bff7f771"
},
{
"path": "red-corrected-process.json",
"gzipPath": "red-corrected-process.json.gz",
"rawSha256": "54ae8cc6daeb0279434d8049d8d0360481307cc057365149b5517f4e8897a9bd",
"gzipSha256": "4dc6fb7839528944bcec521793c620584027bb23f54d4d3d3683cebe5b6bffc6"
},
{
"path": "green.log",
"gzipPath": "green.log.gz",
"rawSha256": "3a970b8ba3e5e0014721b65211641f83367d432e199ef4cc36ff7f49d200fd59",
"gzipSha256": "e9ff936273d7f3b5eb415052e71d99b17097078bb1029662effb10b702844fee"
},
{
"path": "green.json",
"gzipPath": "green.json.gz",
"rawSha256": "52c4db272e4efee4b7c0b5d79a1da4099e76ae0789819c139dd2effdf932a9b9",
"gzipSha256": "e5c7f112ba96d4d5da0dbc5ee1473c56634fbc571dba8a6d30e13b61c627b76b"
},
{
"path": "affected.log",
"gzipPath": "affected.log.gz",
"rawSha256": "ef032335177ca1900706916898bd6f0ae0d68b5b047e7e42519b92aa5e2d69d6",
"gzipSha256": "4d399a96be58256322f736abdd778edd3d0781069f52528900efd815fab52f18"
},
{
"path": "affected.json",
"gzipPath": "affected.json.gz",
"rawSha256": "a6aafa341bdd27f8cda8cf5f8727e165e107507fd8bc3bf8493de818b2e1831b",
"gzipSha256": "c8bde56fba99b0f9ca24b999a7a6e1bfc252f3d9caa1ba284fe5bb0496fb9316"
},
{
"path": "result-summary.json",
"gzipPath": "result-summary.json.gz",
"rawSha256": "98f30476ce70af7e5623b65a9340f288faab85f56fbee6039971b83f465748d9",
"gzipSha256": "a74fdc8285474208a6b7534439a0a1247452d15325b5103b3217dd7c857c3716"
},
{
"path": "mail-career-types.txt",
"gzipPath": "mail-career-types.txt.gz",
"rawSha256": "a7b6cec2440a957fbf01b8231c7ad78a187f1e9fa2eb1cebdc2afb2260c6f4ca",
"gzipSha256": "b7ab690ac4054e27ed789f1ffa862da48719c0bf20fc8e61001cc49b5e75a8ed"
},
{
"path": "mail-career-types-final.txt",
"gzipPath": "mail-career-types-final.txt.gz",
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e"
},
{
"path": "mail-career-lint.txt",
"gzipPath": "mail-career-lint.txt.gz",
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e"
},
{
"path": "mail-career-lint-final.txt",
"gzipPath": "mail-career-lint-final.txt.gz",
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e"
},
{
"path": "mail-career-graph.txt",
"gzipPath": "mail-career-graph.txt.gz",
"rawSha256": "597457056538d1fc8fe94db2b876be1e0b1a4a79ff66284679ace278988b2b5d",
"gzipSha256": "183e31fb4e7c4d210485000dd6359cde6c61b2447c6107b92ac7627d768afb0e"
}
]
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,7 @@
> jest --runInBand --no-cache --runTestsByPath src/career-import-review.test.tsx src/career-editor.test.tsx src/career-workspace-page.test.tsx --json --outputFile=E:\Storage\Projects\Active\temp docs\jobjakt-local-build\career-restore-lifetime\affected.json
Test Suites: 3 passed, 3 total
Tests: 56 passed, 56 total
Snapshots: 0 total
Time: 90.21 s
Ran all test suites within paths "src/career-import-review.test.tsx", "src/career-editor.test.tsx", "src/career-workspace-page.test.tsx".
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\career-restore-lifetime\affected.json
File diff suppressed because one or more lines are too long
@@ -0,0 +1,383 @@
> jest --runInBand --no-cache --runTestsByPath src/career-import-review.test.tsx --json --outputFile=E:\Storage\Projects\Active\temp docs\jobjakt-local-build\career-restore-lifetime\green.json
console.error
An update to ForwardRef(ButtonBase) inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
141 | fail = false;
142 | const retry = within(error).getByRole("button", { name: en.retry });
> 143 | retry.focus(); fireEvent.click(retry);
| ^
144 | expect(screen.getByRole("article", { name: "File import 41" })).toHaveFocus();
145 | await waitFor(() => expect(screen.getAllByRole("button", { name: en.profileCvApplyChanges }).every((b) => !(b as HTMLButtonElement).disabled)).toBe(true));
146 | expect(readCount("/profile-cv/runs/41/diff")).toBe(2); expect(readCount("/profile-cv/runs/42/diff")).toBe(1);
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at node_modules/@mui/material/ButtonBase/ButtonBase.js:174:7
at node_modules/@mui/utils/useEventCallback/useEventCallback.js:24:19
at executeDispatch (node_modules/react-dom/cjs/react-dom-client.development.js:19116:9)
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at processDispatchQueue (node_modules/react-dom/cjs/react-dom-client.development.js:19166:19)
at node_modules/react-dom/cjs/react-dom-client.development.js:19767:9
at batchedUpdates$1 (node_modules/react-dom/cjs/react-dom-client.development.js:3255:40)
at dispatchEventForPluginEventSystem (node_modules/react-dom/cjs/react-dom-client.development.js:19320:7)
at dispatchEvent (node_modules/react-dom/cjs/react-dom-client.development.js:23585:11)
at dispatchDiscreteEvent (node_modules/react-dom/cjs/react-dom-client.development.js:23553:11)
at HTMLDivElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25)
at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
at HTMLButtonElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
at Object.exports.fireFocusEventWithTargetAdjustment (node_modules/jsdom/lib/jsdom/living/helpers/focusing.js:103:10)
at HTMLButtonElementImpl.focus (node_modules/jsdom/lib/jsdom/living/nodes/HTMLOrSVGElement-impl.js:72:14)
at HTMLButtonElement.focus (node_modules/jsdom/lib/jsdom/living/generated/HTMLElement.js:128:34)
at Object.focus (src/career-import-review.test.tsx:143:9)
console.error
An update to ForwardRef(ButtonBase) inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
170 | const held = deferred<any>(); mockedApi.post.mockReturnValue(held.promise);
171 | renderPage(); await importReady(); fireEvent.click(chooseLow());
> 172 | const apply = screen.getByRole("button", { name: en.profileCvApplyChanges }); apply.focus(); fireEvent.click(apply); fireEvent.click(apply);
| ^
173 | expect(screen.getByRole("article", { name: "File import 41" })).toHaveFocus();
174 | expect(mockedApi.post).toHaveBeenCalledTimes(1);
175 | expect(mockedApi.post).toHaveBeenCalledWith("/profile-cv/runs/41/accept", { expectedVersion: 7, acceptedLowConfidenceIds: ["Languages|french"] });
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at node_modules/@mui/material/ButtonBase/ButtonBase.js:174:7
at node_modules/@mui/utils/useEventCallback/useEventCallback.js:24:19
at executeDispatch (node_modules/react-dom/cjs/react-dom-client.development.js:19116:9)
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at processDispatchQueue (node_modules/react-dom/cjs/react-dom-client.development.js:19166:19)
at node_modules/react-dom/cjs/react-dom-client.development.js:19767:9
at batchedUpdates$1 (node_modules/react-dom/cjs/react-dom-client.development.js:3255:40)
at dispatchEventForPluginEventSystem (node_modules/react-dom/cjs/react-dom-client.development.js:19320:7)
at dispatchEvent (node_modules/react-dom/cjs/react-dom-client.development.js:23585:11)
at dispatchDiscreteEvent (node_modules/react-dom/cjs/react-dom-client.development.js:23553:11)
at HTMLDivElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25)
at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
at HTMLButtonElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
at Object.exports.fireFocusEventWithTargetAdjustment (node_modules/jsdom/lib/jsdom/living/helpers/focusing.js:103:10)
at HTMLButtonElementImpl.focus (node_modules/jsdom/lib/jsdom/living/nodes/HTMLOrSVGElement-impl.js:72:14)
at HTMLButtonElement.focus (node_modules/jsdom/lib/jsdom/living/generated/HTMLElement.js:128:34)
at Object.focus (src/career-import-review.test.tsx:172:87)
console.error
An update to ForwardRef(ButtonBase) inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
294 | const held = deferred<any>(); mockedApi.post.mockReturnValue(held.promise);
295 | renderPage(); await ready(); editDraft(); navigate(en.careerWorkspaceImportTab);
> 296 | const cancel = screen.getByRole("button", { name: en.profileCvCancelProcessing }); cancel.focus(); fireEvent.click(cancel); fireEvent.click(cancel);
| ^
297 | expect(screen.getByRole("article", { name: "File import 41" })).toHaveFocus();
298 | expect(cancel).toBeDisabled(); expect(mockedApi.post).toHaveBeenCalledTimes(1);
299 | expect(mockedApi.post).toHaveBeenCalledWith("/operations/op-81/cancel");
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at node_modules/@mui/material/ButtonBase/ButtonBase.js:174:7
at node_modules/@mui/utils/useEventCallback/useEventCallback.js:24:19
at executeDispatch (node_modules/react-dom/cjs/react-dom-client.development.js:19116:9)
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at processDispatchQueue (node_modules/react-dom/cjs/react-dom-client.development.js:19166:19)
at node_modules/react-dom/cjs/react-dom-client.development.js:19767:9
at batchedUpdates$1 (node_modules/react-dom/cjs/react-dom-client.development.js:3255:40)
at dispatchEventForPluginEventSystem (node_modules/react-dom/cjs/react-dom-client.development.js:19320:7)
at dispatchEvent (node_modules/react-dom/cjs/react-dom-client.development.js:23585:11)
at dispatchDiscreteEvent (node_modules/react-dom/cjs/react-dom-client.development.js:23553:11)
at HTMLDivElement.callTheUserObjectsOperation (node_modules/jsdom/lib/jsdom/living/generated/EventListener.js:26:30)
at innerInvokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:350:25)
at invokeEventListeners (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:286:3)
at HTMLButtonElementImpl._dispatch (node_modules/jsdom/lib/jsdom/living/events/EventTarget-impl.js:233:9)
at Object.exports.fireFocusEventWithTargetAdjustment (node_modules/jsdom/lib/jsdom/living/helpers/focusing.js:103:10)
at HTMLButtonElementImpl.focus (node_modules/jsdom/lib/jsdom/living/nodes/HTMLOrSVGElement-impl.js:72:14)
at HTMLButtonElement.focus (node_modules/jsdom/lib/jsdom/living/generated/HTMLElement.js:128:34)
at Object.focus (src/career-import-review.test.tsx:296:93)
FAIL src/career-import-review.test.tsx (35.775 s)
● a pending history restore reports success in the current language
TestingLibraryElementError: Found multiple elements with the role "alert"
Here are the matching elements:
Ignored nodes: comments, script, style
<div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorSuccess MuiAlert-standardSuccess MuiAlert-standard css-yvlv7q-MuiPaper-root-MuiAlert-root"
role="alert"
style="--Paper-shadow: none;"
>
<div
class="MuiAlert-icon css-1wrdnka-MuiAlert-icon"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1ckov0h-MuiSvgIcon-root"
data-testid="SuccessOutlinedIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"
/>
</svg>
</div>
<div
class="MuiAlert-message css-zioonp-MuiAlert-message"
>
CV-opplysningene er klare til gjennomgang.
</div>
<div
class="MuiAlert-action css-rgppqo-MuiAlert-action"
>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textInherit MuiButton-sizeSmall MuiButton-textSizeSmall MuiButton-colorInherit MuiButton-root MuiButton-text MuiButton-textInherit MuiButton-sizeSmall MuiButton-textSizeSmall MuiButton-colorInherit css-j2tw6f-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
Se gjennom opplysninger
</button>
</div>
</div>
Ignored nodes: comments, script, style
<div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorSuccess MuiAlert-filledSuccess MuiAlert-filled css-13d3i5y-MuiPaper-root-MuiAlert-root"
direction="up"
role="alert"
style="--Paper-shadow: none; opacity: 1; transform: scale(1, 1); transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"
>
<div
class="MuiAlert-icon css-1wrdnka-MuiAlert-icon"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1ckov0h-MuiSvgIcon-root"
data-testid="SuccessOutlinedIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"
/>
</svg>
</div>
<div
class="MuiAlert-message css-zioonp-MuiAlert-message"
>
Profil oppdatert.
</div>
<div
class="MuiAlert-action css-rgppqo-MuiAlert-action"
>
<button
aria-label="Close"
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeSmall css-38cjb0-MuiButtonBase-root-MuiIconButton-root"
tabindex="0"
title="Close"
type="button"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-120dh41-MuiSvgIcon-root"
data-testid="CloseIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
/>
</svg>
</button>
</div>
</div>
(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).
Ignored nodes: comments, script, style
<body>
<div>
<div
class="MuiBox-root css-1ywa727"
>
<nav
aria-label="Område i karrierearbeidsområdet"
class="MuiBox-root css-15ae35w"
>
<div
class="MuiFormControl-root MuiFormControl-fullWidth css-15nws98-MuiFormControl-root"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiFormLabel-filled MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined css-fluw5i-MuiFormLabel-root-MuiInputLabel-root"
data-shrink="true"
id="career-workspace-section-label"
>
Område i karrierearbeidsområdet
</label>
<div
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-sizeSmall MuiSelect-root css-1n9wzir-MuiInputBase-root-MuiOutlinedInput-root-MuiSelect-root"
>
<div
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="career-workspace-section-label"
class="MuiSelect-select MuiSelect-outlined MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall css-19marfc-MuiNativeSelect-root-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input"
role="combobox"
tabindex="0"
>
Karriereprofil
</div>
<input
aria-hidden="true"
aria-invalid="false"
class="MuiSelect-nativeInput css-j0riat-MuiSelect-nativeInput"
tabindex="-1"
value="profile"
/>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiSelect-icon MuiSelect-iconOutlined css-1rfqz7c-MuiSvgIcon-root-MuiNativeSelect-root-MuiSelect-icon"
data-testid="ArrowDropDownIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M7 10l5 5 5-5z"
/>
</svg>
<fieldset
aria-hidden="true"
class="MuiOutlinedInput-notchedOutline css-18p5xg2-MuiNotchedOutlined-root-MuiOutlinedInput-notchedOutline"
>
<legend
class="css-ex8a5f-MuiNotchedOutlined-root"
>
<span>
Område i karrierearbeidsområdet
</span>
</legend>
</fieldset>
</div>
</div>
<div
class="MuiTabs-root css-hx75j7-MuiTabs-root"
>
<div
class="MuiTabs-scroller MuiTabs-fixed css-s2t35c-MuiTabs-scroller"
style="overflow: hidden; margin-bottom: 0px;"
>
<div
aria-label="Område i karrierearbeidsområdet"
class="MuiTabs-list MuiTabs-flexContainer css-hzcega-MuiTabs-list"
role="tablist"
>
<button
aria-selected="false"
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary css-mobu7h-MuiButtonBase-root-MuiTab-root"
role="tab"
tabindex="-1"
type="button"
>
Oversikt
</button>
<button
aria-selected="true"
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary Mui-selected css-mobu7h-MuiButtonBase-root-MuiTab-root"
role="tab"
tabindex="0"
type="button"
>
Karriereprofil
</button>
<button
aria-selected="false"
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary css-mobu7h-MuiButtonBase-root-MuiTab-root"
role="tab"
tabindex="-1"
type="button"
>
Kunnskapsbank
</button>
<button
aria-selected="false"
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary css-mobu7h-MuiButtonBase-root-MuiTab-root"
role="tab"
tabindex="-1"
type="button"
>
Importgjennomgang
</button>
</div>
<span
class="MuiTabs-indicator css-1qltlow-MuiTabs-indicator"
style="left: 0px; width: 0px;"
/>
</div>
</div>
</nav>
<div
class="MuiBox-root css-1ewaiuv"
id="career-profile-editor"
>
<input
accept=".pdf,.docx,.txt,.md,image/png,image/jpeg,image/webp,application/pdf,application/vnd.openxmlformats-officedocument.wordprocessingml.document,text/plain,text/markdown"
style="display: none;"
type="file"
/>...
249 | await act(async () => window.dispatchEvent(new StorageEvent("storage", { key: "uiLanguage", newValue: "nb" })));
250 | await act(async () => held.resolve(source));
> 251 | expect(screen.getByRole("alert")).toHaveTextContent(nb.profileUpdated);
| ^
252 | expect(screen.queryByText(en.profileUpdated)).not.toBeInTheDocument();
253 | expect(readCount("/career/profile/versions")).toBe(2);
254 | });
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
at getElementError (node_modules/@testing-library/dom/dist/query-helpers.js:20:35)
at getMultipleElementsFoundError (node_modules/@testing-library/dom/dist/query-helpers.js:23:10)
at node_modules/@testing-library/dom/dist/query-helpers.js:55:13
at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
at Object.getByRole (src/career-import-review.test.tsx:251:17)
● a restore cannot continue after its session is invalidated
expect(element).not.toBeInTheDocument()
expected document not to contain element, found <div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorSuccess MuiAlert-standardSuccess MuiAlert-standard css-yvlv7q-MuiPaper-root-MuiAlert-root" role="alert" style="--Paper-shadow: none;"><div class="MuiAlert-icon css-1wrdnka-MuiAlert-icon"><svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1ckov0h-MuiSvgIcon-root" data-testid="SuccessOutlinedIcon" focusable="false" viewBox="0 0 24 24"><path d="M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" /></svg></div><div class="MuiAlert-message css-zioonp-MuiAlert-message">Your CV details are ready to review.</div><div class="MuiAlert-action css-rgppqo-MuiAlert-action"><button class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textInherit MuiButton-sizeSmall MuiButton-textSizeSmall MuiButton-colorInherit MuiButton-root MuiButton-text MuiButton-textInherit MuiButton-sizeSmall MuiButton-textSizeSmall MuiButton-colorInherit css-j2tw6f-MuiButtonBase-root-MuiButton-root" tabindex="0" type="button">Review details</button></div></div> instead
274 | await act(async () => held.resolve(source));
275 | expect(readCount("/career/profile/versions")).toBe(1);
> 276 | expect(screen.queryByRole("alert")).not.toBeInTheDocument();
| ^
277 | });
278 |
279 | test.each(["resolve", "reject"] as const)("a restore history refresh ignores a late %s after unmount", async outcome => {
at toBeInTheDocument (src/career-import-review.test.tsx:276:43)
● a restore cannot continue after its session is changed
expect(element).not.toBeInTheDocument()
expected document not to contain element, found <div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorSuccess MuiAlert-standardSuccess MuiAlert-standard css-yvlv7q-MuiPaper-root-MuiAlert-root" role="alert" style="--Paper-shadow: none;"><div class="MuiAlert-icon css-1wrdnka-MuiAlert-icon"><svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1ckov0h-MuiSvgIcon-root" data-testid="SuccessOutlinedIcon" focusable="false" viewBox="0 0 24 24"><path d="M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" /></svg></div><div class="MuiAlert-message css-zioonp-MuiAlert-message">Your CV details are ready to review.</div><div class="MuiAlert-action css-rgppqo-MuiAlert-action"><button class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textInherit MuiButton-sizeSmall MuiButton-textSizeSmall MuiButton-colorInherit MuiButton-root MuiButton-text MuiButton-textInherit MuiButton-sizeSmall MuiButton-textSizeSmall MuiButton-colorInherit css-j2tw6f-MuiButtonBase-root-MuiButton-root" tabindex="0" type="button">Review details</button></div></div> instead
274 | await act(async () => held.resolve(source));
275 | expect(readCount("/career/profile/versions")).toBe(1);
> 276 | expect(screen.queryByRole("alert")).not.toBeInTheDocument();
| ^
277 | });
278 |
279 | test.each(["resolve", "reject"] as const)("a restore history refresh ignores a late %s after unmount", async outcome => {
at toBeInTheDocument (src/career-import-review.test.tsx:276:43)
Test Suites: 1 failed, 1 total
Tests: 3 failed, 20 passed, 23 total
Snapshots: 0 total
Time: 36.901 s
Ran all test suites within paths "src/career-import-review.test.tsx".
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\career-restore-lifetime\green.json
@@ -0,0 +1,18 @@
Re-extracting code files in . (no LLM needed)...
[graphify watch] 476 file(s) not classified (no supported extension or shebang), skipped: .dockerignore, .env.example, .git, .gitattributes, .gitignore, 1440-en-dark-converted.gz (+470 more)
AST cache: 2486/2930 files served from cache (84%); 444 to extract
AST extraction: 100/444 uncached files (22%) [16 workers]
AST extraction: 200/444 uncached files (45%) [16 workers]
AST extraction: 300/444 uncached files (67%) [16 workers]
AST extraction: 400/444 uncached files (90%) [16 workers]
AST extraction: 444/444 uncached files (100%) [16 workers]
warning: 8 .sql file(s) contributed nothing to the graph because a dependency is missing: tree_sitter_sql not installed. Install it with: pip install "graphifyy[sql]" (#1745)
warning: 144 code file(s) yielded no symbols (0.14 MB) — a data file, or source this extractor models no symbols for: JobTrackerApi.Tests/PdfBrowserStub/Program.cs, JobTrackerApi/Program.cs, JobTrackerApi/Properties/AssemblyInfo.cs, browser-extension/tests/capture-url.test.mjs, docs/audits/2026-09-07/validation/evidence/b05-excel-probe.ps1 (+139 more)
[graphify watch] community set changed since labeling (0 saved labels, 1196 communities now; renamed 97 community(ies) by their hub). Run `graphify label` to refresh names with the LLM.
Graph has 19237 nodes (above 5000 limit). Building aggregated community view...
graph.html written (aggregated: 1196 community nodes, 3036 cross-community edges)
Tip: run with --obsidian for full node-level detail.
[graphify watch] Rebuilt: 19237 nodes, 47299 edges, 1196 communities
[graphify watch] graph.json, graph.html and GRAPH_REPORT.md updated in graphify-out
Code graph updated. For doc/paper/image changes run /graphify --update in your AI assistant.
Tip: set GEMINI_API_KEY or GOOGLE_API_KEY to use Gemini for semantic extraction.
@@ -0,0 +1,5 @@
src/correspondence-gmail-import.test.tsx(407,106): error TS2769: No overload matches this call.
Overload 1 of 2, '(role: ByRoleMatcher, options?: ByRoleOptions | undefined): HTMLElement[]', gave the following error.
Object literal may only specify known properties, and 'exact' does not exist in type 'ByRoleOptions'.
Overload 2 of 2, '(role: ByRoleMatcher, options?: ByRoleOptions | undefined): HTMLElement[]', gave the following error.
Object literal may only specify known properties, and 'exact' does not exist in type 'ByRoleOptions'.
@@ -0,0 +1,19 @@
{
"exitCode": 1,
"restoredFixedSource": true,
"baselineSha256": "ee42d5a76177764e29055e56620b3093b3da1ef0df0fd303d70de800d311428e",
"fixedSha256": "559d7164ab8f3a79fe939434ed28118a6e81c3e5366e7d32e4c5424b5b78f2b5",
"command": [
"rtk",
"npm",
"test",
"--",
"--runInBand",
"--no-cache",
"--runTestsByPath",
"src/career-import-review.test.tsx",
"--testNamePattern=pending history restore|unmounted restore|restore cannot continue|restore history refresh",
"--json",
"--outputFile=E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\career-restore-lifetime\\red-corrected.json"
]
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,221 @@
> jest --runInBand --no-cache --runTestsByPath src/career-import-review.test.tsx --testNamePattern=pending history restore|unmounted restore|restore cannot continue|restore history refresh --json --outputFile=E:\Storage\Projects\Active\temp docs\jobjakt-local-build\career-restore-lifetime\red-corrected.json
FAIL src/career-import-review.test.tsx (12.684 s)
● a pending history restore reports success in the current language
TestingLibraryElementError: Unable to find an element with the text: Profil oppdatert.. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
<div>
<div
class="MuiBox-root css-1ywa727"
>
<nav
aria-label="Område i karrierearbeidsområdet"
class="MuiBox-root css-15ae35w"
>
<div
class="MuiFormControl-root MuiFormControl-fullWidth css-15nws98-MuiFormControl-root"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiFormLabel-filled MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined css-fluw5i-MuiFormLabel-root-MuiInputLabel-root"
data-shrink="true"
id="career-workspace-section-label"
>
Område i karrierearbeidsområdet
</label>
<div
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-sizeSmall MuiSelect-root css-1n9wzir-MuiInputBase-root-MuiOutlinedInput-root-MuiSelect-root"
>
<div
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="career-workspace-section-label"
class="MuiSelect-select MuiSelect-outlined MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall css-19marfc-MuiNativeSelect-root-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input"
role="combobox"
tabindex="0"
>
Karriereprofil
</div>
<input
aria-hidden="true"
aria-invalid="false"
class="MuiSelect-nativeInput css-j0riat-MuiSelect-nativeInput"
tabindex="-1"
value="profile"
/>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiSelect-icon MuiSelect-iconOutlined css-1rfqz7c-MuiSvgIcon-root-MuiNativeSelect-root-MuiSelect-icon"
data-testid="ArrowDropDownIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M7 10l5 5 5-5z"
/>
</svg>
<fieldset
aria-hidden="true"
class="MuiOutlinedInput-notchedOutline css-18p5xg2-MuiNotchedOutlined-root-MuiOutlinedInput-notchedOutline"
>
<legend
class="css-ex8a5f-MuiNotchedOutlined-root"
>
<span>
Område i karrierearbeidsområdet
</span>
</legend>
</fieldset>
</div>
</div>
<div
class="MuiTabs-root css-hx75j7-MuiTabs-root"
>
<div
class="MuiTabs-scroller MuiTabs-fixed css-s2t35c-MuiTabs-scroller"
style="overflow: hidden; margin-bottom: 0px;"
>
<div
aria-label="Område i karrierearbeidsområdet"
class="MuiTabs-list MuiTabs-flexContainer css-hzcega-MuiTabs-list"
role="tablist"
>
<button
aria-selected="false"
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary css-mobu7h-MuiButtonBase-root-MuiTab-root"
role="tab"
tabindex="-1"
type="button"
>
Oversikt
</button>
<button
aria-selected="true"
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary Mui-selected css-mobu7h-MuiButtonBase-root-MuiTab-root"
role="tab"
tabindex="0"
type="button"
>
Karriereprofil
</button>
<button
aria-selected="false"
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary css-mobu7h-MuiButtonBase-root-MuiTab-root"
role="tab"
tabindex="-1"
type="button"
>
Kunnskapsbank
</button>
<button
aria-selected="false"
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary css-mobu7h-MuiButtonBase-root-MuiTab-root"
role="tab"
tabindex="-1"
type="button"
>
Importgjennomgang
</button>
</div>
<span
class="MuiTabs-indicator css-1qltlow-MuiTabs-indicator"
style="left: 0px; width: 0px;"
/>
</div>
</div>
</nav>
<div
class="MuiBox-root css-1ewaiuv"
id="career-profile-editor"
>
<input
accept=".pdf,.docx,.txt,.md,image/png,image/jpeg,image/webp,application/pdf,application/vnd.openxmlformats-officedocument.wordprocessingml.document,text/plain,text/markdown"
style="display: none;"
type="file"
/>...
249 | await act(async () => window.dispatchEvent(new StorageEvent("storage", { key: "uiLanguage", newValue: "nb" })));
250 | await act(async () => held.resolve(source));
> 251 | expect(screen.getByText(nb.profileUpdated)).toBeVisible();
| ^
252 | expect(screen.queryByText(en.profileUpdated)).not.toBeInTheDocument();
253 | expect(readCount("/career/profile/versions")).toBe(2);
254 | });
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
at Object.getByText (src/career-import-review.test.tsx:251:17)
● an unmounted restore ignores a late POST resolve with a surviving toast provider
expect(received).toBe(expected) // Object.is equality
Expected: 1
Received: 2
261 | view.rerender(<ToastProvider><I18nProvider><div>Other page</div></I18nProvider></ToastProvider>);
262 | await act(async () => outcome === "resolve" ? held.resolve(source) : held.reject(new Error("Late restore failure")));
> 263 | expect(readCount("/career/profile/versions")).toBe(1);
| ^
264 | expect(screen.queryByRole("alert")).not.toBeInTheDocument();
265 | });
266 |
at toBe (src/career-import-review.test.tsx:263:49)
● an unmounted restore ignores a late POST reject with a surviving toast provider
expect(element).not.toBeInTheDocument()
expected document not to contain element, found <div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorError MuiAlert-filledError MuiAlert-filled css-5pc767-MuiPaper-root-MuiAlert-root" direction="up" role="alert" style="--Paper-shadow: none; opacity: 1; transform: scale(1, 1); transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"><div class="MuiAlert-icon css-1wrdnka-MuiAlert-icon"><svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1ckov0h-MuiSvgIcon-root" data-testid="ErrorOutlineIcon" focusable="false" viewBox="0 0 24 24"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" /></svg></div><div class="MuiAlert-message css-zioonp-MuiAlert-message">Late restore failure</div><div class="MuiAlert-action css-rgppqo-MuiAlert-action"><button aria-label="Close" class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeSmall css-38cjb0-MuiButtonBase-root-MuiIconButton-root" tabindex="0" title="Close" type="button"><svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-120dh41-MuiSvgIcon-root" data-testid="CloseIcon" focusable="false" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" /></svg></button></div></div> instead
262 | await act(async () => outcome === "resolve" ? held.resolve(source) : held.reject(new Error("Late restore failure")));
263 | expect(readCount("/career/profile/versions")).toBe(1);
> 264 | expect(screen.queryByRole("alert")).not.toBeInTheDocument();
| ^
265 | });
266 |
267 | test.each(["invalidated", "changed"] as const)("a restore cannot continue after its session is %s", async outcome => {
at toBeInTheDocument (src/career-import-review.test.tsx:264:43)
● a restore cannot continue after its session is invalidated
expect(received).toBe(expected) // Object.is equality
Expected: 1
Received: 2
273 | else jest.mocked(getSessionContext).mockReturnValue("another-session");
274 | await act(async () => held.resolve(source));
> 275 | expect(readCount("/career/profile/versions")).toBe(1);
| ^
276 | expect(screen.queryByText(en.profileUpdated)).not.toBeInTheDocument();
277 | expect(screen.queryByText(en.careerRestoreFailed)).not.toBeInTheDocument();
278 | });
at toBe (src/career-import-review.test.tsx:275:49)
● a restore cannot continue after its session is changed
expect(received).toBe(expected) // Object.is equality
Expected: 1
Received: 2
273 | else jest.mocked(getSessionContext).mockReturnValue("another-session");
274 | await act(async () => held.resolve(source));
> 275 | expect(readCount("/career/profile/versions")).toBe(1);
| ^
276 | expect(screen.queryByText(en.profileUpdated)).not.toBeInTheDocument();
277 | expect(screen.queryByText(en.careerRestoreFailed)).not.toBeInTheDocument();
278 | });
at toBe (src/career-import-review.test.tsx:275:49)
● a restore history refresh ignores a late resolve after unmount
expect(element).not.toBeInTheDocument()
expected document not to contain element, found <div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorSuccess MuiAlert-filledSuccess MuiAlert-filled css-13d3i5y-MuiPaper-root-MuiAlert-root" direction="up" role="alert" style="--Paper-shadow: none; opacity: 1; transform: scale(1, 1); transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"><div class="MuiAlert-icon css-1wrdnka-MuiAlert-icon"><svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1ckov0h-MuiSvgIcon-root" data-testid="SuccessOutlinedIcon" focusable="false" viewBox="0 0 24 24"><path d="M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" /></svg></div><div class="MuiAlert-message css-zioonp-MuiAlert-message">Profile updated.</div><div class="MuiAlert-action css-rgppqo-MuiAlert-action"><button aria-label="Close" class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeSmall css-38cjb0-MuiButtonBase-root-MuiIconButton-root" tabindex="0" title="Close" type="button"><svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-120dh41-MuiSvgIcon-root" data-testid="CloseIcon" focusable="false" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" /></svg></button></div></div> instead
288 | view.rerender(<ToastProvider><I18nProvider><div>Other page</div></I18nProvider></ToastProvider>);
289 | await act(async () => outcome === "resolve" ? history.resolve({ data: versions }) : history.reject(new Error("Late history failure")));
> 290 | expect(screen.queryByRole("alert")).not.toBeInTheDocument();
| ^
291 | });
292 |
293 | test("an operation cancellation is guarded while pending and leaves an unsaved source draft intact", async () => {
at toBeInTheDocument (src/career-import-review.test.tsx:290:43)
● a restore history refresh ignores a late reject after unmount
expect(element).not.toBeInTheDocument()
expected document not to contain element, found <div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorSuccess MuiAlert-filledSuccess MuiAlert-filled css-13d3i5y-MuiPaper-root-MuiAlert-root" direction="up" role="alert" style="--Paper-shadow: none; opacity: 1; transform: scale(1, 1); transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"><div class="MuiAlert-icon css-1wrdnka-MuiAlert-icon"><svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1ckov0h-MuiSvgIcon-root" data-testid="SuccessOutlinedIcon" focusable="false" viewBox="0 0 24 24"><path d="M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" /></svg></div><div class="MuiAlert-message css-zioonp-MuiAlert-message">Profile updated.</div><div class="MuiAlert-action css-rgppqo-MuiAlert-action"><button aria-label="Close" class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeSmall css-38cjb0-MuiButtonBase-root-MuiIconButton-root" tabindex="0" title="Close" type="button"><svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-120dh41-MuiSvgIcon-root" data-testid="CloseIcon" focusable="false" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" /></svg></button></div></div> instead
288 | view.rerender(<ToastProvider><I18nProvider><div>Other page</div></I18nProvider></ToastProvider>);
289 | await act(async () => outcome === "resolve" ? history.resolve({ data: versions }) : history.reject(new Error("Late history failure")));
> 290 | expect(screen.queryByRole("alert")).not.toBeInTheDocument();
| ^
291 | });
292 |
293 | test("an operation cancellation is guarded while pending and leaves an unsaved source draft intact", async () => {
at toBeInTheDocument (src/career-import-review.test.tsx:290:43)
Test Suites: 1 failed, 1 total
Tests: 7 failed, 16 skipped, 23 total
Snapshots: 0 total
Time: 13.635 s
Ran all test suites within paths "src/career-import-review.test.tsx".
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\career-restore-lifetime\red-corrected.json
@@ -0,0 +1,35 @@
{
"reports": {
"red-corrected": {
"numFailedTestSuites": 1,
"numFailedTests": 7,
"numPassedTestSuites": 0,
"numPassedTests": 0,
"numPendingTests": 16,
"numTotalTests": 23,
"success": false
},
"green": {
"numFailedTestSuites": 1,
"numFailedTests": 3,
"numPassedTestSuites": 0,
"numPassedTests": 20,
"numPendingTests": 0,
"numTotalTests": 23,
"success": false
},
"affected": {
"numFailedTestSuites": 0,
"numFailedTests": 0,
"numPassedTestSuites": 3,
"numPassedTests": 56,
"numPendingTests": 0,
"numTotalTests": 56,
"success": true
}
},
"sha256": {
"job-tracker-ui/src/views/CareerProfilePage.tsx": "559d7164ab8f3a79fe939434ed28118a6e81c3e5366e7d32e4c5424b5b78f2b5",
"job-tracker-ui/src/career-import-review.test.tsx": "e09a1ad5e8755c75a4abcd860268cceecbd07bdd093046880bea21441a37e9e7"
}
}
@@ -0,0 +1,82 @@
{
"sourceCommit": "2043f99259dd8b5b34206d7f7724a799bfe49c9a",
"sourcesLfSha256": {
"job-tracker-ui/src/components/Correspondence.tsx": "6d2c1475aeca5d4522ce0630ad7574d5aa6140ecc071840ce61a26904e384381",
"job-tracker-ui/src/correspondence-gmail-import.test.tsx": "eabdd143f9d6986208f8382e026e0233a51913a6de3a11a94a870e0efabd56a5",
"job-tracker-ui/src/types.ts": "bae01df8de079b16546fca1c738f6d49564befcf62ae0449b039faf61bff1158"
},
"evidenceLfSha256": {
"gmail-import-red.txt": "87724f995e1edd3092f2ea21d125263e5e58d95a2b3dfc44600304550fb3dc99",
"gmail-import-green.txt": "46dcf85ba71d6b67224fb917f847010847182e1b38398ea381f8af5e6ec9ca48",
"gmail-import-results.json": "1ab88c1c936f151a2451c005cbee1af18f1891de73e74dc8f496fb602c937e00",
"gmail-import-confirmed.txt": "e60852d7af5b31245020d5c308919535aff6cc61e1ff1a17f8cdb9ac75152b77",
"gmail-import-confirmed.json": "74d41b27e064a964458ddb341b6a6633fc429280cea23837154214fd9f3d5501",
"mail-career-types.txt": "668d030a70c5e0ba2cfdf7691b33adb8a2388e0a6c6f1663b11c696594f186f9",
"mail-career-types-final.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"mail-career-lint.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"mail-career-lint-final.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"mail-career-graph.txt": "d63fcb6d0c800e26195b173cef904a33fb4e85b0f9a859a2bcd54f5b141bca16"
},
"nativeReceipts": [
{
"path": "gmail-import-red.txt",
"gzipPath": "gmail-import-red.txt.gz",
"rawSha256": "7f730ca3010023ddedf80a4c403de0c468de729cbff3bbf8017dbcfeba4fd15f",
"gzipSha256": "6b906f8a77627ad024cd59b4301f229021242c8a43ca6eaad9a98f554e9f14fe"
},
{
"path": "gmail-import-green.txt",
"gzipPath": "gmail-import-green.txt.gz",
"rawSha256": "6a09942aa71ca889a4d6185ade98046bdcb2884c3012b0f832f5780f41e6b3f5",
"gzipSha256": "a8c8f5df23e3090623a391111ecadf9a2877fcc0055bfe2b59663752288e2cb5"
},
{
"path": "gmail-import-results.json",
"gzipPath": "gmail-import-results.json.gz",
"rawSha256": "1ab88c1c936f151a2451c005cbee1af18f1891de73e74dc8f496fb602c937e00",
"gzipSha256": "6ef7492e632549351a1ad4211523dec318af46a28a3e4aaa07bd82694a67ff25"
},
{
"path": "gmail-import-confirmed.txt",
"gzipPath": "gmail-import-confirmed.txt.gz",
"rawSha256": "3c67b711e971cc6e86e200a0ee7209dd92d13c4823cfdfd5ffbb8e2d1d292d24",
"gzipSha256": "403e84abd0f5fc410cdff7b51057d55917aeabd99d38f3abedae2d724d56f7ad"
},
{
"path": "gmail-import-confirmed.json",
"gzipPath": "gmail-import-confirmed.json.gz",
"rawSha256": "74d41b27e064a964458ddb341b6a6633fc429280cea23837154214fd9f3d5501",
"gzipSha256": "5d13877b14c8dd59b119ef997032e349564fd6a1eb6e55716e00f2fd01343601"
},
{
"path": "mail-career-types.txt",
"gzipPath": "mail-career-types.txt.gz",
"rawSha256": "a7b6cec2440a957fbf01b8231c7ad78a187f1e9fa2eb1cebdc2afb2260c6f4ca",
"gzipSha256": "b7ab690ac4054e27ed789f1ffa862da48719c0bf20fc8e61001cc49b5e75a8ed"
},
{
"path": "mail-career-types-final.txt",
"gzipPath": "mail-career-types-final.txt.gz",
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e"
},
{
"path": "mail-career-lint.txt",
"gzipPath": "mail-career-lint.txt.gz",
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e"
},
{
"path": "mail-career-lint-final.txt",
"gzipPath": "mail-career-lint-final.txt.gz",
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e"
},
{
"path": "mail-career-graph.txt",
"gzipPath": "mail-career-graph.txt.gz",
"rawSha256": "597457056538d1fc8fe94db2b876be1e0b1a4a79ff66284679ace278988b2b5d",
"gzipSha256": "183e31fb4e7c4d210485000dd6359cde6c61b2447c6107b92ac7627d768afb0e"
}
]
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,6 @@
Test Suites: 1 passed, 1 total
Tests: 26 passed, 26 total
Snapshots: 0 total
Time: 12.817 s
Ran all test suites matching src/correspondence-gmail-import.test.tsx.
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\gmail-import-confirmed.json
@@ -0,0 +1,7 @@
Test Suites: 5 passed, 5 total
Tests: 90 passed, 90 total
Snapshots: 0 total
Time: 47.647 s
Ran all test suites matching src/correspondence-gmail-import.test.tsx|src/correspondence-recovery.test.tsx|src/correspondence-inbox-page.test.tsx|src/end-to-end-trust-loop.test.tsx|src/correspondence-search-context.test.ts.
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\gmail-import-results.json
@@ -0,0 +1,364 @@
FAIL src/correspondence-gmail-import.test.tsx (13.289 s)
● correspondence Gmail import › Gmail import completion lifetime › message import success after leaving cannot read or notify another workflow
expect(element).not.toBeInTheDocument()
expected document not to contain element, found <div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorSuccess MuiAlert-filledSuccess MuiAlert-filled css-13d3i5y-MuiPaper-root-MuiAlert-root" direction="up" role="alert" style="--Paper-shadow: none; opacity: 1; transform: scale(1, 1); transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"><div class="MuiAlert-icon css-1wrdnka-MuiAlert-icon"><svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1ckov0h-MuiSvgIcon-root" data-testid="SuccessOutlinedIcon" focusable="false" viewBox="0 0 24 24"><path d="M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" /></svg></div><div class="MuiAlert-message css-zioonp-MuiAlert-message">Import email</div><div class="MuiAlert-action css-rgppqo-MuiAlert-action"><button aria-label="Close" class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeSmall css-38cjb0-MuiButtonBase-root-MuiIconButton-root" tabindex="0" title="Close" type="button"><svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-120dh41-MuiSvgIcon-root" data-testid="CloseIcon" focusable="false" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" /></svg></button></div></div> instead
427 | });
428 | expect(mockedApi.get).toHaveBeenCalledTimes(reads);
> 429 | expect(screen.queryByRole('alert')).not.toBeInTheDocument();
| ^
430 | });
431 |
432 | test.each(['message', 'thread'] as const)('%s import failure uses the current language', async kind => {
at toBeInTheDocument (src/correspondence-gmail-import.test.tsx:429:47)
● correspondence Gmail import › Gmail import completion lifetime › message import failure after leaving cannot read or notify another workflow
expect(element).not.toBeInTheDocument()
expected document not to contain element, found <div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorError MuiAlert-filledError MuiAlert-filled css-5pc767-MuiPaper-root-MuiAlert-root" direction="up" role="alert" style="--Paper-shadow: none; opacity: 1; transform: scale(1, 1); transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"><div class="MuiAlert-icon css-1wrdnka-MuiAlert-icon"><svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1ckov0h-MuiSvgIcon-root" data-testid="ErrorOutlineIcon" focusable="false" viewBox="0 0 24 24"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" /></svg></div><div class="MuiAlert-message css-zioonp-MuiAlert-message">Failed to import Gmail message.</div><div class="MuiAlert-action css-rgppqo-MuiAlert-action"><button aria-label="Close" class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeSmall css-38cjb0-MuiButtonBase-root-MuiIconButton-root" tabindex="0" title="Close" type="button"><svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-120dh41-MuiSvgIcon-root" data-testid="CloseIcon" focusable="false" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" /></svg></button></div></div> instead
427 | });
428 | expect(mockedApi.get).toHaveBeenCalledTimes(reads);
> 429 | expect(screen.queryByRole('alert')).not.toBeInTheDocument();
| ^
430 | });
431 |
432 | test.each(['message', 'thread'] as const)('%s import failure uses the current language', async kind => {
at toBeInTheDocument (src/correspondence-gmail-import.test.tsx:429:47)
● correspondence Gmail import › Gmail import completion lifetime › thread import success after leaving cannot read or notify another workflow
expect(element).not.toBeInTheDocument()
expected document not to contain element, found <div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorSuccess MuiAlert-filledSuccess MuiAlert-filled css-13d3i5y-MuiPaper-root-MuiAlert-root" direction="up" role="alert" style="--Paper-shadow: none; opacity: 1; transform: scale(1, 1); transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"><div class="MuiAlert-icon css-1wrdnka-MuiAlert-icon"><svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1ckov0h-MuiSvgIcon-root" data-testid="SuccessOutlinedIcon" focusable="false" viewBox="0 0 24 24"><path d="M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z" /></svg></div><div class="MuiAlert-message css-zioonp-MuiAlert-message">Imported 1 messages.</div><div class="MuiAlert-action css-rgppqo-MuiAlert-action"><button aria-label="Close" class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeSmall css-38cjb0-MuiButtonBase-root-MuiIconButton-root" tabindex="0" title="Close" type="button"><svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-120dh41-MuiSvgIcon-root" data-testid="CloseIcon" focusable="false" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" /></svg></button></div></div> instead
427 | });
428 | expect(mockedApi.get).toHaveBeenCalledTimes(reads);
> 429 | expect(screen.queryByRole('alert')).not.toBeInTheDocument();
| ^
430 | });
431 |
432 | test.each(['message', 'thread'] as const)('%s import failure uses the current language', async kind => {
at toBeInTheDocument (src/correspondence-gmail-import.test.tsx:429:47)
● correspondence Gmail import › Gmail import completion lifetime › thread import failure after leaving cannot read or notify another workflow
expect(element).not.toBeInTheDocument()
expected document not to contain element, found <div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorError MuiAlert-filledError MuiAlert-filled css-5pc767-MuiPaper-root-MuiAlert-root" direction="up" role="alert" style="--Paper-shadow: none; opacity: 1; transform: scale(1, 1); transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"><div class="MuiAlert-icon css-1wrdnka-MuiAlert-icon"><svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1ckov0h-MuiSvgIcon-root" data-testid="ErrorOutlineIcon" focusable="false" viewBox="0 0 24 24"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" /></svg></div><div class="MuiAlert-message css-zioonp-MuiAlert-message">Failed to import Gmail thread.</div><div class="MuiAlert-action css-rgppqo-MuiAlert-action"><button aria-label="Close" class="MuiButtonBase-root MuiIconButton-root MuiIconButton-colorInherit MuiIconButton-sizeSmall css-38cjb0-MuiButtonBase-root-MuiIconButton-root" tabindex="0" title="Close" type="button"><svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-120dh41-MuiSvgIcon-root" data-testid="CloseIcon" focusable="false" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" /></svg></button></div></div> instead
427 | });
428 | expect(mockedApi.get).toHaveBeenCalledTimes(reads);
> 429 | expect(screen.queryByRole('alert')).not.toBeInTheDocument();
| ^
430 | });
431 |
432 | test.each(['message', 'thread'] as const)('%s import failure uses the current language', async kind => {
at toBeInTheDocument (src/correspondence-gmail-import.test.tsx:429:47)
● correspondence Gmail import › Gmail import completion lifetime › message import failure uses the current language
Unable to find an element with the text: Kunne ikke importere Gmail-melding.. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body
style="padding-right: 1024px; overflow: hidden;"
>
<div
aria-hidden="true"
>
<div
class="MuiBox-root css-0"
>
<span
aria-atomic="true"
aria-live="polite"
class="MuiBox-root css-ty8jgw"
role="status"
>
Innhold lastet.
</span>
<div
class="MuiBox-root css-vbvbop"
>
<p
class="MuiTypography-root MuiTypography-body1 css-3dk7f-MuiTypography-root"
>
Ingen meldinger ennå.
</p>
</div>
<div
class="MuiBox-root css-lqvd6v"
>
<span
class="MuiTypography-root MuiTypography-overline css-12l99mj-MuiTypography-root"
>
Kontinuitet i tilknyttede Gmail-tråder
</span>
<p
class="MuiTypography-root MuiTypography-body2 css-sn1rsr-MuiTypography-root"
>
Gmail-oppdateringen sjekker bare tråder som allerede er knyttet til denne jobben, slik at ny korrespondanse kan vises her uten å importere hele tråden på nytt.
</p>
<div
class="MuiBox-root css-1mcghfl"
>
<div
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorSuccess MuiChip-outlinedSuccess css-1ucuqrv-MuiChip-root"
>
<span
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
>
Gmail tilkoblet
</span>
</div>
<div
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"
>
<span
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
>
Ingen tilknyttede tråder ennå
</span>
</div>
<div
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorWarning MuiChip-outlinedWarning css-1jxpu38-MuiChip-root"
>
<span
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
>
Siste Gmail-synkronisering (list-messages) mislyktes
</span>
</div>
</div>
<p
class="MuiTypography-root MuiTypography-body2 css-1d237mf-MuiTypography-root"
>
Siste problem med Gmail-synkronisering: Token refresh failed
</p>
</div>
<div
class="MuiBox-root css-280wdd"
>
<div
class="MuiToggleButtonGroup-root MuiToggleButtonGroup-horizontal css-1qb8o-MuiToggleButtonGroup-root"
role="group"
>
<button
aria-pressed="true"
class="MuiButtonBase-root MuiToggleButtonGroup-grouped MuiToggleButtonGroup-groupedHorizontal MuiToggleButton-root Mui-selected MuiToggleButton-sizeSmall MuiToggleButton-standard MuiToggleButtonGroup-grouped MuiToggleButtonGroup-groupedHorizontal MuiToggleButtonGroup-firstButton css-uuq42u-MuiButtonBase-root-MuiToggleButton-root"
tabindex="0"
type="button"
value="Me"
>
Meg
</button>
<button
aria-pressed="false"
class="MuiButtonBase-root MuiToggleButtonGroup-grouped MuiToggleButtonGroup-groupedHorizontal MuiToggleButton-root MuiToggleButton-sizeSmall MuiToggleButton-standard MuiToggleButtonGroup-grouped MuiToggleButtonGroup-groupedHorizontal MuiToggleButtonGroup-lastButton css-uuq42u-MuiButtonBase-root-MuiToggleButton-root"
tabindex="0"
type="button"
value="Company"
>
Selskap
</button>
</div>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary css-74b9is-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
Importer e-post
</button>
<div
class="MuiFormControl-root MuiTextField-root css-9f1m7e-MuiFormControl-root-MuiTextField-root"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined css-10i8ezf-MuiFormLabel-root-MuiInputLabel-root"
data-shrink="false"
for="_r_2o_"
id="_r_2o_-label"
>
Loggfør notat eller melding
</label>
<div
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-multiline css-hk3xm4-MuiInputBase-root-MuiOutlinedInput-root"
>
<textarea
aria-describedby="_r_2o_-helper-text"
aria-invalid="false"
class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputMultiline css-1cuox7w-MuiInputBase-input-MuiOutlinedInput-input"
id="_r_2o_"
style="...
439 | await act(async () => { write.reject(new Error('synthetic import failure')); });
440 | const key = kind === 'thread' ? 'correspondenceImportThreadFailed' : 'correspondenceImportGmailFailed';
> 441 | expect(await screen.findByText(translations.nb[key])).toBeInTheDocument();
| ^
442 | expect(screen.queryByText(translations.en[key])).not.toBeInTheDocument();
443 | });
444 | });
at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:163:27)
at node_modules/@testing-library/dom/dist/query-helpers.js:86:33
at findByText (src/correspondence-gmail-import.test.tsx:441:27)
● correspondence Gmail import › Gmail import completion lifetime › thread import failure uses the current language
Unable to find an element with the text: Kunne ikke importere Gmail-tråd.. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body
style="padding-right: 1024px; overflow: hidden;"
>
<div
aria-hidden="true"
>
<div
class="MuiBox-root css-0"
>
<span
aria-atomic="true"
aria-live="polite"
class="MuiBox-root css-ty8jgw"
role="status"
>
Innhold lastet.
</span>
<div
class="MuiBox-root css-vbvbop"
>
<p
class="MuiTypography-root MuiTypography-body1 css-3dk7f-MuiTypography-root"
>
Ingen meldinger ennå.
</p>
</div>
<div
class="MuiBox-root css-lqvd6v"
>
<span
class="MuiTypography-root MuiTypography-overline css-12l99mj-MuiTypography-root"
>
Kontinuitet i tilknyttede Gmail-tråder
</span>
<p
class="MuiTypography-root MuiTypography-body2 css-sn1rsr-MuiTypography-root"
>
Gmail-oppdateringen sjekker bare tråder som allerede er knyttet til denne jobben, slik at ny korrespondanse kan vises her uten å importere hele tråden på nytt.
</p>
<div
class="MuiBox-root css-1mcghfl"
>
<div
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorSuccess MuiChip-outlinedSuccess css-1ucuqrv-MuiChip-root"
>
<span
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
>
Gmail tilkoblet
</span>
</div>
<div
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"
>
<span
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
>
Ingen tilknyttede tråder ennå
</span>
</div>
<div
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorWarning MuiChip-outlinedWarning css-1jxpu38-MuiChip-root"
>
<span
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
>
Siste Gmail-synkronisering (list-messages) mislyktes
</span>
</div>
</div>
<p
class="MuiTypography-root MuiTypography-body2 css-1d237mf-MuiTypography-root"
>
Siste problem med Gmail-synkronisering: Token refresh failed
</p>
</div>
<div
class="MuiBox-root css-280wdd"
>
<div
class="MuiToggleButtonGroup-root MuiToggleButtonGroup-horizontal css-1qb8o-MuiToggleButtonGroup-root"
role="group"
>
<button
aria-pressed="true"
class="MuiButtonBase-root MuiToggleButtonGroup-grouped MuiToggleButtonGroup-groupedHorizontal MuiToggleButton-root Mui-selected MuiToggleButton-sizeSmall MuiToggleButton-standard MuiToggleButtonGroup-grouped MuiToggleButtonGroup-groupedHorizontal MuiToggleButtonGroup-firstButton css-uuq42u-MuiButtonBase-root-MuiToggleButton-root"
tabindex="0"
type="button"
value="Me"
>
Meg
</button>
<button
aria-pressed="false"
class="MuiButtonBase-root MuiToggleButtonGroup-grouped MuiToggleButtonGroup-groupedHorizontal MuiToggleButton-root MuiToggleButton-sizeSmall MuiToggleButton-standard MuiToggleButtonGroup-grouped MuiToggleButtonGroup-groupedHorizontal MuiToggleButtonGroup-lastButton css-uuq42u-MuiButtonBase-root-MuiToggleButton-root"
tabindex="0"
type="button"
value="Company"
>
Selskap
</button>
</div>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary css-74b9is-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
Importer e-post
</button>
<div
class="MuiFormControl-root MuiTextField-root css-9f1m7e-MuiFormControl-root-MuiTextField-root"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined css-10i8ezf-MuiFormLabel-root-MuiInputLabel-root"
data-shrink="false"
for="_r_3d_"
id="_r_3d_-label"
>
Loggfør notat eller melding
</label>
<div
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-multiline css-hk3xm4-MuiInputBase-root-MuiOutlinedInput-root"
>
<textarea
aria-describedby="_r_3d_-helper-text"
aria-invalid="false"
class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputMultiline css-1cuox7w-MuiInputBase-input-MuiOutlinedInput-input"
id="_r_3d_"
style="...
439 | await act(async () => { write.reject(new Error('synthetic import failure')); });
440 | const key = kind === 'thread' ? 'correspondenceImportThreadFailed' : 'correspondenceImportGmailFailed';
> 441 | expect(await screen.findByText(translations.nb[key])).toBeInTheDocument();
| ^
442 | expect(screen.queryByText(translations.en[key])).not.toBeInTheDocument();
443 | });
444 | });
at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:163:27)
at node_modules/@testing-library/dom/dist/query-helpers.js:86:33
at findByText (src/correspondence-gmail-import.test.tsx:441:27)
Test Suites: 1 failed, 1 total
Tests: 6 failed, 20 skipped, 26 total
Snapshots: 0 total
Time: 14.307 s
Ran all test suites matching src/correspondence-gmail-import.test.tsx with tests matching "Gmail import completion lifetime".
File diff suppressed because one or more lines are too long
@@ -0,0 +1,18 @@
Re-extracting code files in . (no LLM needed)...
[graphify watch] 476 file(s) not classified (no supported extension or shebang), skipped: .dockerignore, .env.example, .git, .gitattributes, .gitignore, 1440-en-dark-converted.gz (+470 more)
AST cache: 2486/2930 files served from cache (84%); 444 to extract
AST extraction: 100/444 uncached files (22%) [16 workers]
AST extraction: 200/444 uncached files (45%) [16 workers]
AST extraction: 300/444 uncached files (67%) [16 workers]
AST extraction: 400/444 uncached files (90%) [16 workers]
AST extraction: 444/444 uncached files (100%) [16 workers]
warning: 8 .sql file(s) contributed nothing to the graph because a dependency is missing: tree_sitter_sql not installed. Install it with: pip install "graphifyy[sql]" (#1745)
warning: 144 code file(s) yielded no symbols (0.14 MB) — a data file, or source this extractor models no symbols for: JobTrackerApi.Tests/PdfBrowserStub/Program.cs, JobTrackerApi/Program.cs, JobTrackerApi/Properties/AssemblyInfo.cs, browser-extension/tests/capture-url.test.mjs, docs/audits/2026-09-07/validation/evidence/b05-excel-probe.ps1 (+139 more)
[graphify watch] community set changed since labeling (0 saved labels, 1196 communities now; renamed 97 community(ies) by their hub). Run `graphify label` to refresh names with the LLM.
Graph has 19237 nodes (above 5000 limit). Building aggregated community view...
graph.html written (aggregated: 1196 community nodes, 3036 cross-community edges)
Tip: run with --obsidian for full node-level detail.
[graphify watch] Rebuilt: 19237 nodes, 47299 edges, 1196 communities
[graphify watch] graph.json, graph.html and GRAPH_REPORT.md updated in graphify-out
Code graph updated. For doc/paper/image changes run /graphify --update in your AI assistant.
Tip: set GEMINI_API_KEY or GOOGLE_API_KEY to use Gemini for semantic extraction.
@@ -0,0 +1,5 @@
src/correspondence-gmail-import.test.tsx(407,106): error TS2769: No overload matches this call.
Overload 1 of 2, '(role: ByRoleMatcher, options?: ByRoleOptions | undefined): HTMLElement[]', gave the following error.
Object literal may only specify known properties, and 'exact' does not exist in type 'ByRoleOptions'.
Overload 2 of 2, '(role: ByRoleMatcher, options?: ByRoleOptions | undefined): HTMLElement[]', gave the following error.
Object literal may only specify known properties, and 'exact' does not exist in type 'ByRoleOptions'.