diff --git a/docs/ui-modernisation/ATTACHMENT_ACTION_LIFETIME.md b/docs/ui-modernisation/ATTACHMENT_ACTION_LIFETIME.md new file mode 100644 index 00000000..dfdae576 --- /dev/null +++ b/docs/ui-modernisation/ATTACHMENT_ACTION_LIFETIME.md @@ -0,0 +1,9 @@ +# Attachment rename/delete lifetime + +17 November 2026. Source `e93f1942` on `codex/a3-ui-10`, based on published CV evidence `48634aaf`. + +Rename/delete capture existing session context plus mounted application generation. They check again after confirmation/prompt and the mutation response, before feedback and refresh. Old confirmations cannot issue writes after unmount, job change or session invalidation. Completed server work is not reversed. Current-language success/failure copy comes from the existing translation ref. Payloads, trim/no-change rules, file ownership endpoints and confirmations are retained. + +Ten original regressions FAILED: six obsolete-decision writes and four delayed wrong-language outcomes. Final49 cases/four suites PASSED; earlier41 overlaps49. Eight added late-response/unmount/job-change cases passed, but were not part of the original red run. Project TypeScript, scoped ESLint, diff check and AST update PASSED (19,285 nodes/47,413 edges). Source/native gzip evidence in `evidence/attachment-action/`. + +No real file mutation or session switch was performed; tests use real UI providers and mocked API/session boundaries. Backend tenant/security, native/browser/device, full attachment and final phase acceptance remain open. Initial and post-mutation list reads can still replace a changed application; six separately reproduced follow-up cases remain outside this source commit. Other upload/metadata/download/preview lifetimes remain unqualified. Rollback: revert this bounded source commit, no data migration. diff --git a/docs/ui-modernisation/evidence/attachment-action/SOURCE_RECEIPTS.json b/docs/ui-modernisation/evidence/attachment-action/SOURCE_RECEIPTS.json new file mode 100644 index 00000000..c5078c88 --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-action/SOURCE_RECEIPTS.json @@ -0,0 +1,74 @@ +{ + "sourceCommit": "e93f194281dda2888a37e0d6113bd35dc3c06b30", + "sourcesLfSha256": { + "job-tracker-ui/src/attachment-action-lifetime.test.tsx": "9ccac0a07641237d7d70e2a262b0d1b1f85a146c827974503cdb0bb6816dc9c9", + "job-tracker-ui/src/components/Attachments.tsx": "d3ee749dc31fd42bed3d262f74f6264e2e648d7f8928e69c0b4d9169e6caa44b" + }, + "evidenceLfSha256": { + "red.json": "5b912ba7416d8016e3ac9c7b46ca4e40143b077c1e2fa4baca70737221ef7faf", + "red.txt": "a0a994912b058ffc7dec48e85b1924cb62aa0331da246868d13793cff924329d", + "green.json": "e0a539d187980eaded1a3be5835a419b714f78bb135387dcc29f1951ba1b3d8f", + "green.txt": "9ef85e39dbd1bc8bb560f112e225221d39e59655aeedda49ded572b164a21d2f", + "final.json": "535ab183d6497f7a57a2e5a840f513b4c00ad622c112def6a64abd507d5729ce", + "final.txt": "05ba250a711e21b6c4455c8b444be7d325c6c469dbee8d5a490f303379d927b1", + "typecheck.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "lint.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "graph.txt": "54b506fd5f3d471cc732d00c9292551cc70ba8f96e55ed1973c1a4f4b1c090d4" + }, + "nativeReceipts": [ + { + "path": "red.json", + "gzipPath": "red.json.gz", + "rawSha256": "5b912ba7416d8016e3ac9c7b46ca4e40143b077c1e2fa4baca70737221ef7faf", + "gzipSha256": "f9c044d319f6cd84fa6e4cdbf0c99e53f62ff38b3917e96f8fb0f629c92811ba" + }, + { + "path": "red.txt", + "gzipPath": "red.txt.gz", + "rawSha256": "8fe911cf6c91e27d9da23295fa82b08cb6f6968e3cbf7c3eb3e81f13e9d402cc", + "gzipSha256": "2726bea35b13bb9f7787f28927586ba8a87f6d56546d12f3a8daed7817fe5319" + }, + { + "path": "green.json", + "gzipPath": "green.json.gz", + "rawSha256": "e0a539d187980eaded1a3be5835a419b714f78bb135387dcc29f1951ba1b3d8f", + "gzipSha256": "3853cb7665fdc5793b1d33a851b5161ed563bee8668457c4ba4fdbe9f117d469" + }, + { + "path": "green.txt", + "gzipPath": "green.txt.gz", + "rawSha256": "ca84dc3d9a9f5abb50bafe3a096f992d9a365aaec9a3edd6e663d586a1e9c81a", + "gzipSha256": "5786805ffc33fe9039a21353b6386b5180de81315192680ab6c47408cf199f44" + }, + { + "path": "final.json", + "gzipPath": "final.json.gz", + "rawSha256": "535ab183d6497f7a57a2e5a840f513b4c00ad622c112def6a64abd507d5729ce", + "gzipSha256": "74533606fa1c23a9a5f4a56b7baf65d737081daec5a9a62c103a783b741595d7" + }, + { + "path": "final.txt", + "gzipPath": "final.txt.gz", + "rawSha256": "6726b4b77ddb64e86fc401aa2f2d800955334b5856457f001f1c87c87e33170f", + "gzipSha256": "cd3165ea7a6870fe48510185d7221ccf42fa606d291edeb7df07bb72e9d229d7" + }, + { + "path": "typecheck.txt", + "gzipPath": "typecheck.txt.gz", + "rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e" + }, + { + "path": "lint.txt", + "gzipPath": "lint.txt.gz", + "rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e" + }, + { + "path": "graph.txt", + "gzipPath": "graph.txt.gz", + "rawSha256": "7c6f3c8da6703b9c4aae3c13676be789c990540f91869c87c69d91e94f26809a", + "gzipSha256": "aa8641e92e8042afa4998d4840b34652f997f8e625f1fc2e187a0f44b81f9638" + } + ] +} diff --git a/docs/ui-modernisation/evidence/attachment-action/final.json b/docs/ui-modernisation/evidence/attachment-action/final.json new file mode 100644 index 00000000..ddb913ea --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-action/final.json @@ -0,0 +1 @@ +{"numFailedTestSuites":0,"numFailedTests":0,"numPassedTestSuites":4,"numPassedTests":49,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":4,"numTotalTests":49,"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":1794897306414,"success":true,"testResults":[{"assertionResults":[{"ancestorTitles":[],"duration":138,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment read uses en to nb failure copy without another read","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897309733,"status":"passed","title":"pending attachment read uses en to nb failure copy without another read"},{"ancestorTitles":[],"duration":37,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment read uses nb to en failure copy without another read","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897309871,"status":"passed","title":"pending attachment read uses nb to en failure copy without another read"},{"ancestorTitles":[],"duration":495,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment rename follows en to nb without changing file data","invocations":1,"location":null,"numPassingAsserts":13,"retryReasons":[],"startAt":1794897309908,"status":"passed","title":"pending attachment rename follows en to nb without changing file data"},{"ancestorTitles":[],"duration":400,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment rename follows nb to en without changing file data","invocations":1,"location":null,"numPassingAsserts":13,"retryReasons":[],"startAt":1794897310403,"status":"passed","title":"pending attachment rename follows nb to en without changing file data"},{"ancestorTitles":[],"duration":388,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment delete follows en to nb without changing file data","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"startAt":1794897310803,"status":"passed","title":"pending attachment delete follows en to nb without changing file data"},{"ancestorTitles":[],"duration":371,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment delete follows nb to en without changing file data","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"startAt":1794897311191,"status":"passed","title":"pending attachment delete follows nb to en without changing file data"},{"ancestorTitles":[],"duration":62,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment size follows the UI locale (en)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794897311562,"status":"passed","title":"attachment size follows the UI locale (en)"},{"ancestorTitles":[],"duration":47,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment size follows the UI locale (nb)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794897311624,"status":"passed","title":"attachment size follows the UI locale (nb)"},{"ancestorTitles":[],"duration":128,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"PDF preview identifies the document in en","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794897311671,"status":"passed","title":"PDF preview identifies the document in en"},{"ancestorTitles":[],"duration":105,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"PDF preview identifies the document in nb","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794897311799,"status":"passed","title":"PDF preview identifies the document in nb"},{"ancestorTitles":[],"duration":31,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachments empty state renders drag and drop guidance","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897311904,"status":"passed","title":"attachments empty state renders drag and drop guidance"},{"ancestorTitles":[],"duration":217,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachments metadata controls update purpose and ai usage","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794897311935,"status":"passed","title":"attachments metadata controls update purpose and ai usage"},{"ancestorTitles":[],"duration":61,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment failures remain explicit and retry restores the real empty state","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794897312153,"status":"passed","title":"attachment failures remain explicit and retry restores the real empty state"}],"endTime":1794897312215,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachments.test.tsx","startTime":1794897307199,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"duration":321,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending confirm resolves metadata from en to nb and settles once","invocations":1,"location":null,"numPassingAsserts":12,"retryReasons":[],"startAt":1794897312857,"status":"passed","title":"pending confirm resolves metadata from en to nb and settles once"},{"ancestorTitles":[],"duration":281,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending confirm resolves metadata from nb to en and settles once","invocations":1,"location":null,"numPassingAsserts":12,"retryReasons":[],"startAt":1794897313179,"status":"passed","title":"pending confirm resolves metadata from nb to en and settles once"},{"ancestorTitles":[],"duration":321,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending prompt resolves metadata from en to nb and settles once","invocations":1,"location":null,"numPassingAsserts":18,"retryReasons":[],"startAt":1794897313460,"status":"passed","title":"pending prompt resolves metadata from en to nb and settles once"},{"ancestorTitles":[],"duration":310,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending prompt resolves metadata from nb to en and settles once","invocations":1,"location":null,"numPassingAsserts":18,"retryReasons":[],"startAt":1794897313781,"status":"passed","title":"pending prompt resolves metadata from nb to en and settles once"},{"ancestorTitles":[],"duration":60,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"confirm metadata falls back to interpolated English without I18n context","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897314091,"status":"passed","title":"confirm metadata falls back to interpolated English without I18n context"},{"ancestorTitles":[],"duration":108,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prompt metadata falls back to interpolated English without I18n context","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897314151,"status":"passed","title":"prompt metadata falls back to interpolated English without I18n context"},{"ancestorTitles":[],"duration":79,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"confirm leaves literal \"\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897314259,"status":"passed","title":"confirm leaves literal \"\" verbatim during locale changes"},{"ancestorTitles":[],"duration":108,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prompt leaves literal \"\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897314338,"status":"passed","title":"prompt leaves literal \"\" verbatim during locale changes"},{"ancestorTitles":[],"duration":78,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"confirm leaves literal \"confirmAction\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897314446,"status":"passed","title":"confirm leaves literal \"confirmAction\" verbatim during locale changes"},{"ancestorTitles":[],"duration":109,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prompt leaves literal \"enterValue\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897314524,"status":"passed","title":"prompt leaves literal \"enterValue\" verbatim during locale changes"}],"endTime":1794897314635,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\dialog-text.test.tsx","startTime":1794897312223,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"duration":167,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after unmount cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897315272,"status":"passed","title":"attachment rename decision after unmount cannot mutate the previous context"},{"ancestorTitles":[],"duration":166,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after job change cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897315440,"status":"passed","title":"attachment rename decision after job change cannot mutate the previous context"},{"ancestorTitles":[],"duration":110,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after session cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897315606,"status":"passed","title":"attachment rename decision after session cannot mutate the previous context"},{"ancestorTitles":[],"duration":136,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after unmount cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897315716,"status":"passed","title":"attachment delete decision after unmount cannot mutate the previous context"},{"ancestorTitles":[],"duration":177,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after job change cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897315852,"status":"passed","title":"attachment delete decision after job change cannot mutate the previous context"},{"ancestorTitles":[],"duration":119,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after session cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897316029,"status":"passed","title":"attachment delete decision after session cannot mutate the previous context"},{"ancestorTitles":[],"duration":227,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename delayed resolve uses current language","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897316148,"status":"passed","title":"attachment rename delayed resolve uses current language"},{"ancestorTitles":[],"duration":247,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename delayed reject uses current language","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897316375,"status":"passed","title":"attachment rename delayed reject uses current language"},{"ancestorTitles":[],"duration":231,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete delayed resolve uses current language","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897316622,"status":"passed","title":"attachment delete delayed resolve uses current language"},{"ancestorTitles":[],"duration":230,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete delayed reject uses current language","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897316853,"status":"passed","title":"attachment delete delayed reject uses current language"},{"ancestorTitles":[],"duration":223,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after unmount / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897317084,"status":"passed","title":"late attachment rename after unmount / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":200,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after unmount / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897317307,"status":"passed","title":"late attachment rename after unmount / reject cannot reload or notify"},{"ancestorTitles":[],"duration":252,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after job change / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897317507,"status":"passed","title":"late attachment rename after job change / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":244,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after job change / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897317759,"status":"passed","title":"late attachment rename after job change / reject cannot reload or notify"},{"ancestorTitles":[],"duration":173,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after unmount / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897318003,"status":"passed","title":"late attachment delete after unmount / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":200,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after unmount / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897318176,"status":"passed","title":"late attachment delete after unmount / reject cannot reload or notify"},{"ancestorTitles":[],"duration":237,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after job change / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897318376,"status":"passed","title":"late attachment delete after job change / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":220,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after job change / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897318613,"status":"passed","title":"late attachment delete after job change / reject cannot reload or notify"}],"endTime":1794897318834,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx","startTime":1794897314644,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"duration":112,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment Upload activates the same native input from Enter, Space and pointer","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794897320082,"status":"passed","title":"attachment Upload activates the same native input from Enter, Space and pointer"},{"ancestorTitles":[],"duration":44,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Import JSON activates its own native input from Enter, Space and pointer","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794897320194,"status":"passed","title":"Import JSON activates its own native input from Enter, Space and pointer"},{"ancestorTitles":[],"duration":37,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Convert CSV to Import JSON activates its own native input from Enter, Space and pointer","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794897320238,"status":"passed","title":"Convert CSV to Import JSON activates its own native input from Enter, Space and pointer"},{"ancestorTitles":[],"duration":539,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Add Job attachment bucket 0 retains keyboard selection and distinct pending files","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794897320275,"status":"passed","title":"Add Job attachment bucket 0 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":436,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Add Job attachment bucket 1 retains keyboard selection and distinct pending files","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794897320814,"status":"passed","title":"Add Job attachment bucket 1 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":464,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Add Job attachment bucket 2 retains keyboard selection and distinct pending files","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794897321251,"status":"passed","title":"Add Job attachment bucket 2 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":548,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Add Job attachment bucket 3 retains keyboard selection and distinct pending files","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794897321715,"status":"passed","title":"Add Job attachment bucket 3 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":119,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment selection retains files and job ownership, disables activation while uploading and clears selection after completion","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897322263,"status":"passed","title":"attachment selection retains files and job ownership, disables activation while uploading and clears selection after completion"}],"endTime":1794897322382,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\file-picker-activation.test.tsx","startTime":1794897318841,"status":"passed","summary":""}],"wasInterrupted":false} diff --git a/docs/ui-modernisation/evidence/attachment-action/final.json.gz b/docs/ui-modernisation/evidence/attachment-action/final.json.gz new file mode 100644 index 00000000..353a5a86 Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-action/final.json.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-action/final.txt b/docs/ui-modernisation/evidence/attachment-action/final.txt new file mode 100644 index 00000000..1da09784 --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-action/final.txt @@ -0,0 +1,7 @@ + +Test Suites: 4 passed, 4 total +Tests: 49 passed, 49 total +Snapshots: 0 total +Time: 15.973 s +Ran all test suites matching src/attachment-action-lifetime.test.tsx|src/attachments.test.tsx|src/dialog-text.test.tsx|src/file-picker-activation.test.tsx. +Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\attachment-action-final.json diff --git a/docs/ui-modernisation/evidence/attachment-action/final.txt.gz b/docs/ui-modernisation/evidence/attachment-action/final.txt.gz new file mode 100644 index 00000000..d23d16fd Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-action/final.txt.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-action/graph.txt b/docs/ui-modernisation/evidence/attachment-action/graph.txt new file mode 100644 index 00000000..225e0051 --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-action/graph.txt @@ -0,0 +1,18 @@ +Re-extracting code files in . (no LLM needed)... +[graphify watch] 583 file(s) not classified (no supported extension or shebang), skipped: .dockerignore, .env.example, .git, .gitattributes, .gitignore, 1440-en-dark-converted.gz (+577 more) + AST cache: 2542/2990 files served from cache (85%); 448 to extract + AST extraction: 100/448 uncached files (22%) [16 workers] + AST extraction: 200/448 uncached files (44%) [16 workers] + AST extraction: 300/448 uncached files (66%) [16 workers] + AST extraction: 400/448 uncached files (89%) [16 workers] + AST extraction: 448/448 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, 1189 communities now; renamed 149 community(ies) by their hub). Run `graphify label` to refresh names with the LLM. +Graph has 19285 nodes (above 5000 limit). Building aggregated community view... +graph.html written (aggregated: 1189 community nodes, 3122 cross-community edges) +Tip: run with --obsidian for full node-level detail. +[graphify watch] Rebuilt: 19285 nodes, 47413 edges, 1189 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. diff --git a/docs/ui-modernisation/evidence/attachment-action/graph.txt.gz b/docs/ui-modernisation/evidence/attachment-action/graph.txt.gz new file mode 100644 index 00000000..008769f3 Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-action/graph.txt.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-action/green.json b/docs/ui-modernisation/evidence/attachment-action/green.json new file mode 100644 index 00000000..62898509 --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-action/green.json @@ -0,0 +1 @@ +{"numFailedTestSuites":0,"numFailedTests":0,"numPassedTestSuites":4,"numPassedTests":41,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":4,"numTotalTests":41,"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":1794897254311,"success":true,"testResults":[{"assertionResults":[{"ancestorTitles":[],"duration":137,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment read uses en to nb failure copy without another read","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897257639,"status":"passed","title":"pending attachment read uses en to nb failure copy without another read"},{"ancestorTitles":[],"duration":45,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment read uses nb to en failure copy without another read","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897257776,"status":"passed","title":"pending attachment read uses nb to en failure copy without another read"},{"ancestorTitles":[],"duration":504,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment rename follows en to nb without changing file data","invocations":1,"location":null,"numPassingAsserts":13,"retryReasons":[],"startAt":1794897257822,"status":"passed","title":"pending attachment rename follows en to nb without changing file data"},{"ancestorTitles":[],"duration":414,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment rename follows nb to en without changing file data","invocations":1,"location":null,"numPassingAsserts":13,"retryReasons":[],"startAt":1794897258327,"status":"passed","title":"pending attachment rename follows nb to en without changing file data"},{"ancestorTitles":[],"duration":384,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment delete follows en to nb without changing file data","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"startAt":1794897258742,"status":"passed","title":"pending attachment delete follows en to nb without changing file data"},{"ancestorTitles":[],"duration":372,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment delete follows nb to en without changing file data","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"startAt":1794897259126,"status":"passed","title":"pending attachment delete follows nb to en without changing file data"},{"ancestorTitles":[],"duration":64,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment size follows the UI locale (en)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794897259498,"status":"passed","title":"attachment size follows the UI locale (en)"},{"ancestorTitles":[],"duration":46,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment size follows the UI locale (nb)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794897259562,"status":"passed","title":"attachment size follows the UI locale (nb)"},{"ancestorTitles":[],"duration":125,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"PDF preview identifies the document in en","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794897259608,"status":"passed","title":"PDF preview identifies the document in en"},{"ancestorTitles":[],"duration":122,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"PDF preview identifies the document in nb","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794897259733,"status":"passed","title":"PDF preview identifies the document in nb"},{"ancestorTitles":[],"duration":30,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachments empty state renders drag and drop guidance","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897259855,"status":"passed","title":"attachments empty state renders drag and drop guidance"},{"ancestorTitles":[],"duration":218,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachments metadata controls update purpose and ai usage","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794897259885,"status":"passed","title":"attachments metadata controls update purpose and ai usage"},{"ancestorTitles":[],"duration":60,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment failures remain explicit and retry restores the real empty state","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794897260103,"status":"passed","title":"attachment failures remain explicit and retry restores the real empty state"}],"endTime":1794897260164,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachments.test.tsx","startTime":1794897255118,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"duration":342,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending confirm resolves metadata from en to nb and settles once","invocations":1,"location":null,"numPassingAsserts":12,"retryReasons":[],"startAt":1794897260817,"status":"passed","title":"pending confirm resolves metadata from en to nb and settles once"},{"ancestorTitles":[],"duration":291,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending confirm resolves metadata from nb to en and settles once","invocations":1,"location":null,"numPassingAsserts":12,"retryReasons":[],"startAt":1794897261160,"status":"passed","title":"pending confirm resolves metadata from nb to en and settles once"},{"ancestorTitles":[],"duration":323,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending prompt resolves metadata from en to nb and settles once","invocations":1,"location":null,"numPassingAsserts":18,"retryReasons":[],"startAt":1794897261452,"status":"passed","title":"pending prompt resolves metadata from en to nb and settles once"},{"ancestorTitles":[],"duration":307,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending prompt resolves metadata from nb to en and settles once","invocations":1,"location":null,"numPassingAsserts":18,"retryReasons":[],"startAt":1794897261775,"status":"passed","title":"pending prompt resolves metadata from nb to en and settles once"},{"ancestorTitles":[],"duration":45,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"confirm metadata falls back to interpolated English without I18n context","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897262083,"status":"passed","title":"confirm metadata falls back to interpolated English without I18n context"},{"ancestorTitles":[],"duration":108,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prompt metadata falls back to interpolated English without I18n context","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897262128,"status":"passed","title":"prompt metadata falls back to interpolated English without I18n context"},{"ancestorTitles":[],"duration":77,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"confirm leaves literal \"\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897262237,"status":"passed","title":"confirm leaves literal \"\" verbatim during locale changes"},{"ancestorTitles":[],"duration":124,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prompt leaves literal \"\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897262314,"status":"passed","title":"prompt leaves literal \"\" verbatim during locale changes"},{"ancestorTitles":[],"duration":78,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"confirm leaves literal \"confirmAction\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897262438,"status":"passed","title":"confirm leaves literal \"confirmAction\" verbatim during locale changes"},{"ancestorTitles":[],"duration":124,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prompt leaves literal \"enterValue\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897262516,"status":"passed","title":"prompt leaves literal \"enterValue\" verbatim during locale changes"}],"endTime":1794897262641,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\dialog-text.test.tsx","startTime":1794897260173,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"duration":89,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment Upload activates the same native input from Enter, Space and pointer","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794897263926,"status":"passed","title":"attachment Upload activates the same native input from Enter, Space and pointer"},{"ancestorTitles":[],"duration":36,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Import JSON activates its own native input from Enter, Space and pointer","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794897264015,"status":"passed","title":"Import JSON activates its own native input from Enter, Space and pointer"},{"ancestorTitles":[],"duration":36,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Convert CSV to Import JSON activates its own native input from Enter, Space and pointer","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794897264051,"status":"passed","title":"Convert CSV to Import JSON activates its own native input from Enter, Space and pointer"},{"ancestorTitles":[],"duration":438,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Add Job attachment bucket 0 retains keyboard selection and distinct pending files","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794897264087,"status":"passed","title":"Add Job attachment bucket 0 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":319,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Add Job attachment bucket 1 retains keyboard selection and distinct pending files","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794897264525,"status":"passed","title":"Add Job attachment bucket 1 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":338,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Add Job attachment bucket 2 retains keyboard selection and distinct pending files","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794897264844,"status":"passed","title":"Add Job attachment bucket 2 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":439,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"Add Job attachment bucket 3 retains keyboard selection and distinct pending files","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794897265182,"status":"passed","title":"Add Job attachment bucket 3 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":111,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment selection retains files and job ownership, disables activation while uploading and clears selection after completion","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897265622,"status":"passed","title":"attachment selection retains files and job ownership, disables activation while uploading and clears selection after completion"}],"endTime":1794897265735,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\file-picker-activation.test.tsx","startTime":1794897262651,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"duration":197,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after unmount cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897266441,"status":"passed","title":"attachment rename decision after unmount cannot mutate the previous context"},{"ancestorTitles":[],"duration":181,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after job change cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897266638,"status":"passed","title":"attachment rename decision after job change cannot mutate the previous context"},{"ancestorTitles":[],"duration":130,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after session cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897266819,"status":"passed","title":"attachment rename decision after session cannot mutate the previous context"},{"ancestorTitles":[],"duration":125,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after unmount cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897266949,"status":"passed","title":"attachment delete decision after unmount cannot mutate the previous context"},{"ancestorTitles":[],"duration":180,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after job change cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897267074,"status":"passed","title":"attachment delete decision after job change cannot mutate the previous context"},{"ancestorTitles":[],"duration":117,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after session cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897267254,"status":"passed","title":"attachment delete decision after session cannot mutate the previous context"},{"ancestorTitles":[],"duration":275,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename delayed resolve uses current language","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897267371,"status":"passed","title":"attachment rename delayed resolve uses current language"},{"ancestorTitles":[],"duration":243,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename delayed reject uses current language","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897267646,"status":"passed","title":"attachment rename delayed reject uses current language"},{"ancestorTitles":[],"duration":262,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete delayed resolve uses current language","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897267889,"status":"passed","title":"attachment delete delayed resolve uses current language"},{"ancestorTitles":[],"duration":262,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete delayed reject uses current language","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897268151,"status":"passed","title":"attachment delete delayed reject uses current language"}],"endTime":1794897268414,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx","startTime":1794897265744,"status":"passed","summary":""}],"wasInterrupted":false} diff --git a/docs/ui-modernisation/evidence/attachment-action/green.json.gz b/docs/ui-modernisation/evidence/attachment-action/green.json.gz new file mode 100644 index 00000000..fdf24886 Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-action/green.json.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-action/green.txt b/docs/ui-modernisation/evidence/attachment-action/green.txt new file mode 100644 index 00000000..b6bd2f7d --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-action/green.txt @@ -0,0 +1,7 @@ + +Test Suites: 4 passed, 4 total +Tests: 41 passed, 41 total +Snapshots: 0 total +Time: 14.107 s +Ran all test suites matching src/attachment-action-lifetime.test.tsx|src/attachments.test.tsx|src/dialog-text.test.tsx|src/file-picker-activation.test.tsx. +Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\attachment-action-green.json diff --git a/docs/ui-modernisation/evidence/attachment-action/green.txt.gz b/docs/ui-modernisation/evidence/attachment-action/green.txt.gz new file mode 100644 index 00000000..333707f9 Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-action/green.txt.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-action/lint.txt b/docs/ui-modernisation/evidence/attachment-action/lint.txt new file mode 100644 index 00000000..e69de29b diff --git a/docs/ui-modernisation/evidence/attachment-action/lint.txt.gz b/docs/ui-modernisation/evidence/attachment-action/lint.txt.gz new file mode 100644 index 00000000..ae211a2c Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-action/lint.txt.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-action/red.json b/docs/ui-modernisation/evidence/attachment-action/red.json new file mode 100644 index 00000000..e33828b5 --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-action/red.json @@ -0,0 +1 @@ +{"numFailedTestSuites":1,"numFailedTests":10,"numPassedTestSuites":0,"numPassedTests":0,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":1,"numTotalTests":10,"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":1794897187219,"success":false,"testResults":[{"assertionResults":[{"ancestorTitles":[],"duration":382,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: \"/attachments/7\", {\"fileName\": \"New name.pdf\"}","pass":true}}],"failureMessages":["Error: expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: \"/attachments/7\", {\"fileName\": \"New name.pdf\"}\n at toHaveBeenCalled (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:59:31)"],"fullName":"attachment rename decision after unmount cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897190848,"status":"failed","title":"attachment rename decision after unmount cannot mutate the previous context"},{"ancestorTitles":[],"duration":265,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: \"/attachments/7\", {\"fileName\": \"New name.pdf\"}","pass":true}}],"failureMessages":["Error: expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: \"/attachments/7\", {\"fileName\": \"New name.pdf\"}\n at toHaveBeenCalled (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:59:31)"],"fullName":"attachment rename decision after job change cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897191236,"status":"failed","title":"attachment rename decision after job change cannot mutate the previous context"},{"ancestorTitles":[],"duration":178,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: \"/attachments/7\", {\"fileName\": \"New name.pdf\"}","pass":true}}],"failureMessages":["Error: expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: \"/attachments/7\", {\"fileName\": \"New name.pdf\"}\n at toHaveBeenCalled (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:59:31)"],"fullName":"attachment rename decision after session cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897191501,"status":"failed","title":"attachment rename decision after session cannot mutate the previous context"},{"ancestorTitles":[],"duration":150,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: \"/attachments/7\"","pass":true}}],"failureMessages":["Error: expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: \"/attachments/7\"\n at toHaveBeenCalled (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:60:32)"],"fullName":"attachment delete decision after unmount cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794897191679,"status":"failed","title":"attachment delete decision after unmount cannot mutate the previous context"},{"ancestorTitles":[],"duration":247,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: \"/attachments/7\"","pass":true}}],"failureMessages":["Error: expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: \"/attachments/7\"\n at toHaveBeenCalled (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:60:32)"],"fullName":"attachment delete decision after job change cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794897191830,"status":"failed","title":"attachment delete decision after job change cannot mutate the previous context"},{"ancestorTitles":[],"duration":180,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: \"/attachments/7\"","pass":true}}],"failureMessages":["Error: expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: \"/attachments/7\"\n at toHaveBeenCalled (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:60:32)"],"fullName":"attachment delete decision after session cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794897192077,"status":"failed","title":"attachment delete decision after session cannot mutate the previous context"},{"ancestorTitles":[],"duration":4257,"failing":false,"failureDetails":[{"name":"TestingLibraryElementError"}],"failureMessages":["Error: Unable to find an element with the text: Gi nytt navn fullført.. 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.\n\nIgnored nodes: comments, script, style\n\u001b[36m\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mVedlegg (1)\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mLast opp CV-er, søknadsbrev, porteføljer og støttedokumenter for denne søknaden.\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0m0 bilder\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0m1 PDF-er\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mMaks 10 MB hver\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mLast opp\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mDra og slipp filer her\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0meller bruk opplastingsknappen for å velge dokumenter fra enheten din.\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mInnhold lastet.\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mNavn\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mType\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mFiltype\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n ...\n at waitForWrapper (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\node_modules\\@testing-library\\dom\\dist\\wait-for.js:163:27)\n at C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\node_modules\\@testing-library\\dom\\dist\\query-helpers.js:86:33\n at findByText (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:76:23)"],"fullName":"attachment rename delayed resolve uses current language","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794897192257,"status":"failed","title":"attachment rename delayed resolve uses current language"},{"ancestorTitles":[],"duration":4258,"failing":false,"failureDetails":[{"name":"TestingLibraryElementError"}],"failureMessages":["Error: Unable to find an element with the text: Kunne ikke gi nytt navn.. 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.\n\nIgnored nodes: comments, script, style\n\u001b[36m\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mVedlegg (1)\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mLast opp CV-er, søknadsbrev, porteføljer og støttedokumenter for denne søknaden.\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0m0 bilder\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0m1 PDF-er\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mMaks 10 MB hver\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mLast opp\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mDra og slipp filer her\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0meller bruk opplastingsknappen for å velge dokumenter fra enheten din.\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mInnhold lastet.\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mNavn\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mType\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mFiltype\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n ...\n at waitForWrapper (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\node_modules\\@testing-library\\dom\\dist\\wait-for.js:163:27)\n at C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\node_modules\\@testing-library\\dom\\dist\\query-helpers.js:86:33\n at findByText (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:76:23)"],"fullName":"attachment rename delayed reject uses current language","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794897196514,"status":"failed","title":"attachment rename delayed reject uses current language"},{"ancestorTitles":[],"duration":4228,"failing":false,"failureDetails":[{"name":"TestingLibraryElementError"}],"failureMessages":["Error: Unable to find an element with the text: Vedlegg slettet.. 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.\n\nIgnored nodes: comments, script, style\n\u001b[36m\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mVedlegg (1)\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mLast opp CV-er, søknadsbrev, porteføljer og støttedokumenter for denne søknaden.\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0m0 bilder\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0m1 PDF-er\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mMaks 10 MB hver\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mLast opp\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mDra og slipp filer her\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0meller bruk opplastingsknappen for å velge dokumenter fra enheten din.\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mInnhold lastet.\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mNavn\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mType\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mFiltype\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n ...\n at waitForWrapper (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\node_modules\\@testing-library\\dom\\dist\\wait-for.js:163:27)\n at C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\node_modules\\@testing-library\\dom\\dist\\query-helpers.js:86:33\n at findByText (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:76:23)"],"fullName":"attachment delete delayed resolve uses current language","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794897200772,"status":"failed","title":"attachment delete delayed resolve uses current language"},{"ancestorTitles":[],"duration":4220,"failing":false,"failureDetails":[{"name":"TestingLibraryElementError"}],"failureMessages":["Error: Unable to find an element with the text: Sletting mislyktes.. 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.\n\nIgnored nodes: comments, script, style\n\u001b[36m\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mVedlegg (1)\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mLast opp CV-er, søknadsbrev, porteføljer og støttedokumenter for denne søknaden.\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0m0 bilder\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0m1 PDF-er\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mMaks 10 MB hver\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mLast opp\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mDra og slipp filer her\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0meller bruk opplastingsknappen for å velge dokumenter fra enheten din.\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mInnhold lastet.\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mNavn\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mType\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mFiltype\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n ...\n at waitForWrapper (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\node_modules\\@testing-library\\dom\\dist\\wait-for.js:163:27)\n at C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\node_modules\\@testing-library\\dom\\dist\\query-helpers.js:86:33\n at findByText (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:76:23)"],"fullName":"attachment delete delayed reject uses current language","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794897205000,"status":"failed","title":"attachment delete delayed reject uses current language"}],"endTime":1794897209248,"message":" ● attachment rename decision after unmount cannot mutate the previous context\n\n expect(jest.fn()).not.toHaveBeenCalled()\n\n Expected number of calls: 0\n Received number of calls: 1\n\n 1: \"/attachments/7\", {\"fileName\": \"New name.pdf\"}\n\n 57 | fireEvent.click(within(dialog).getByRole(\"button\", { name: action === \"rename\" ? \"Rename\" : \"Delete\" }));\n 58 | await act(async () => undefined);\n > 59 | expect(mockedApi.patch).not.toHaveBeenCalled();\n | ^\n 60 | expect(mockedApi.delete).not.toHaveBeenCalled();\n 61 | expect(mockedApi.get).toHaveBeenCalledTimes(reads);\n 62 | });\n\n at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:59:31)\n\n ● attachment rename decision after job change cannot mutate the previous context\n\n expect(jest.fn()).not.toHaveBeenCalled()\n\n Expected number of calls: 0\n Received number of calls: 1\n\n 1: \"/attachments/7\", {\"fileName\": \"New name.pdf\"}\n\n 57 | fireEvent.click(within(dialog).getByRole(\"button\", { name: action === \"rename\" ? \"Rename\" : \"Delete\" }));\n 58 | await act(async () => undefined);\n > 59 | expect(mockedApi.patch).not.toHaveBeenCalled();\n | ^\n 60 | expect(mockedApi.delete).not.toHaveBeenCalled();\n 61 | expect(mockedApi.get).toHaveBeenCalledTimes(reads);\n 62 | });\n\n at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:59:31)\n\n ● attachment rename decision after session cannot mutate the previous context\n\n expect(jest.fn()).not.toHaveBeenCalled()\n\n Expected number of calls: 0\n Received number of calls: 1\n\n 1: \"/attachments/7\", {\"fileName\": \"New name.pdf\"}\n\n 57 | fireEvent.click(within(dialog).getByRole(\"button\", { name: action === \"rename\" ? \"Rename\" : \"Delete\" }));\n 58 | await act(async () => undefined);\n > 59 | expect(mockedApi.patch).not.toHaveBeenCalled();\n | ^\n 60 | expect(mockedApi.delete).not.toHaveBeenCalled();\n 61 | expect(mockedApi.get).toHaveBeenCalledTimes(reads);\n 62 | });\n\n at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:59:31)\n\n ● attachment delete decision after unmount cannot mutate the previous context\n\n expect(jest.fn()).not.toHaveBeenCalled()\n\n Expected number of calls: 0\n Received number of calls: 1\n\n 1: \"/attachments/7\"\n\n 58 | await act(async () => undefined);\n 59 | expect(mockedApi.patch).not.toHaveBeenCalled();\n > 60 | expect(mockedApi.delete).not.toHaveBeenCalled();\n | ^\n 61 | expect(mockedApi.get).toHaveBeenCalledTimes(reads);\n 62 | });\n 63 | test.each([\n\n at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:60:32)\n\n ● attachment delete decision after job change cannot mutate the previous context\n\n expect(jest.fn()).not.toHaveBeenCalled()\n\n Expected number of calls: 0\n Received number of calls: 1\n\n 1: \"/attachments/7\"\n\n 58 | await act(async () => undefined);\n 59 | expect(mockedApi.patch).not.toHaveBeenCalled();\n > 60 | expect(mockedApi.delete).not.toHaveBeenCalled();\n | ^\n 61 | expect(mockedApi.get).toHaveBeenCalledTimes(reads);\n 62 | });\n 63 | test.each([\n\n at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:60:32)\n\n ● attachment delete decision after session cannot mutate the previous context\n\n expect(jest.fn()).not.toHaveBeenCalled()\n\n Expected number of calls: 0\n Received number of calls: 1\n\n 1: \"/attachments/7\"\n\n 58 | await act(async () => undefined);\n 59 | expect(mockedApi.patch).not.toHaveBeenCalled();\n > 60 | expect(mockedApi.delete).not.toHaveBeenCalled();\n | ^\n 61 | expect(mockedApi.get).toHaveBeenCalledTimes(reads);\n 62 | });\n 63 | test.each([\n\n at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:60:32)\n\n ● attachment rename delayed resolve uses current language\n\n Unable to find an element with the text: Gi nytt navn fullført.. 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.\n\n Ignored nodes: comments, script, style\n \u001b[36m\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mVedlegg (1)\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mLast opp CV-er, søknadsbrev, porteføljer og støttedokumenter for denne søknaden.\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0m0 bilder\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0m1 PDF-er\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mMaks 10 MB hver\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mLast opp\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mDra og slipp filer her\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0meller bruk opplastingsknappen for å velge dokumenter fra enheten din.\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mInnhold lastet.\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mNavn\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mType\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mFiltype\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n ...\n\n 74 | await act(async () => { if (outcome === \"resolve\") pending.resolve({ data: {} }); else pending.reject(new Error(\"synthetic write failure\")); });\n 75 | const key = action === \"rename\" ? outcome === \"resolve\" ? \"attachmentsRenamed\" : \"attachmentsRenameFailed\" : outcome === \"resolve\" ? \"attachmentsDeleted\" : \"attachmentsDeleteFailed\";\n > 76 | expect(await screen.findByText(translations.nb[key])).toBeVisible();\n | ^\n 77 | expect(screen.queryByText(translations.en[key])).not.toBeInTheDocument();\n 78 | expect(write).toHaveBeenCalledWith(\"/attachments/7\", ...(action === \"rename\" ? [{ fileName: \"New name.pdf\" }] : []));\n 79 | });\n\n at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:163:27)\n at node_modules/@testing-library/dom/dist/query-helpers.js:86:33\n at findByText (src/attachment-action-lifetime.test.tsx:76:23)\n\n ● attachment rename delayed reject uses current language\n\n Unable to find an element with the text: Kunne ikke gi nytt navn.. 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.\n\n Ignored nodes: comments, script, style\n \u001b[36m\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mVedlegg (1)\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mLast opp CV-er, søknadsbrev, porteføljer og støttedokumenter for denne søknaden.\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0m0 bilder\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0m1 PDF-er\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mMaks 10 MB hver\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mLast opp\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mDra og slipp filer her\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0meller bruk opplastingsknappen for å velge dokumenter fra enheten din.\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mInnhold lastet.\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mNavn\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mType\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mFiltype\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n ...\n\n 74 | await act(async () => { if (outcome === \"resolve\") pending.resolve({ data: {} }); else pending.reject(new Error(\"synthetic write failure\")); });\n 75 | const key = action === \"rename\" ? outcome === \"resolve\" ? \"attachmentsRenamed\" : \"attachmentsRenameFailed\" : outcome === \"resolve\" ? \"attachmentsDeleted\" : \"attachmentsDeleteFailed\";\n > 76 | expect(await screen.findByText(translations.nb[key])).toBeVisible();\n | ^\n 77 | expect(screen.queryByText(translations.en[key])).not.toBeInTheDocument();\n 78 | expect(write).toHaveBeenCalledWith(\"/attachments/7\", ...(action === \"rename\" ? [{ fileName: \"New name.pdf\" }] : []));\n 79 | });\n\n at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:163:27)\n at node_modules/@testing-library/dom/dist/query-helpers.js:86:33\n at findByText (src/attachment-action-lifetime.test.tsx:76:23)\n\n ● attachment delete delayed resolve uses current language\n\n Unable to find an element with the text: Vedlegg slettet.. 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.\n\n Ignored nodes: comments, script, style\n \u001b[36m\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mVedlegg (1)\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mLast opp CV-er, søknadsbrev, porteføljer og støttedokumenter for denne søknaden.\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0m0 bilder\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0m1 PDF-er\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mMaks 10 MB hver\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mLast opp\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mDra og slipp filer her\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0meller bruk opplastingsknappen for å velge dokumenter fra enheten din.\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mInnhold lastet.\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mNavn\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mType\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mFiltype\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n ...\n\n 74 | await act(async () => { if (outcome === \"resolve\") pending.resolve({ data: {} }); else pending.reject(new Error(\"synthetic write failure\")); });\n 75 | const key = action === \"rename\" ? outcome === \"resolve\" ? \"attachmentsRenamed\" : \"attachmentsRenameFailed\" : outcome === \"resolve\" ? \"attachmentsDeleted\" : \"attachmentsDeleteFailed\";\n > 76 | expect(await screen.findByText(translations.nb[key])).toBeVisible();\n | ^\n 77 | expect(screen.queryByText(translations.en[key])).not.toBeInTheDocument();\n 78 | expect(write).toHaveBeenCalledWith(\"/attachments/7\", ...(action === \"rename\" ? [{ fileName: \"New name.pdf\" }] : []));\n 79 | });\n\n at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:163:27)\n at node_modules/@testing-library/dom/dist/query-helpers.js:86:33\n at findByText (src/attachment-action-lifetime.test.tsx:76:23)\n\n ● attachment delete delayed reject uses current language\n\n Unable to find an element with the text: Sletting mislyktes.. 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.\n\n Ignored nodes: comments, script, style\n \u001b[36m\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mVedlegg (1)\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mLast opp CV-er, søknadsbrev, porteføljer og støttedokumenter for denne søknaden.\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0m0 bilder\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m
\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0m1 PDF-er\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mMaks 10 MB hver\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mLast opp\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mDra og slipp filer her\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0meller bruk opplastingsknappen for å velge dokumenter fra enheten din.\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mInnhold lastet.\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mNavn\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mType\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mFiltype\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n ...\n\n 74 | await act(async () => { if (outcome === \"resolve\") pending.resolve({ data: {} }); else pending.reject(new Error(\"synthetic write failure\")); });\n 75 | const key = action === \"rename\" ? outcome === \"resolve\" ? \"attachmentsRenamed\" : \"attachmentsRenameFailed\" : outcome === \"resolve\" ? \"attachmentsDeleted\" : \"attachmentsDeleteFailed\";\n > 76 | expect(await screen.findByText(translations.nb[key])).toBeVisible();\n | ^\n 77 | expect(screen.queryByText(translations.en[key])).not.toBeInTheDocument();\n 78 | expect(write).toHaveBeenCalledWith(\"/attachments/7\", ...(action === \"rename\" ? [{ fileName: \"New name.pdf\" }] : []));\n 79 | });\n\n at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:163:27)\n at node_modules/@testing-library/dom/dist/query-helpers.js:86:33\n at findByText (src/attachment-action-lifetime.test.tsx:76:23)\n","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx","startTime":1794897188092,"status":"failed","summary":""}],"wasInterrupted":false} diff --git a/docs/ui-modernisation/evidence/attachment-action/red.json.gz b/docs/ui-modernisation/evidence/attachment-action/red.json.gz new file mode 100644 index 00000000..93cf9305 Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-action/red.json.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-action/red.txt b/docs/ui-modernisation/evidence/attachment-action/red.txt new file mode 100644 index 00000000..83a9a4da --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-action/red.txt @@ -0,0 +1,769 @@ +FAIL src/attachment-action-lifetime.test.tsx (21.156 s) + ● attachment rename decision after unmount cannot mutate the previous context + + expect(jest.fn()).not.toHaveBeenCalled() + + Expected number of calls: 0 + Received number of calls: 1 + + 1: "/attachments/7", {"fileName": "New name.pdf"} + + 57 | fireEvent.click(within(dialog).getByRole("button", { name: action === "rename" ? "Rename" : "Delete" })); + 58 | await act(async () => undefined); + > 59 | expect(mockedApi.patch).not.toHaveBeenCalled(); + | ^ + 60 | expect(mockedApi.delete).not.toHaveBeenCalled(); + 61 | expect(mockedApi.get).toHaveBeenCalledTimes(reads); + 62 | }); + + at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:59:31) + + ● attachment rename decision after job change cannot mutate the previous context + + expect(jest.fn()).not.toHaveBeenCalled() + + Expected number of calls: 0 + Received number of calls: 1 + + 1: "/attachments/7", {"fileName": "New name.pdf"} + + 57 | fireEvent.click(within(dialog).getByRole("button", { name: action === "rename" ? "Rename" : "Delete" })); + 58 | await act(async () => undefined); + > 59 | expect(mockedApi.patch).not.toHaveBeenCalled(); + | ^ + 60 | expect(mockedApi.delete).not.toHaveBeenCalled(); + 61 | expect(mockedApi.get).toHaveBeenCalledTimes(reads); + 62 | }); + + at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:59:31) + + ● attachment rename decision after session cannot mutate the previous context + + expect(jest.fn()).not.toHaveBeenCalled() + + Expected number of calls: 0 + Received number of calls: 1 + + 1: "/attachments/7", {"fileName": "New name.pdf"} + + 57 | fireEvent.click(within(dialog).getByRole("button", { name: action === "rename" ? "Rename" : "Delete" })); + 58 | await act(async () => undefined); + > 59 | expect(mockedApi.patch).not.toHaveBeenCalled(); + | ^ + 60 | expect(mockedApi.delete).not.toHaveBeenCalled(); + 61 | expect(mockedApi.get).toHaveBeenCalledTimes(reads); + 62 | }); + + at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:59:31) + + ● attachment delete decision after unmount cannot mutate the previous context + + expect(jest.fn()).not.toHaveBeenCalled() + + Expected number of calls: 0 + Received number of calls: 1 + + 1: "/attachments/7" + + 58 | await act(async () => undefined); + 59 | expect(mockedApi.patch).not.toHaveBeenCalled(); + > 60 | expect(mockedApi.delete).not.toHaveBeenCalled(); + | ^ + 61 | expect(mockedApi.get).toHaveBeenCalledTimes(reads); + 62 | }); + 63 | test.each([ + + at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:60:32) + + ● attachment delete decision after job change cannot mutate the previous context + + expect(jest.fn()).not.toHaveBeenCalled() + + Expected number of calls: 0 + Received number of calls: 1 + + 1: "/attachments/7" + + 58 | await act(async () => undefined); + 59 | expect(mockedApi.patch).not.toHaveBeenCalled(); + > 60 | expect(mockedApi.delete).not.toHaveBeenCalled(); + | ^ + 61 | expect(mockedApi.get).toHaveBeenCalledTimes(reads); + 62 | }); + 63 | test.each([ + + at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:60:32) + + ● attachment delete decision after session cannot mutate the previous context + + expect(jest.fn()).not.toHaveBeenCalled() + + Expected number of calls: 0 + Received number of calls: 1 + + 1: "/attachments/7" + + 58 | await act(async () => undefined); + 59 | expect(mockedApi.patch).not.toHaveBeenCalled(); + > 60 | expect(mockedApi.delete).not.toHaveBeenCalled(); + | ^ + 61 | expect(mockedApi.get).toHaveBeenCalledTimes(reads); + 62 | }); + 63 | test.each([ + + at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:60:32) + + ● attachment rename delayed resolve uses current language + + Unable to find an element with the text: Gi nytt navn fullført.. 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 + +
+
+
+
+

+ Vedlegg (1) +

+

+ Last opp CV-er, søknadsbrev, porteføljer og støttedokumenter for denne søknaden. +

+
+
+ + 0 bilder + +
+
+ + 1 PDF-er + +
+
+ + Maks 10 MB hver + +
+
+
+ + +
+
+

+ Dra og slipp filer her +

+

+ eller bruk opplastingsknappen for å velge dokumenter fra enheten din. +

+
+ + Innhold lastet. + +
+ + + + + + +
+ Navn + + Type + + Filtype + + ... + + 74 | await act(async () => { if (outcome === "resolve") pending.resolve({ data: {} }); else pending.reject(new Error("synthetic write failure")); }); + 75 | const key = action === "rename" ? outcome === "resolve" ? "attachmentsRenamed" : "attachmentsRenameFailed" : outcome === "resolve" ? "attachmentsDeleted" : "attachmentsDeleteFailed"; + > 76 | expect(await screen.findByText(translations.nb[key])).toBeVisible(); + | ^ + 77 | expect(screen.queryByText(translations.en[key])).not.toBeInTheDocument(); + 78 | expect(write).toHaveBeenCalledWith("/attachments/7", ...(action === "rename" ? [{ fileName: "New name.pdf" }] : [])); + 79 | }); + + 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/attachment-action-lifetime.test.tsx:76:23) + + ● attachment rename delayed reject uses current language + + Unable to find an element with the text: Kunne ikke gi nytt navn.. 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 + +
+
+
+
+

