From 41be1ee73be726114b295fcc953e58499a49a335 Mon Sep 17 00:00:00 2001 From: cesnimda Date: Tue, 17 Nov 2026 20:44:46 +0100 Subject: [PATCH] docs: qualify interview AI context lifetime --- docs/ui-modernisation/INTERVIEW_AI_CONTEXT.md | 11 + .../interview-ai-context/SOURCE_RECEIPTS.json | 54 +++ .../interview-ai-context-final.json | 1 + .../interview-ai-context-final.json.gz | Bin 0 -> 2580 bytes .../interview-ai-context-final.txt | 13 + .../interview-ai-context-final.txt.gz | Bin 0 -> 468 bytes .../interview-ai-context-lint.txt | 0 .../interview-ai-context-lint.txt.gz | Bin 0 -> 20 bytes .../interview-ai-context-red.json | 1 + .../interview-ai-context-red.json.gz | Bin 0 -> 2856 bytes .../interview-ai-context-red.txt | 361 ++++++++++++++++++ .../interview-ai-context-red.txt.gz | Bin 0 -> 3077 bytes .../interview-ai-context-typecheck.txt | 0 .../interview-ai-context-typecheck.txt.gz | Bin 0 -> 20 bytes 14 files changed, 441 insertions(+) create mode 100644 docs/ui-modernisation/INTERVIEW_AI_CONTEXT.md create mode 100644 docs/ui-modernisation/evidence/interview-ai-context/SOURCE_RECEIPTS.json create mode 100644 docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-final.json create mode 100644 docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-final.json.gz create mode 100644 docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-final.txt create mode 100644 docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-final.txt.gz create mode 100644 docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-lint.txt create mode 100644 docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-lint.txt.gz create mode 100644 docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-red.json create mode 100644 docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-red.json.gz create mode 100644 docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-red.txt create mode 100644 docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-red.txt.gz create mode 100644 docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-typecheck.txt create mode 100644 docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-typecheck.txt.gz diff --git a/docs/ui-modernisation/INTERVIEW_AI_CONTEXT.md b/docs/ui-modernisation/INTERVIEW_AI_CONTEXT.md new file mode 100644 index 00000000..47c5cb4b --- /dev/null +++ b/docs/ui-modernisation/INTERVIEW_AI_CONTEXT.md @@ -0,0 +1,11 @@ +# Interview AI application-context lifetime + +Baseline A3 `348f4684`, isolated branch codex/interview-ai-context at E:/Storage/Projects/Active/temp docs/jobjakt-local-build/next-security-patch. Source `0f8b17a`. Uses the qualified locked Next16.4.6/follow-redirects1.16.3 installation. No live model. + +Three deterministic tests failed on original runtime source: a late generation displayed application7 text under application8; a completed suggestion remained available after changing application; a late accepted write called the former board loader again after navigation. Synthetic model/API responses only. The first two are also a risk of offering the wrong application's content for explicit application8 acceptance; no real misdirected write is claimed. + +The sole assistant caller now keys its instance by jobId, scoping instructions, generated-language draft, errors, busy state and suggestions to that application instance. Existing CV reader cleanup remains. A layout-lifetime ref invalidates on committed unmount; an already accepted write can finish at its original target, but cannot invoke the old board-refresh callback afterward. No write is redirected, automatically retried or newly authorised. Current-application explicit accept/reject and normal refresh still use existing paths. UI language and generated-content language remain independent within the current application. + +PASSED: final55 cases/two suites (51 InterviewPrep/four daily connected route cases), non-incremental TypeScript, scoped two-file lint and source diff. Three red failures are included in55;48 skipped cases in the focused red selection are not final-suite skips. An earlier successful run used a passive cleanup; final55 was rerun after using synchronous layout cleanup and is the qualification result. Existing generation, explicit acceptance, failed-add retry, answer drafts, CV retry and follow-up cases remain passing. [Receipts](evidence/interview-ai-context/SOURCE_RECEIPTS.json) bind final source and readable/native evidence. + +NOT RUN: fresh full frontend/backend regression, browser, native device/AT, actual model/semantic quality, provider, security/recovery/release qualification. Parent preparation/follow-up outstanding reads, broader job/session lifetime, AI live fallback copy and other components remain separate proof-required work; this is not whole-application isolation acceptance. Existing PDF metrics/visual acceptance not reopened. No catalogue/schema/renderer/ownership/revision/provider changes, orchestrator, main merge or production action. diff --git a/docs/ui-modernisation/evidence/interview-ai-context/SOURCE_RECEIPTS.json b/docs/ui-modernisation/evidence/interview-ai-context/SOURCE_RECEIPTS.json new file mode 100644 index 00000000..b0c68a53 --- /dev/null +++ b/docs/ui-modernisation/evidence/interview-ai-context/SOURCE_RECEIPTS.json @@ -0,0 +1,54 @@ +{ + "baseline": "348f468478ed2fae1b6a52ff970471ea8ce54dd4", + "sourceCommit": "0f8b17a", + "sourceSha256Lf": { + "job-tracker-ui/src/components/InterviewPrep.tsx": "e1c12d012d0488a8cee533015fff0944028578ca6ee37dd61fe70b60363a5803", + "job-tracker-ui/src/interview-prep.test.tsx": "dfb23ea0682377a7edfe6af147f1046c90841e102ef35a2f62c6c85754058c97", + "job-tracker-ui/package.json": "8b31e44c10b77b6d1e007af04c757c0577f12972ff3f6c7079bbc4c446a0d415", + "job-tracker-ui/package-lock.json": "ac90fbdc79e2e0f23d54748814b41a03f5dcaf8fd27291b3dcb73b2603a83e72" + }, + "nativeReceipts": [ + { + "path": "interview-ai-context-red.json", + "lfSha256": "cd1750809c6757251f0616417b85d206db07ce6b74c3a167bb6f3537c5a10c06", + "rawSha256": "cd1750809c6757251f0616417b85d206db07ce6b74c3a167bb6f3537c5a10c06", + "gzipSha256": "bf634ffd5cebf2f84df570c339cded3cd9e4fba247ccb71662572e9e1536c783", + "nativeEncoding": "utf-8-sig" + }, + { + "path": "interview-ai-context-red.txt", + "lfSha256": "a8673e1828567e5dcf97241f893c56178ba8cc09a90fbd9ed4a96e036527974c", + "rawSha256": "999d08952b06ea3dd0b9021fcc6cd8263e069e24404a18242209ca9c1bf98ad3", + "gzipSha256": "ab7bcecff278cce39f68ed4495cdbd0c827c31f5ccd515f5d12083d081ac4fd6", + "nativeEncoding": "utf-16" + }, + { + "path": "interview-ai-context-final.json", + "lfSha256": "3a24bbb550d5246f9dbb3fa28c6e5570c290263ba80714f6d1ffa7597a3496a8", + "rawSha256": "3a24bbb550d5246f9dbb3fa28c6e5570c290263ba80714f6d1ffa7597a3496a8", + "gzipSha256": "8b54fbfc88a68d714250d36a4cc41af046ecceb8f3b5cc51f06c858c0f307222", + "nativeEncoding": "utf-8-sig" + }, + { + "path": "interview-ai-context-final.txt", + "lfSha256": "a4b08a7b17361517ff242d01d15a2e31f974924adbab26ccf866efc45b886dd0", + "rawSha256": "89dc7976226bf01bbd22702c18ea96ea3e821161c2c6fcb65949e6c2b514b924", + "gzipSha256": "1905b14d96265a2a1fa2ab37f354e74e99569dd15401bd9dfac254fa8a969a14", + "nativeEncoding": "utf-16" + }, + { + "path": "interview-ai-context-typecheck.txt", + "lfSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e", + "nativeEncoding": "utf-8-sig" + }, + { + "path": "interview-ai-context-lint.txt", + "lfSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e", + "nativeEncoding": "utf-8-sig" + } + ] +} diff --git a/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-final.json b/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-final.json new file mode 100644 index 00000000..89b2e8cd --- /dev/null +++ b/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-final.json @@ -0,0 +1 @@ +{"numFailedTestSuites":0,"numFailedTests":0,"numPassedTestSuites":2,"numPassedTests":55,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":2,"numTotalTests":55,"openHandles":[],"snapshot":{"added":0,"didUpdate":false,"failure":false,"filesAdded":0,"filesRemoved":0,"filesRemovedList":[],"filesUnmatched":0,"filesUpdated":0,"matched":0,"total":0,"unchecked":0,"uncheckedKeysByFile":[],"unmatched":0,"updated":0},"startTime":1794944593320,"success":true,"testResults":[{"assertionResults":[{"ancestorTitles":[],"duration":1219,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending preparation deletion follows en without a preparation reload or answer loss","invocations":1,"location":null,"numPassingAsserts":11,"retryReasons":[],"startAt":1794944599060,"status":"passed","title":"pending preparation deletion follows en without a preparation reload or answer loss"},{"ancestorTitles":[],"duration":884,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending preparation deletion follows nb without a preparation reload or answer loss","invocations":1,"location":null,"numPassingAsserts":11,"retryReasons":[],"startAt":1794944600280,"status":"passed","title":"pending preparation deletion follows nb without a preparation reload or answer loss"},{"ancestorTitles":[],"duration":171,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"visible preparation read error follows en without another preparation request","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794944601164,"status":"passed","title":"visible preparation read error follows en without another preparation request"},{"ancestorTitles":[],"duration":172,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"visible preparation read error follows nb without another preparation request","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794944601335,"status":"passed","title":"visible preparation read error follows nb without another preparation request"},{"ancestorTitles":[],"duration":705,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"visible preparation mutation error follows en without clearing the failure through a reload","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794944601507,"status":"passed","title":"visible preparation mutation error follows en without clearing the failure through a reload"},{"ancestorTitles":[],"duration":714,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"visible preparation mutation error follows nb without clearing the failure through a reload","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794944602212,"status":"passed","title":"visible preparation mutation error follows nb without clearing the failure through a reload"},{"ancestorTitles":["en unknown interview categories"],"duration":172,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"en unknown interview categories preserves constructor as a category label","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794944602927,"status":"passed","title":"preserves constructor as a category label"},{"ancestorTitles":["en unknown interview categories"],"duration":163,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"en unknown interview categories preserves toString as a category label","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794944603099,"status":"passed","title":"preserves toString as a category label"},{"ancestorTitles":["en unknown interview categories"],"duration":175,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"en unknown interview categories preserves __proto__ as a category label","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794944603262,"status":"passed","title":"preserves __proto__ as a category label"},{"ancestorTitles":["nb unknown interview categories"],"duration":187,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"nb unknown interview categories preserves constructor as a category label","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794944603437,"status":"passed","title":"preserves constructor as a category label"},{"ancestorTitles":["nb unknown interview categories"],"duration":183,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"nb unknown interview categories preserves toString as a category label","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794944603624,"status":"passed","title":"preserves toString as a category label"},{"ancestorTitles":["nb unknown interview categories"],"duration":193,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"nb unknown interview categories preserves __proto__ as a category label","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794944603808,"status":"passed","title":"preserves __proto__ as a category label"},{"ancestorTitles":[],"duration":785,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"answer save failure follows en / pending and retains the draft for explicit retry","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794944604001,"status":"passed","title":"answer save failure follows en / pending and retains the draft for explicit retry"},{"ancestorTitles":[],"duration":741,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"answer save failure follows en / visible and retains the draft for explicit retry","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"startAt":1794944604786,"status":"passed","title":"answer save failure follows en / visible and retains the draft for explicit retry"},{"ancestorTitles":[],"duration":683,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"answer save failure follows nb / pending and retains the draft for explicit retry","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794944605527,"status":"passed","title":"answer save failure follows nb / pending and retains the draft for explicit retry"},{"ancestorTitles":[],"duration":825,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"answer save failure follows nb / visible and retains the draft for explicit retry","invocations":1,"location":null,"numPassingAsserts":10,"retryReasons":[],"startAt":1794944606210,"status":"passed","title":"answer save failure follows nb / visible and retains the draft for explicit retry"},{"ancestorTitles":[],"duration":208,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"localizes interview categories while preserving user-authored preparation","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794944607035,"status":"passed","title":"localizes interview categories while preserving user-authored preparation"},{"ancestorTitles":[],"duration":205,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prep renders grouped items with progress and marks AI-sourced ones","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794944607243,"status":"passed","title":"prep renders grouped items with progress and marks AI-sourced ones"},{"ancestorTitles":[],"duration":336,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"delete tooltip describes its wrapper while the disabled button keeps its item name","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794944607448,"status":"passed","title":"delete tooltip describes its wrapper while the disabled button keeps its item name"},{"ancestorTitles":[],"duration":948,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"failed manual preparation add retains en question and answers for explicit retry","invocations":1,"location":null,"numPassingAsserts":12,"retryReasons":[],"startAt":1794944607784,"status":"passed","title":"failed manual preparation add retains en question and answers for explicit retry"},{"ancestorTitles":[],"duration":915,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"failed manual preparation add retains nb question and answers for explicit retry","invocations":1,"location":null,"numPassingAsserts":12,"retryReasons":[],"startAt":1794944608732,"status":"passed","title":"failed manual preparation add retains nb question and answers for explicit retry"},{"ancestorTitles":[],"duration":455,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"adding a prep item posts the chosen category and title","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794944609647,"status":"passed","title":"adding a prep item posts the chosen category and title"},{"ancestorTitles":[],"duration":328,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"starts a structured interview debrief without inventing answers","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794944610103,"status":"passed","title":"starts a structured interview debrief without inventing answers"},{"ancestorTitles":[],"duration":228,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"marking an item ready patches it","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794944610431,"status":"passed","title":"marking an item ready patches it"},{"ancestorTitles":[],"duration":281,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"an answer is only saved when the user asks","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794944610660,"status":"passed","title":"an answer is only saved when the user asks"},{"ancestorTitles":[],"duration":389,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"deleting a prep item calls delete","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794944610941,"status":"passed","title":"deleting a prep item calls delete"},{"ancestorTitles":[],"duration":141,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"empty prep shows a useful empty state","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794944611330,"status":"passed","title":"empty prep shows a useful empty state"},{"ancestorTitles":[],"duration":386,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"AI preparation uses the linked CV and only saves after explicit acceptance","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794944611471,"status":"passed","title":"AI preparation uses the linked CV and only saves after explicit acceptance"},{"ancestorTitles":[],"duration":659,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late generation cannot offer another application the previous application suggestion","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794944611857,"status":"passed","title":"late generation cannot offer another application the previous application suggestion"},{"ancestorTitles":[],"duration":568,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"completed AI suggestion is scoped to its application instead of becoming a new application draft","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794944612517,"status":"passed","title":"completed AI suggestion is scoped to its application instead of becoming a new application draft"},{"ancestorTitles":[],"duration":642,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late accepted suggestion does not reload the previous application board into the current application","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794944613085,"status":"passed","title":"late accepted suggestion does not reload the previous application board into the current application"},{"ancestorTitles":[],"duration":245,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending linked CV is loading, not an empty selection (en)","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794944613727,"status":"passed","title":"pending linked CV is loading, not an empty selection (en)"},{"ancestorTitles":[],"duration":232,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending linked CV is loading, not an empty selection (nb)","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794944613972,"status":"passed","title":"pending linked CV is loading, not an empty selection (nb)"},{"ancestorTitles":[],"duration":546,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"linked-CV failure has current-language GET-only retry and preserves instructions (en)","invocations":1,"location":null,"numPassingAsserts":11,"retryReasons":[],"startAt":1794944614204,"status":"passed","title":"linked-CV failure has current-language GET-only retry and preserves instructions (en)"},{"ancestorTitles":[],"duration":512,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"linked-CV failure has current-language GET-only retry and preserves instructions (nb)","invocations":1,"location":null,"numPassingAsserts":11,"retryReasons":[],"startAt":1794944614750,"status":"passed","title":"linked-CV failure has current-language GET-only retry and preserves instructions (nb)"},{"ancestorTitles":[],"duration":493,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"changing application hides the previous linked CV while the new read is pending (en)","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794944615262,"status":"passed","title":"changing application hides the previous linked CV while the new read is pending (en)"},{"ancestorTitles":[],"duration":545,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"changing application hides the previous linked CV while the new read is pending (nb)","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794944615755,"status":"passed","title":"changing application hides the previous linked CV while the new read is pending (nb)"},{"ancestorTitles":[],"duration":119,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prep surfaces a load error","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794944616300,"status":"passed","title":"prep surfaces a load error"},{"ancestorTitles":[],"duration":201,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"failed follow-up save retains editable en drafts and retries only the explicit write","invocations":1,"location":null,"numPassingAsserts":11,"retryReasons":[],"startAt":1794944616419,"status":"passed","title":"failed follow-up save retains editable en drafts and retries only the explicit write"},{"ancestorTitles":[],"duration":171,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"failed follow-up save retains editable nb drafts and retries only the explicit write","invocations":1,"location":null,"numPassingAsserts":11,"retryReasons":[],"startAt":1794944616620,"status":"passed","title":"failed follow-up save retains editable nb drafts and retries only the explicit write"},{"ancestorTitles":[],"duration":94,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"failed initial follow-up read offers en GET-only retry without editable defaults","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"startAt":1794944616791,"status":"passed","title":"failed initial follow-up read offers en GET-only retry without editable defaults"},{"ancestorTitles":[],"duration":94,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"failed initial follow-up read offers nb GET-only retry without editable defaults","invocations":1,"location":null,"numPassingAsserts":7,"retryReasons":[],"startAt":1794944616885,"status":"passed","title":"failed initial follow-up read offers nb GET-only retry without editable defaults"},{"ancestorTitles":[],"duration":122,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"follow-up language switch from en preserves the unsaved date and next action without a read","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794944616979,"status":"passed","title":"follow-up language switch from en preserves the unsaved date and next action without a read"},{"ancestorTitles":[],"duration":125,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"follow-up language switch from nb preserves the unsaved date and next action without a read","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794944617101,"status":"passed","title":"follow-up language switch from nb preserves the unsaved date and next action without a read"},{"ancestorTitles":[],"duration":51,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"follow-up en read error stays current without another read","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794944617226,"status":"passed","title":"follow-up en read error stays current without another read"},{"ancestorTitles":[],"duration":142,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"follow-up en save error stays current without another read","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794944617277,"status":"passed","title":"follow-up en save error stays current without another read"},{"ancestorTitles":[],"duration":77,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"follow-up nb read error stays current without another read","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794944617419,"status":"passed","title":"follow-up nb read error stays current without another read"},{"ancestorTitles":[],"duration":156,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"follow-up nb save error stays current without another read","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794944617496,"status":"passed","title":"follow-up nb save error stays current without another read"},{"ancestorTitles":[],"duration":56,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"follow-up loads the existing date and open checklist tasks","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794944617652,"status":"passed","title":"follow-up loads the existing date and open checklist tasks"},{"ancestorTitles":[],"duration":92,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"saving a follow-up sends the date and next action","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794944617708,"status":"passed","title":"saving a follow-up sends the date and next action"},{"ancestorTitles":[],"duration":31,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"no follow-up shows an empty state","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794944617800,"status":"passed","title":"no follow-up shows an empty state"}],"endTime":1794944617833,"message":"","name":"E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch\\job-tracker-ui\\src\\interview-prep.test.tsx","startTime":1794944594943,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"duration":423,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"dashboard attention card opens follow-up workspace","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794944620305,"status":"passed","title":"dashboard attention card opens follow-up workspace"},{"ancestorTitles":[],"duration":223,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"empty dashboard prioritizes onboarding and suppresses meaningless analytics","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"startAt":1794944620728,"status":"passed","title":"empty dashboard prioritizes onboarding and suppresses meaningless analytics"},{"ancestorTitles":[],"duration":103,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"reminders open action routes tailored-cv gaps into the tailored cv workspace","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794944620952,"status":"passed","title":"reminders open action routes tailored-cv gaps into the tailored cv workspace"},{"ancestorTitles":[],"duration":1269,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"job table urgency signals and next actions route into the shared workspace flow","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794944621055,"status":"passed","title":"job table urgency signals and next actions route into the shared workspace flow"}],"endTime":1794944622324,"message":"","name":"E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch\\job-tracker-ui\\src\\daily-control-loop.test.tsx","startTime":1794944617855,"status":"passed","summary":""}],"wasInterrupted":false} diff --git a/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-final.json.gz b/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-final.json.gz new file mode 100644 index 0000000000000000000000000000000000000000..573e83160efe2be23c04fb6e82c50a8f7273467e GIT binary patch literal 2580 zcmV+v3hVVBiwFP!000023e8+gbK|%XzUNo4bV{nM4c`=fbCTI)Dv#QlnayRDnu173 z!k7XW0JKNhn*W{#AW@V@OF}Xz>*A6ji0uBp?nXDzP4@}Ikjpr{sWCMWm5PEc9mQeUtn<HbW@e!KrBveUPYs2^;&C_L{`Ysh6@S|P z2-h$-XpXMkw3qz`no7jwCxCQvA7pu)$8nNJQ3%sSQxsSLAd)wr8o(z%V9`_xv|j)g zV3JG1=+PjBpGcsF$QH}8;YiJc8-zh_Faug&V)z#<;lu7XyRm=5{n2WFp=DE5|3XUA zNo`ESt2wTbxx8263hNI`R#og-c$j+6M6OvQJ#;jaZv3E?SF>Om$C7V9U?lYKwD~AdA7ls8+)sTyE*qib*M0!E zlnSVk6#8~IM96FwUy%>GxD`H9-w$W6=i^L;hWQAxzzrWyM36;=UkC*vVHG$}8Wd%6 z4U!)J;=c_@dl?g{9T7p0#(hM%)x?H^@TwGaZRo8ih@!*+1(uo&Q;_+|cob|JX+Hd> z{S*~OT=_nz;O%Y!pE+w*Yw&a9+v5_F_}RIHxYEmlo*=$DJssP6dwRk!2p!RLwq7Uc znE=ZTeWdJ}dW1^Mp9p^TKwZ3IoWPWEBHX}TmHq(i6MQNFO~@h(sa8Y*+U#a+y$UUG zbs1ZsC0lve>rD1iy1+h-u8qB9AEmadYXcwod2R=MuZT`8KDjpPpFh`}N%r~k^pAH99uk7x-g7hIVNosg9rEhS9l9{yTaq#)AM5M2gv zZU=De`#~ST?zOR?A`Y%Z#XgN5mx{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dTjqt zn`mlPV5t744Mr4(EAy}kskw&D%ZN4T+<-*s23x=>6%sosoQD6sN}4I qi?D%pO)bQyq3f<|pzSjf@6~$An_9ojQXAH{-~Au9nI8A5Q~&^F@a%Q~ literal 0 HcmV?d00001 diff --git a/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-final.txt b/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-final.txt new file mode 100644 index 00000000..71742ee9 --- /dev/null +++ b/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-final.txt @@ -0,0 +1,13 @@ +node : +At line:1 char:122 ++ ... =$env:TEMP; node node_modules/jest/bin/jest.js --runInBand --runTests ... ++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + CategoryInfo : NotSpecified: (:String) [], RemoteException + + FullyQualifiedErrorId : NativeCommandError + +Test Suites: 2 passed, 2 total +Tests: 55 passed, 55 total +Snapshots: 0 total +Time: 29.011 s +Ran all test suites within paths "src/interview-prep.test.tsx", "src/daily-control-loop.test.tsx". +Test results written to: ..\..\interview-ai-context-final.json diff --git a/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-final.txt.gz b/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-final.txt.gz new file mode 100644 index 0000000000000000000000000000000000000000..95c203f9af13ec084cd306751650d4c13e3f1670 GIT binary patch literal 468 zcmV;_0W1C=iwFP!000023cZt0PuoBc#orl;?_i-Gs0fBe>VZ@o08xnph!SqJLMb>9 zHpSmR4))!(6-4SuBeI4ppKk!e{TkTw9*KVnhsnUjS{2$TⅆaPMXShN zM*NLLS%#Fuv zew{Nb-;uWnwRaw)54!=86?eOw!`fU>Z^U`BH`R>W7PoDacVX|O^5_#kdE(i*W3{KP zW=@;v-t}vrRn6Hf+gafon9zprS$v?g*8O|#`~=Hpm%bpU&i{eD&Rq5-m?NL!I(F$; zHj5lP=U={qlD?W!aLsN+Y?ue<9{ttV-Rd=O?|1WE#N60SnPk+8*h7!CZq+Zoy^qiL K&{U6}1ONc1_4tzj literal 0 HcmV?d00001 diff --git a/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-lint.txt b/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-lint.txt new file mode 100644 index 00000000..e69de29b diff --git a/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-lint.txt.gz b/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-lint.txt.gz new file mode 100644 index 0000000000000000000000000000000000000000..ae211a2cb77f6830fe3b183a87963fc514435a29 GIT binary patch literal 20 Scmb2|=3oE;CN5?$4I%&z1pvYT literal 0 HcmV?d00001 diff --git a/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-red.json b/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-red.json new file mode 100644 index 00000000..5a5e7460 --- /dev/null +++ b/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-red.json @@ -0,0 +1 @@ +{"numFailedTestSuites":1,"numFailedTests":3,"numPassedTestSuites":0,"numPassedTests":0,"numPendingTestSuites":0,"numPendingTests":48,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":1,"numTotalTests":51,"openHandles":[],"snapshot":{"added":0,"didUpdate":false,"failure":false,"filesAdded":0,"filesRemoved":0,"filesRemovedList":[],"filesUnmatched":0,"filesUpdated":0,"matched":0,"total":0,"unchecked":0,"uncheckedKeysByFile":[],"unmatched":0,"updated":0},"startTime":1794944477499,"success":false,"testResults":[{"assertionResults":[{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending preparation deletion follows en without a preparation reload or answer loss","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"pending preparation deletion follows en without a preparation reload or answer loss"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending preparation deletion follows nb without a preparation reload or answer loss","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"pending preparation deletion follows nb without a preparation reload or answer loss"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"visible preparation read error follows en without another preparation request","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"visible preparation read error follows en without another preparation request"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"visible preparation read error follows nb without another preparation request","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"visible preparation read error follows nb without another preparation request"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"visible preparation mutation error follows en without clearing the failure through a reload","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"visible preparation mutation error follows en without clearing the failure through a reload"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"visible preparation mutation error follows nb without clearing the failure through a reload","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"visible preparation mutation error follows nb without clearing the failure through a reload"},{"ancestorTitles":["en unknown interview categories"],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"en unknown interview categories preserves constructor as a category label","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"preserves constructor as a category label"},{"ancestorTitles":["en unknown interview categories"],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"en unknown interview categories preserves toString as a category label","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"preserves toString as a category label"},{"ancestorTitles":["en unknown interview categories"],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"en unknown interview categories preserves __proto__ as a category label","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"preserves __proto__ as a category label"},{"ancestorTitles":["nb unknown interview categories"],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"nb unknown interview categories preserves constructor as a category label","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"preserves constructor as a category label"},{"ancestorTitles":["nb unknown interview categories"],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"nb unknown interview categories preserves toString as a category label","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"preserves toString as a category label"},{"ancestorTitles":["nb unknown interview categories"],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"nb unknown interview categories preserves __proto__ as a category label","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"preserves __proto__ as a category label"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"answer save failure follows en / pending and retains the draft for explicit retry","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"answer save failure follows en / pending and retains the draft for explicit retry"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"answer save failure follows en / visible and retains the draft for explicit retry","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"answer save failure follows en / visible and retains the draft for explicit retry"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"answer save failure follows nb / pending and retains the draft for explicit retry","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"answer save failure follows nb / pending and retains the draft for explicit retry"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"answer save failure follows nb / visible and retains the draft for explicit retry","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"answer save failure follows nb / visible and retains the draft for explicit retry"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"localizes interview categories while preserving user-authored preparation","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"localizes interview categories while preserving user-authored preparation"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prep renders grouped items with progress and marks AI-sourced ones","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"prep renders grouped items with progress and marks AI-sourced ones"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"delete tooltip describes its wrapper while the disabled button keeps its item name","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"delete tooltip describes its wrapper while the disabled button keeps its item name"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"failed manual preparation add retains en question and answers for explicit retry","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"failed manual preparation add retains en question and answers for explicit retry"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"failed manual preparation add retains nb question and answers for explicit retry","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"failed manual preparation add retains nb question and answers for explicit retry"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"adding a prep item posts the chosen category and title","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"adding a prep item posts the chosen category and title"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"starts a structured interview debrief without inventing answers","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"starts a structured interview debrief without inventing answers"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"marking an item ready patches it","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"marking an item ready patches it"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"an answer is only saved when the user asks","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"an answer is only saved when the user asks"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"deleting a prep item calls delete","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"deleting a prep item calls delete"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"empty prep shows a useful empty state","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"empty prep shows a useful empty state"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"AI preparation uses the linked CV and only saves after explicit acceptance","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944483088,"status":"pending","title":"AI preparation uses the linked CV and only saves after explicit acceptance"},{"ancestorTitles":[],"duration":833,"failing":false,"failureDetails":[{"matcherResult":{"pass":true,"message":"expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found