+ Vedlegg (1) +

+

+ Last opp CV-er, søknadsbrev, porteføljer og støttedokumenter for denne søknaden. +

+
+
+ + 0 bilder + +
+
+ + 1 PDF-er + +
+
+ + Maks 10 MB hver + +
+
+
+ + +
+
+

+ Dra og slipp filer her +

+

+ eller bruk opplastingsknappen for å velge dokumenter fra enheten din. +

+
+ + Innhold lastet. + +
+ + + + + + +
+ Navn + + Type + + Filtype + + ... + + 74 | await act(async () => { if (outcome === "resolve") pending.resolve({ data: {} }); else pending.reject(new Error("synthetic write failure")); }); + 75 | const key = action === "rename" ? outcome === "resolve" ? "attachmentsRenamed" : "attachmentsRenameFailed" : outcome === "resolve" ? "attachmentsDeleted" : "attachmentsDeleteFailed"; + > 76 | expect(await screen.findByText(translations.nb[key])).toBeVisible(); + | ^ + 77 | expect(screen.queryByText(translations.en[key])).not.toBeInTheDocument(); + 78 | expect(write).toHaveBeenCalledWith("/attachments/7", ...(action === "rename" ? [{ fileName: "New name.pdf" }] : [])); + 79 | }); + + 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/attachment-action-lifetime.test.tsx:76:23) + + ● attachment delete delayed resolve uses current language + + Unable to find an element with the text: Vedlegg slettet.. 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 + +
+
+
+
+

+ Vedlegg (1) +

+

+ Last opp CV-er, søknadsbrev, porteføljer og støttedokumenter for denne søknaden. +

+
+
+ + 0 bilder + +
+
+ + 1 PDF-er + +
+
+ + Maks 10 MB hver + +
+
+
+ + +
+
+

+ Dra og slipp filer her +

+

+ eller bruk opplastingsknappen for å velge dokumenter fra enheten din. +

+
+ + Innhold lastet. + +
+ + + + + + +
+ Navn + + Type + + Filtype + + ... + + 74 | await act(async () => { if (outcome === "resolve") pending.resolve({ data: {} }); else pending.reject(new Error("synthetic write failure")); }); + 75 | const key = action === "rename" ? outcome === "resolve" ? "attachmentsRenamed" : "attachmentsRenameFailed" : outcome === "resolve" ? "attachmentsDeleted" : "attachmentsDeleteFailed"; + > 76 | expect(await screen.findByText(translations.nb[key])).toBeVisible(); + | ^ + 77 | expect(screen.queryByText(translations.en[key])).not.toBeInTheDocument(); + 78 | expect(write).toHaveBeenCalledWith("/attachments/7", ...(action === "rename" ? [{ fileName: "New name.pdf" }] : [])); + 79 | }); + + 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/attachment-action-lifetime.test.tsx:76:23) + + ● attachment delete delayed reject uses current language + + Unable to find an element with the text: Sletting mislyktes.. 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 + +
+
+
+
+