Only for application seven

instead"}}],"failureMessages":["Error: expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found

Only for application seven

instead\n at Object.toBeInTheDocument (E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch\\job-tracker-ui\\src\\interview-prep.test.tsx:358:67)"],"fullName":"late generation cannot offer another application the previous application suggestion","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794944483088,"status":"failed","title":"late generation cannot offer another application the previous application suggestion"},{"ancestorTitles":[],"duration":530,"failing":false,"failureDetails":[{"matcherResult":{"pass":true,"message":"expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found

Prepared for application seven only

instead"}}],"failureMessages":["Error: expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found

Prepared for application seven only

instead\n at Object.toBeInTheDocument (E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch\\job-tracker-ui\\src\\interview-prep.test.tsx:373:76)"],"fullName":"completed AI suggestion is scoped to its application instead of becoming a new application draft","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794944483943,"status":"failed","title":"completed AI suggestion is scoped to its application instead of becoming a new application draft"},{"ancestorTitles":[],"duration":644,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(received).toHaveLength(expected)\n\nExpected length: 1\nReceived length: 2\nReceived array: [[\"/jobapplications/7/interview-prep\"], [\"/jobapplications/7/interview-prep\"]]","pass":false}}],"failureMessages":["Error: expect(received).toHaveLength(expected)\n\nExpected length: 1\nReceived length: 2\nReceived array: [[\"/jobapplications/7/interview-prep\"], [\"/jobapplications/7/interview-prep\"]]\n at Object.toHaveLength (E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch\\job-tracker-ui\\src\\interview-prep.test.tsx:391:99)"],"fullName":"late accepted suggestion does not reload the previous application board into the current application","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794944484473,"status":"failed","title":"late accepted suggestion does not reload the previous application board into the current application"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending linked CV is loading, not an empty selection (en)","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944485117,"status":"pending","title":"pending linked CV is loading, not an empty selection (en)"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending linked CV is loading, not an empty selection (nb)","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944485117,"status":"pending","title":"pending linked CV is loading, not an empty selection (nb)"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"linked-CV failure has current-language GET-only retry and preserves instructions (en)","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944485117,"status":"pending","title":"linked-CV failure has current-language GET-only retry and preserves instructions (en)"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"linked-CV failure has current-language GET-only retry and preserves instructions (nb)","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944485117,"status":"pending","title":"linked-CV failure has current-language GET-only retry and preserves instructions (nb)"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"changing application hides the previous linked CV while the new read is pending (en)","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944485117,"status":"pending","title":"changing application hides the previous linked CV while the new read is pending (en)"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"changing application hides the previous linked CV while the new read is pending (nb)","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944485117,"status":"pending","title":"changing application hides the previous linked CV while the new read is pending (nb)"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prep surfaces a load error","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944485117,"status":"pending","title":"prep surfaces a load error"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"failed follow-up save retains editable en drafts and retries only the explicit write","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944485117,"status":"pending","title":"failed follow-up save retains editable en drafts and retries only the explicit write"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"failed follow-up save retains editable nb drafts and retries only the explicit write","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944485117,"status":"pending","title":"failed follow-up save retains editable nb drafts and retries only the explicit write"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"failed initial follow-up read offers en GET-only retry without editable defaults","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944485117,"status":"pending","title":"failed initial follow-up read offers en GET-only retry without editable defaults"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"failed initial follow-up read offers nb GET-only retry without editable defaults","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944485117,"status":"pending","title":"failed initial follow-up read offers nb GET-only retry without editable defaults"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"follow-up language switch from en preserves the unsaved date and next action without a read","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944485117,"status":"pending","title":"follow-up language switch from en preserves the unsaved date and next action without a read"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"follow-up language switch from nb preserves the unsaved date and next action without a read","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944485117,"status":"pending","title":"follow-up language switch from nb preserves the unsaved date and next action without a read"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"follow-up en read error stays current without another read","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944485117,"status":"pending","title":"follow-up en read error stays current without another read"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"follow-up en save error stays current without another read","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944485117,"status":"pending","title":"follow-up en save error stays current without another read"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"follow-up nb read error stays current without another read","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944485117,"status":"pending","title":"follow-up nb read error stays current without another read"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"follow-up nb save error stays current without another read","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944485117,"status":"pending","title":"follow-up nb save error stays current without another read"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"follow-up loads the existing date and open checklist tasks","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944485117,"status":"pending","title":"follow-up loads the existing date and open checklist tasks"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"saving a follow-up sends the date and next action","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944485117,"status":"pending","title":"saving a follow-up sends the date and next action"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"no follow-up shows an empty state","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794944485117,"status":"pending","title":"no follow-up shows an empty state"}],"endTime":1794944485145,"message":" ● late generation cannot offer another application the previous application suggestion\n\n expect(element).not.toBeInTheDocument()\n\n expected document not to contain element, found

Only for application seven

instead\n\n 356 | await act(async () => finish({ data: { result: { text: 'Only for application seven' } } }));\n 357 | const assistant = within(screen.getByRole('region', { name: translations.en.interviewAiTitle }));\n > 358 | expect(assistant.queryByText('Only for application seven')).not.toBeInTheDocument();\n | ^\n 359 | expect(assistant.queryByRole('button', { name: translations.en.interviewAiAddToPrep })).not.toBeInTheDocument();\n 360 | expect(assistant.getByLabelText(translations.en.coverAiAdditionalInstructions)).toHaveValue('');\n 361 | expect(mockedApi.post).toHaveBeenCalledTimes(1);\n\n at Object.toBeInTheDocument (src/interview-prep.test.tsx:358:67)\n\n ● completed AI suggestion is scoped to its application instead of becoming a new application draft\n\n expect(element).not.toBeInTheDocument()\n\n expected document not to contain element, found

Prepared for application seven only

instead\n\n 371 | view.rerender();\n 372 | const assistant = within(screen.getByRole('region', { name: translations.en.interviewAiTitle }));\n > 373 | expect(assistant.queryByText('Prepared for application seven only')).not.toBeInTheDocument();\n | ^\n 374 | expect(assistant.queryByRole('button', { name: translations.en.interviewAiAddToPrep })).not.toBeInTheDocument();\n 375 | expect(mockedApi.post).not.toHaveBeenCalledWith('/jobapplications/8/interview-prep', expect.anything());\n 376 | });\n\n at Object.toBeInTheDocument (src/interview-prep.test.tsx:373:76)\n\n ● late accepted suggestion does not reload the previous application board into the current application\n\n expect(received).toHaveLength(expected)\n\n Expected length: 1\n Received length: 2\n Received array: [[\"/jobapplications/7/interview-prep\"], [\"/jobapplications/7/interview-prep\"]]\n\n 389 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/jobapplications/8/interview-prep'));\n 390 | await act(async () => finish({ data: board.groups[0].items[0] }));\n > 391 | expect(mockedApi.get.mock.calls.filter(([url]) => url === '/jobapplications/7/interview-prep')).toHaveLength(1);\n | ^\n 392 | expect(mockedApi.get.mock.calls.filter(([url]) => url === '/jobapplications/8/interview-prep')).toHaveLength(1);\n 393 | expect(mockedApi.post.mock.calls[1]).toEqual(['/jobapplications/7/interview-prep', expect.objectContaining({ source: 'ai', content: 'Application seven suggestion' })]);\n 394 | });\n\n at Object.toHaveLength (src/interview-prep.test.tsx:391:99)\n","name":"E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\next-security-patch\\job-tracker-ui\\src\\interview-prep.test.tsx","startTime":1794944479113,"status":"failed","summary":""}],"wasInterrupted":false} diff --git a/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-red.json.gz b/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-red.json.gz new file mode 100644 index 0000000000000000000000000000000000000000..954c89f75b6111c5fb3058e6dba63a17ef1ca2ed GIT binary patch literal 2856 zcmV+@3)l1?iwFP!000023gunhavC`nzTc-%abu`5*aRGYHg*-sBs;Fn?4%se?1k~B z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+Igs^?rLsoGwn#vrSNkcTA7U&U0kNqUbO7t4cr!Zlj*e}@e`UHegV*L9I|%P; zbY}xE7~D>3@5*#%2JcR4@5*#%6dYmet;bsou5C4A94PQ@gT%h6FMywjS$m!8DzR@> zx;I*iPKWL;cxu-Nyo?_ToD+w$MRj#@HwmVYX}Vn5sMuId>q77rlZUtRVc7J$D`Dd5 zNxImHkpKPnKV%(+TUZ5vH{MsMC`!8TMBSkyn2^fJYw`z{7~E1@(`xcmkAz3^1#)^u zy0FvK{rnxOG;NYQaJyJMf>#D~yGafnU+;k2sKuwdOTI2L2P zV(DAN)adQ#5_rfz#X{jxk;hEo=MVDZpMNDNHJ&8e0plK5Tn?C)?_WwRH$!k1GE{ke zJb!&FmXG)X4~yHw1wA=r$}YySjRxnb+g*i8z0L15h=BZq^m^s=dIO1Xxow5KgilLN zhP?&7ct-<#7cuw*oiF3~$qY{x#cAaoEhueuGode8cQx1U`jwTd6=U(%oOlubl49<` z==_`Wa$S5(J^*_(G#bh#QN4XtE_^NH}R27i^EbN}?Neov0h-W<)0JDQp|rDU~N z8+JXl$`Y<;2~;=fgXTD+S~Xi|R6BXfIk@4|4&t96(EPznbzS{|7XWJAq$Mgwr~?#`Pc(bvrO3|cAr=Ji0$*rAE(;aSppdgrQS&8D)`?Asq!vU znNbk1ae>4UyHzAo90>hO?<#8vHBH*fgjg!3p7SSMo zwFJnq3z60_ymQeQUCAABFZ6&6nR4idff_6nzP4t(eBuBgWiDK&>8?KIgwmD3Px>EM zq}#?Vvv3>4tP6*8^Zz(Oqg3h%s literal 0 HcmV?d00001 diff --git a/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-red.txt b/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-red.txt new file mode 100644 index 00000000..5c592c19 --- /dev/null +++ b/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-red.txt @@ -0,0 +1,361 @@ +node : console.error +At line:1 char:122 ++ ... =$env:TEMP; node node_modules/jest/bin/jest.js --runInBand --runTests ... ++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + CategoryInfo : NotSpecified: ( console.error:String) [], RemoteException + + FullyQualifiedErrorId : NativeCommandError + + An update to InterviewAiAssistant 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 + + 233 | setCv(null); setCvLoading(true); setCvError(null); + 234 | applicationAssetsApi.cv(jobId) + > 235 | .then((result) => { if (active) setCv(result); }) + | ^ + 236 | .catch((cause) => { if (active) setCvError({ cause }); }) + 237 | .finally(() => { if (active) setCvLoading(false); }); + 238 | return () => { active = false; }; + + 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 setCv (src/components/InterviewPrep.tsx:235:39) + + console.error + An update to ApplicationFollowUp 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 + + 431 | try { + 432 | const result = await interviewPrepApi.followUp(jobId); + > 433 | setData(result); + | ^ + 434 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : ""); + 435 | setAction(result.nextAction ?? ""); + 436 | setError(null); + + 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 setData (src/components/InterviewPrep.tsx:433:7) + + console.error + An update to ApplicationFollowUp 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 + + 432 | const result = await interviewPrepApi.followUp(jobId); + 433 | setData(result); + > 434 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : ""); + | ^ + 435 | setAction(result.nextAction ?? ""); + 436 | setError(null); + 437 | } catch (err) { + + 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 setDate (src/components/InterviewPrep.tsx:434:7) + + console.error + An update to ApplicationFollowUp 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 + + 433 | setData(result); + 434 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : ""); + > 435 | setAction(result.nextAction ?? ""); + | ^ + 436 | setError(null); + 437 | } catch (err) { + 438 | setError({ cause: err, fallback: "interviewFollowUpLoadFailed" }); + + 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 setAction (src/components/InterviewPrep.tsx:435:7) + + console.error + An update to ApplicationFollowUp 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 + + 434 | setDate(result.followUpAt ? result.followUpAt.slice(0, 10) : ""); + 435 | setAction(result.nextAction ?? ""); + > 436 | setError(null); + | ^ + 437 | } catch (err) { + 438 | setError({ cause: err, fallback: "interviewFollowUpLoadFailed" }); + 439 | } finally { + + 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 setError (src/components/InterviewPrep.tsx:436:7) + + console.error + An update to ApplicationFollowUp 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 + + 438 | setError({ cause: err, fallback: "interviewFollowUpLoadFailed" }); + 439 | } finally { + > 440 | setLoading(false); + | ^ + 441 | } + 442 | }, [jobId]); + 443 | + + 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 setLoading (src/components/InterviewPrep.tsx:440:7) + + console.error + An update to ApplicationInterviewPrep 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 + + 55 | setLoading(true); + 56 | try { + > 57 | setBoard(await interviewPrepApi.get(jobId)); + | ^ + 58 | setError(null); + 59 | } catch (err) { + 60 | setError({ cause: err, fallback: "interviewPrepLoadFailed" }); + + 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 setBoard (src/components/InterviewPrep.tsx:57:7) + + console.error + An update to ApplicationInterviewPrep 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 + + 56 | try { + 57 | setBoard(await interviewPrepApi.get(jobId)); + > 58 | setError(null); + | ^ + 59 | } catch (err) { + 60 | setError({ cause: err, fallback: "interviewPrepLoadFailed" }); + 61 | } finally { + + 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 setError (src/components/InterviewPrep.tsx:58:7) + + console.error + An update to ApplicationInterviewPrep 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 + + 60 | setError({ cause: err, fallback: "interviewPrepLoadFailed" }); + 61 | } finally { + > 62 | setLoading(false); + | ^ + 63 | } + 64 | }, [jobId]); + 65 | + + 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 setLoading (src/components/InterviewPrep.tsx:62:7) + + console.error + An update to InterviewAiAssistant 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 + + 235 | .then((result) => { if (active) setCv(result); }) + 236 | .catch((cause) => { if (active) setCvError({ cause }); }) + > 237 | .finally(() => { if (active) setCvLoading(false); }); + | ^ + 238 | return () => { active = false; }; + 239 | }, [jobId, cvReadAttempt]); + 240 | + + 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 setCvLoading (src/components/InterviewPrep.tsx:237:36) + +FAIL src/interview-prep.test.tsx (6.032 s) + ● late generation cannot offer another application the previous application suggestion + + expect(element).not.toBeInTheDocument() + + expected document not to contain element, found