+ Vedlegg (1) +

+

+ Last opp CV-er, søknadsbrev, porteføljer og støttedokumenter for denne søknaden. +

+
+
+ + 0 bilder + +
+
+ + 1 PDF-er + +
+
+ + Maks 10 MB hver + +
+
+
+ + +
+
+

+ Dra og slipp filer her +

+

+ eller bruk opplastingsknappen for å velge dokumenter fra enheten din. +

+
+ + Innhold lastet. + +
+ + + + + + +
+ Navn + + Type + + Filtype + + ... + + 74 | await act(async () => { if (outcome === "resolve") pending.resolve({ data: {} }); else pending.reject(new Error("synthetic write failure")); }); + 75 | const key = action === "rename" ? outcome === "resolve" ? "attachmentsRenamed" : "attachmentsRenameFailed" : outcome === "resolve" ? "attachmentsDeleted" : "attachmentsDeleteFailed"; + > 76 | expect(await screen.findByText(translations.nb[key])).toBeVisible(); + | ^ + 77 | expect(screen.queryByText(translations.en[key])).not.toBeInTheDocument(); + 78 | expect(write).toHaveBeenCalledWith("/attachments/7", ...(action === "rename" ? [{ fileName: "New name.pdf" }] : [])); + 79 | }); + + 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/attachment-action-lifetime.test.tsx:76:23) + +Test Suites: 1 failed, 1 total +Tests: 10 failed, 10 total +Snapshots: 0 total +Time: 22.037 s +Ran all test suites matching src/attachment-action-lifetime.test.tsx. +Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\attachment-action-red.json diff --git a/docs/ui-modernisation/evidence/attachment-action/red.txt.gz b/docs/ui-modernisation/evidence/attachment-action/red.txt.gz new file mode 100644 index 00000000..8372be27 Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-action/red.txt.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-action/typecheck.txt b/docs/ui-modernisation/evidence/attachment-action/typecheck.txt new file mode 100644 index 00000000..e69de29b diff --git a/docs/ui-modernisation/evidence/attachment-action/typecheck.txt.gz b/docs/ui-modernisation/evidence/attachment-action/typecheck.txt.gz new file mode 100644 index 00000000..ae211a2c Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-action/typecheck.txt.gz differ