Only for application seven

instead + + 356 | await act(async () => finish({ data: { result: { text: 'Only for application seven' } } })); + 357 | const assistant = within(screen.getByRole('region', { name: translations.en.interviewAiTitle })); + > 358 | expect(assistant.queryByText('Only for application seven')).not.toBeInTheDocument(); + | ^ + 359 | expect(assistant.queryByRole('button', { name: translations.en.interviewAiAddToPrep +})).not.toBeInTheDocument(); + 360 | expect(assistant.getByLabelText(translations.en.coverAiAdditionalInstructions)).toHaveValue(''); + 361 | expect(mockedApi.post).toHaveBeenCalledTimes(1); + + at Object.toBeInTheDocument (src/interview-prep.test.tsx:358:67) + + ● completed AI suggestion is scoped to its application instead of becoming a new application draft + + expect(element).not.toBeInTheDocument() + + expected document not to contain element, found

Prepared for application seven only

instead + + 371 | view.rerender(); + 372 | const assistant = within(screen.getByRole('region', { name: translations.en.interviewAiTitle })); + > 373 | expect(assistant.queryByText('Prepared for application seven only')).not.toBeInTheDocument(); + | ^ + 374 | expect(assistant.queryByRole('button', { name: translations.en.interviewAiAddToPrep +})).not.toBeInTheDocument(); + 375 | expect(mockedApi.post).not.toHaveBeenCalledWith('/jobapplications/8/interview-prep', expect.anything()); + 376 | }); + + at Object.toBeInTheDocument (src/interview-prep.test.tsx:373:76) + + ● late accepted suggestion does not reload the previous application board into the current application + + expect(received).toHaveLength(expected) + + Expected length: 1 + Received length: 2 + Received array: [["/jobapplications/7/interview-prep"], ["/jobapplications/7/interview-prep"]] + + 389 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/jobapplications/8/interview-prep')); + 390 | await act(async () => finish({ data: board.groups[0].items[0] })); + > 391 | expect(mockedApi.get.mock.calls.filter(([url]) => url === +'/jobapplications/7/interview-prep')).toHaveLength(1); + | ^ + 392 | expect(mockedApi.get.mock.calls.filter(([url]) => url === +'/jobapplications/8/interview-prep')).toHaveLength(1); + 393 | expect(mockedApi.post.mock.calls[1]).toEqual(['/jobapplications/7/interview-prep', +expect.objectContaining({ source: 'ai', content: 'Application seven suggestion' })]); + 394 | }); + + at Object.toHaveLength (src/interview-prep.test.tsx:391:99) + +Test Suites: 1 failed, 1 total +Tests: 3 failed, 48 skipped, 51 total +Snapshots: 0 total +Time: 7.657 s, estimated 24 s +Ran all test suites within paths "src/interview-prep.test.tsx". +Test results written to: ..\..\interview-ai-context-red.json diff --git a/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-red.txt.gz b/docs/ui-modernisation/evidence/interview-ai-context/interview-ai-context-red.txt.gz new file mode 100644 index 0000000000000000000000000000000000000000..2b4bd4da02ad488bcbb68dda1ca1bf4dae3787a1 GIT binary patch literal 3077 zcmV+g4EpmQiwFP!000023hkY3QzN+%$LDpb@*P}MQicndCu4&-xB?a`RP8-vA=wv% zO%1jIv&QB;hFxlpe8u}lNxJ`P%}8U7AJ|#IL^Wl5Jfo4iTdmel8rk#T|8#ll^1QETr>3E4=J=(hT`eX2iU?=EPns(5lG)=l@8CP5eA)V)ME3|RCztHg# zwnDHK{E5B8p|w5{}yb{p1@f|!X@{sKC3A?p?k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