diff --git a/docs/ui-modernisation/ATTACHMENT_DIALOG_VALIDATION.md b/docs/ui-modernisation/ATTACHMENT_DIALOG_VALIDATION.md new file mode 100644 index 00000000..d5299271 --- /dev/null +++ b/docs/ui-modernisation/ATTACHMENT_DIALOG_VALIDATION.md @@ -0,0 +1,11 @@ +# Attachment dialog language continuity + +17 November 2026. Source `19c3ebf1` on `codex/a3-ui-10`, after published dialog contract `67ca1562`. + +Attachment rename/delete now opt into live dialog translation metadata. Filenames stay literal interpolation data and the rename default/draft stays user input. Language changes no longer reload the attachment list: one existing read stays one rather than two. Its delayed failure uses the current translation through the existing ref pattern. Existing upload, file purpose/AI controls, preview/download, delete/rename payloads and confirmation outcome are unchanged. + +Verification: four real caller EN/NB dialog cases first FAILED on snapshot copy. After metadata migration, the same four exposed the pre-existing extra-read dependency; that intermediate failure is retained. Final31 cases/three suites PASSED, including two added pending-read/current-language failure cases. Earlier29-case and25-pass/four-failure receipts overlap; do not add them. Project TypeScript, scoped two-file ESLint and diff check PASSED. + +Tests use synthetic Unicode/markup filenames, real providers and mocked API; they cancel both actions, checking no PATCH/DELETE, preserved input selection and no additional reads. Generic dialog acceptance is covered by the preceding contract package. No real file mutation/provider, native browser/device, final visual/security/release or complete attachment lifetime acceptance is claimed. Post-confirmation mutation feedback/lifetime and already-visible error language changes remain separate work. + +Native outputs and exact gzip copies are in `evidence/attachment-dialog/`; `SOURCE_RECEIPTS.json` binds immutable source and outputs. Rollback: revert this source commit only, without data/schema migration. Next eligible: CV library explicit dialog copy, then remaining attachment action lifetime/current-language completion checks. diff --git a/docs/ui-modernisation/evidence/attachment-dialog/SOURCE_RECEIPTS.json b/docs/ui-modernisation/evidence/attachment-dialog/SOURCE_RECEIPTS.json new file mode 100644 index 00000000..f5752825 --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-dialog/SOURCE_RECEIPTS.json @@ -0,0 +1,81 @@ +{ + "sourceCommit": "19c3ebf11dda33b2a3e7dbebd840588b2517ceb4", + "sourcesLfSha256": { + "job-tracker-ui/src/attachments.test.tsx": "20b023eedce62a660149c8436426bae0c5d2b2410b318069ab7f798fca6bc51b", + "job-tracker-ui/src/components/Attachments.tsx": "dd0b854477ca835e18d630583756e26d253617b705a6488ff0dacec3ca1c0528" + }, + "evidenceLfSha256": { + "red.json": "23a2e54d732e1491f3ec2fc172e0a92823549a0e81a51c302b9400f703b90e7c", + "red.txt": "90b1c0dc1d256708eb3ff87c581af499966f779aa7e9bbe8d2f8aacfe3054c74", + "green.json": "7146c1a9e9c385b91c5dfeae93e8fd201107654b69b9ccbf941a3183b8ec4b61", + "green.txt": "1cc7f5792ae9702fe9ae9b3cc5ff4156910309162cec7199164a9f8079ece557", + "final.json": "90bab17ac6466165fd35baef455d3469082ea33d2db38d622f0c9beae19e7fa3", + "final.txt": "3532f2224a18b598cbf8dbd8157c6565e255405412d696e72ec588ed720ddbc2", + "verified.json": "e87f1e17e0751999b1e41231636ff671090990375fbf22038489e36d02ef2418", + "verified.txt": "a61cfbddf10a764af4c4921ff8884ecf45a7be21db95f38b6a564dd9ad6191da", + "typecheck.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "lint.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + "nativeReceipts": [ + { + "path": "red.json", + "gzipPath": "red.json.gz", + "rawSha256": "23a2e54d732e1491f3ec2fc172e0a92823549a0e81a51c302b9400f703b90e7c", + "gzipSha256": "e29700ebaea1dd26b8b2a42bbdbcfe79d9f375080d08789b3e44a557a93bc30f" + }, + { + "path": "red.txt", + "gzipPath": "red.txt.gz", + "rawSha256": "25c37610b08b0146a7bbebb3e6a80a9d9ce4e5b78ef33b30ff114beebf0da265", + "gzipSha256": "2ff7f2e49a3cbe763480a083366720bc1f6518bafb2dbfe25d9defb8bcd3c980" + }, + { + "path": "green.json", + "gzipPath": "green.json.gz", + "rawSha256": "7146c1a9e9c385b91c5dfeae93e8fd201107654b69b9ccbf941a3183b8ec4b61", + "gzipSha256": "a6f06ae85c59f8c37721e87bd67be2ae7004483c6506f2833596d51d48c40d38" + }, + { + "path": "green.txt", + "gzipPath": "green.txt.gz", + "rawSha256": "ae2781b82974a5733c8177499ce76f6d659cb8399f7a875175addba7718c6499", + "gzipSha256": "2d4e7c5e90fc3dfb1d42d839b8f985a8b6888d8c51be665597107a6e0096f066" + }, + { + "path": "final.json", + "gzipPath": "final.json.gz", + "rawSha256": "90bab17ac6466165fd35baef455d3469082ea33d2db38d622f0c9beae19e7fa3", + "gzipSha256": "a70f652a8785cecc946dd4154cd560a559b0bc223d4ff37042e645a81848f997" + }, + { + "path": "final.txt", + "gzipPath": "final.txt.gz", + "rawSha256": "b4a883d235f3c8f18a96e8a88a7c99b898e8efe5cd44117b6462049458f4ae67", + "gzipSha256": "092e2eca279ad9723e5bc91e721a7bfa89b289bab7a259da82c1a4267f7b9c5b" + }, + { + "path": "verified.json", + "gzipPath": "verified.json.gz", + "rawSha256": "e87f1e17e0751999b1e41231636ff671090990375fbf22038489e36d02ef2418", + "gzipSha256": "ce932bec7dcdbe22a3204c16f23001fdb473dd990d4b69a8218cbbe096289b08" + }, + { + "path": "verified.txt", + "gzipPath": "verified.txt.gz", + "rawSha256": "fe10ee55ac97ec08da725feaa26ec03187cc8e9dbe72c530249a32881ba05228", + "gzipSha256": "057baedc19828239c13e6ff2182665abf28eef114493f91e831d916205faae23" + }, + { + "path": "typecheck.txt", + "gzipPath": "typecheck.txt.gz", + "rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e" + }, + { + "path": "lint.txt", + "gzipPath": "lint.txt.gz", + "rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e" + } + ] +} diff --git a/docs/ui-modernisation/evidence/attachment-dialog/final.json b/docs/ui-modernisation/evidence/attachment-dialog/final.json new file mode 100644 index 00000000..580f21fc --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-dialog/final.json @@ -0,0 +1 @@ +{"numFailedTestSuites":0,"numFailedTests":0,"numPassedTestSuites":3,"numPassedTests":29,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":3,"numTotalTests":29,"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":1794896710133,"success":true,"testResults":[{"assertionResults":[{"ancestorTitles":[],"duration":660,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment rename follows en to nb without changing file data","invocations":1,"location":null,"numPassingAsserts":13,"retryReasons":[],"startAt":1794896713924,"status":"passed","title":"pending attachment rename follows en to nb without changing file data"},{"ancestorTitles":[],"duration":413,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment rename follows nb to en without changing file data","invocations":1,"location":null,"numPassingAsserts":13,"retryReasons":[],"startAt":1794896714585,"status":"passed","title":"pending attachment rename follows nb to en without changing file data"},{"ancestorTitles":[],"duration":401,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment delete follows en to nb without changing file data","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"startAt":1794896714999,"status":"passed","title":"pending attachment delete follows en to nb without changing file data"},{"ancestorTitles":[],"duration":401,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment delete follows nb to en without changing file data","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"startAt":1794896715401,"status":"passed","title":"pending attachment delete follows nb to en without changing file data"},{"ancestorTitles":[],"duration":63,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment size follows the UI locale (en)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794896715802,"status":"passed","title":"attachment size follows the UI locale (en)"},{"ancestorTitles":[],"duration":61,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment size follows the UI locale (nb)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794896715865,"status":"passed","title":"attachment size follows the UI locale (nb)"},{"ancestorTitles":[],"duration":169,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"PDF preview identifies the document in en","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794896715927,"status":"passed","title":"PDF preview identifies the document in en"},{"ancestorTitles":[],"duration":138,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"PDF preview identifies the document in nb","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794896716096,"status":"passed","title":"PDF preview identifies the document in nb"},{"ancestorTitles":[],"duration":45,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachments empty state renders drag and drop guidance","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794896716234,"status":"passed","title":"attachments empty state renders drag and drop guidance"},{"ancestorTitles":[],"duration":260,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachments metadata controls update purpose and ai usage","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794896716280,"status":"passed","title":"attachments metadata controls update purpose and ai usage"},{"ancestorTitles":[],"duration":62,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment failures remain explicit and retry restores the real empty state","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794896716540,"status":"passed","title":"attachment failures remain explicit and retry restores the real empty state"}],"endTime":1794896716604,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachments.test.tsx","startTime":1794896711010,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"duration":343,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending confirm resolves metadata from en to nb and settles once","invocations":1,"location":null,"numPassingAsserts":12,"retryReasons":[],"startAt":1794896717393,"status":"passed","title":"pending confirm resolves metadata from en to nb and settles once"},{"ancestorTitles":[],"duration":293,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending confirm resolves metadata from nb to en and settles once","invocations":1,"location":null,"numPassingAsserts":12,"retryReasons":[],"startAt":1794896717737,"status":"passed","title":"pending confirm resolves metadata from nb to en and settles once"},{"ancestorTitles":[],"duration":342,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending prompt resolves metadata from en to nb and settles once","invocations":1,"location":null,"numPassingAsserts":18,"retryReasons":[],"startAt":1794896718030,"status":"passed","title":"pending prompt resolves metadata from en to nb and settles once"},{"ancestorTitles":[],"duration":441,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending prompt resolves metadata from nb to en and settles once","invocations":1,"location":null,"numPassingAsserts":18,"retryReasons":[],"startAt":1794896718373,"status":"passed","title":"pending prompt resolves metadata from nb to en and settles once"},{"ancestorTitles":[],"duration":107,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"confirm metadata falls back to interpolated English without I18n context","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794896718814,"status":"passed","title":"confirm metadata falls back to interpolated English without I18n context"},{"ancestorTitles":[],"duration":196,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prompt metadata falls back to interpolated English without I18n context","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794896718922,"status":"passed","title":"prompt metadata falls back to interpolated English without I18n context"},{"ancestorTitles":[],"duration":169,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"confirm leaves literal \"\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794896719118,"status":"passed","title":"confirm leaves literal \"\" verbatim during locale changes"},{"ancestorTitles":[],"duration":220,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prompt leaves literal \"\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794896719287,"status":"passed","title":"prompt leaves literal \"\" verbatim during locale changes"},{"ancestorTitles":[],"duration":164,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"confirm leaves literal \"confirmAction\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794896719507,"status":"passed","title":"confirm leaves literal \"confirmAction\" verbatim during locale changes"},{"ancestorTitles":[],"duration":158,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prompt leaves literal \"enterValue\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794896719671,"status":"passed","title":"prompt leaves literal \"enterValue\" verbatim during locale changes"}],"endTime":1794896719830,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\dialog-text.test.tsx","startTime":1794896716617,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"duration":124,"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":1794896725434,"status":"passed","title":"attachment Upload activates the same native input from Enter, Space and pointer"},{"ancestorTitles":[],"duration":49,"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":1794896725559,"status":"passed","title":"Import JSON activates its own native input from Enter, Space and pointer"},{"ancestorTitles":[],"duration":44,"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":1794896725608,"status":"passed","title":"Convert CSV to Import JSON activates its own native input from Enter, Space and pointer"},{"ancestorTitles":[],"duration":597,"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":1794896725652,"status":"passed","title":"Add Job attachment bucket 0 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":450,"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":1794896726249,"status":"passed","title":"Add Job attachment bucket 1 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":527,"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":1794896726700,"status":"passed","title":"Add Job attachment bucket 2 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":577,"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":1794896727227,"status":"passed","title":"Add Job attachment bucket 3 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":161,"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":1794896727804,"status":"passed","title":"attachment selection retains files and job ownership, disables activation while uploading and clears selection after completion"}],"endTime":1794896727966,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\file-picker-activation.test.tsx","startTime":1794896719845,"status":"passed","summary":""}],"wasInterrupted":false} diff --git a/docs/ui-modernisation/evidence/attachment-dialog/final.json.gz b/docs/ui-modernisation/evidence/attachment-dialog/final.json.gz new file mode 100644 index 00000000..86a39cc4 Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-dialog/final.json.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-dialog/final.txt b/docs/ui-modernisation/evidence/attachment-dialog/final.txt new file mode 100644 index 00000000..8caaf183 --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-dialog/final.txt @@ -0,0 +1,7 @@ + +Test Suites: 3 passed, 3 total +Tests: 29 passed, 29 total +Snapshots: 0 total +Time: 17.838 s +Ran all test suites matching 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-dialog-final.json diff --git a/docs/ui-modernisation/evidence/attachment-dialog/final.txt.gz b/docs/ui-modernisation/evidence/attachment-dialog/final.txt.gz new file mode 100644 index 00000000..416d72e9 Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-dialog/final.txt.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-dialog/green.json b/docs/ui-modernisation/evidence/attachment-dialog/green.json new file mode 100644 index 00000000..71bb0c48 --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-dialog/green.json @@ -0,0 +1 @@ +{"numFailedTestSuites":1,"numFailedTests":4,"numPassedTestSuites":2,"numPassedTests":25,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":3,"numTotalTests":29,"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":1794896630739,"success":false,"testResults":[{"assertionResults":[{"ancestorTitles":[],"duration":457,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).toHaveBeenCalledTimes(expected)\n\nExpected number of calls: 1\nReceived number of calls: 2","pass":false}}],"failureMessages":["Error: expect(jest.fn()).toHaveBeenCalledTimes(expected)\n\nExpected number of calls: 1\nReceived number of calls: 2\n at toHaveBeenCalledTimes (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachments.test.tsx:59:27)"],"fullName":"pending attachment rename follows en to nb without changing file data","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794896634289,"status":"failed","title":"pending attachment rename follows en to nb without changing file data"},{"ancestorTitles":[],"duration":203,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).toHaveBeenCalledTimes(expected)\n\nExpected number of calls: 1\nReceived number of calls: 2","pass":false}}],"failureMessages":["Error: expect(jest.fn()).toHaveBeenCalledTimes(expected)\n\nExpected number of calls: 1\nReceived number of calls: 2\n at toHaveBeenCalledTimes (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachments.test.tsx:59:27)"],"fullName":"pending attachment rename follows nb to en without changing file data","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794896634753,"status":"failed","title":"pending attachment rename follows nb to en without changing file data"},{"ancestorTitles":[],"duration":204,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).toHaveBeenCalledTimes(expected)\n\nExpected number of calls: 1\nReceived number of calls: 2","pass":false}}],"failureMessages":["Error: expect(jest.fn()).toHaveBeenCalledTimes(expected)\n\nExpected number of calls: 1\nReceived number of calls: 2\n at toHaveBeenCalledTimes (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachments.test.tsx:59:27)"],"fullName":"pending attachment delete follows en to nb without changing file data","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794896634957,"status":"failed","title":"pending attachment delete follows en to nb without changing file data"},{"ancestorTitles":[],"duration":186,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).toHaveBeenCalledTimes(expected)\n\nExpected number of calls: 1\nReceived number of calls: 2","pass":false}}],"failureMessages":["Error: expect(jest.fn()).toHaveBeenCalledTimes(expected)\n\nExpected number of calls: 1\nReceived number of calls: 2\n at toHaveBeenCalledTimes (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachments.test.tsx:59:27)"],"fullName":"pending attachment delete follows nb to en without changing file data","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794896635161,"status":"failed","title":"pending attachment delete follows nb to en without changing file data"},{"ancestorTitles":[],"duration":58,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment size follows the UI locale (en)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794896635347,"status":"passed","title":"attachment size follows the UI locale (en)"},{"ancestorTitles":[],"duration":63,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment size follows the UI locale (nb)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794896635405,"status":"passed","title":"attachment size follows the UI locale (nb)"},{"ancestorTitles":[],"duration":138,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"PDF preview identifies the document in en","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794896635468,"status":"passed","title":"PDF preview identifies the document in en"},{"ancestorTitles":[],"duration":139,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"PDF preview identifies the document in nb","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794896635606,"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":1794896635745,"status":"passed","title":"attachments empty state renders drag and drop guidance"},{"ancestorTitles":[],"duration":234,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachments metadata controls update purpose and ai usage","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794896635775,"status":"passed","title":"attachments metadata controls update purpose and ai usage"},{"ancestorTitles":[],"duration":76,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment failures remain explicit and retry restores the real empty state","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794896636009,"status":"passed","title":"attachment failures remain explicit and retry restores the real empty state"}],"endTime":1794896636103,"message":" ● pending attachment rename follows en to nb without changing file data\n\n expect(jest.fn()).toHaveBeenCalledTimes(expected)\n\n Expected number of calls: 1\n Received number of calls: 2\n\n 57 | }\n 58 | expect(dialog.querySelector('draft')).toBeNull();\n > 59 | expect(mockedApi.get).toHaveBeenCalledTimes(reads);\n | ^\n 60 | fireEvent.click(within(dialog).getByRole('button', { name: translations[to].cancel }));\n 61 | await waitFor(() => expect(screen.queryByRole('dialog')).not.toBeInTheDocument());\n 62 | expect(mockedApi.patch).not.toHaveBeenCalled();\n\n at toHaveBeenCalledTimes (src/attachments.test.tsx:59:27)\n\n ● pending attachment rename follows nb to en without changing file data\n\n expect(jest.fn()).toHaveBeenCalledTimes(expected)\n\n Expected number of calls: 1\n Received number of calls: 2\n\n 57 | }\n 58 | expect(dialog.querySelector('draft')).toBeNull();\n > 59 | expect(mockedApi.get).toHaveBeenCalledTimes(reads);\n | ^\n 60 | fireEvent.click(within(dialog).getByRole('button', { name: translations[to].cancel }));\n 61 | await waitFor(() => expect(screen.queryByRole('dialog')).not.toBeInTheDocument());\n 62 | expect(mockedApi.patch).not.toHaveBeenCalled();\n\n at toHaveBeenCalledTimes (src/attachments.test.tsx:59:27)\n\n ● pending attachment delete follows en to nb without changing file data\n\n expect(jest.fn()).toHaveBeenCalledTimes(expected)\n\n Expected number of calls: 1\n Received number of calls: 2\n\n 57 | }\n 58 | expect(dialog.querySelector('draft')).toBeNull();\n > 59 | expect(mockedApi.get).toHaveBeenCalledTimes(reads);\n | ^\n 60 | fireEvent.click(within(dialog).getByRole('button', { name: translations[to].cancel }));\n 61 | await waitFor(() => expect(screen.queryByRole('dialog')).not.toBeInTheDocument());\n 62 | expect(mockedApi.patch).not.toHaveBeenCalled();\n\n at toHaveBeenCalledTimes (src/attachments.test.tsx:59:27)\n\n ● pending attachment delete follows nb to en without changing file data\n\n expect(jest.fn()).toHaveBeenCalledTimes(expected)\n\n Expected number of calls: 1\n Received number of calls: 2\n\n 57 | }\n 58 | expect(dialog.querySelector('draft')).toBeNull();\n > 59 | expect(mockedApi.get).toHaveBeenCalledTimes(reads);\n | ^\n 60 | fireEvent.click(within(dialog).getByRole('button', { name: translations[to].cancel }));\n 61 | await waitFor(() => expect(screen.queryByRole('dialog')).not.toBeInTheDocument());\n 62 | expect(mockedApi.patch).not.toHaveBeenCalled();\n\n at toHaveBeenCalledTimes (src/attachments.test.tsx:59:27)\n","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachments.test.tsx","startTime":1794896631625,"status":"failed","summary":""},{"assertionResults":[{"ancestorTitles":[],"duration":335,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending confirm resolves metadata from en to nb and settles once","invocations":1,"location":null,"numPassingAsserts":12,"retryReasons":[],"startAt":1794896636899,"status":"passed","title":"pending confirm resolves metadata from en to nb and settles once"},{"ancestorTitles":[],"duration":293,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending confirm resolves metadata from nb to en and settles once","invocations":1,"location":null,"numPassingAsserts":12,"retryReasons":[],"startAt":1794896637234,"status":"passed","title":"pending confirm resolves metadata from nb to en and settles once"},{"ancestorTitles":[],"duration":356,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending prompt resolves metadata from en to nb and settles once","invocations":1,"location":null,"numPassingAsserts":18,"retryReasons":[],"startAt":1794896637527,"status":"passed","title":"pending prompt resolves metadata from en to nb and settles once"},{"ancestorTitles":[],"duration":325,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending prompt resolves metadata from nb to en and settles once","invocations":1,"location":null,"numPassingAsserts":18,"retryReasons":[],"startAt":1794896637883,"status":"passed","title":"pending prompt resolves metadata from nb to en and settles once"},{"ancestorTitles":[],"duration":44,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"confirm metadata falls back to interpolated English without I18n context","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794896638208,"status":"passed","title":"confirm metadata falls back to interpolated English without I18n context"},{"ancestorTitles":[],"duration":125,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prompt metadata falls back to interpolated English without I18n context","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794896638252,"status":"passed","title":"prompt metadata falls back to interpolated English without I18n context"},{"ancestorTitles":[],"duration":92,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"confirm leaves literal \"\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794896638377,"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":1794896638469,"status":"passed","title":"prompt leaves literal \"\" verbatim during locale changes"},{"ancestorTitles":[],"duration":77,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"confirm leaves literal \"confirmAction\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794896638593,"status":"passed","title":"confirm leaves literal \"confirmAction\" verbatim during locale changes"},{"ancestorTitles":[],"duration":137,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prompt leaves literal \"enterValue\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794896638671,"status":"passed","title":"prompt leaves literal \"enterValue\" verbatim during locale changes"}],"endTime":1794896638809,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\dialog-text.test.tsx","startTime":1794896636118,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"duration":74,"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":1794896640548,"status":"passed","title":"attachment Upload activates the same native input from Enter, Space and pointer"},{"ancestorTitles":[],"duration":32,"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":1794896640622,"status":"passed","title":"Import JSON activates its own native input from Enter, Space and pointer"},{"ancestorTitles":[],"duration":30,"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":1794896640654,"status":"passed","title":"Convert CSV to Import JSON activates its own native input from Enter, Space and pointer"},{"ancestorTitles":[],"duration":456,"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":1794896640684,"status":"passed","title":"Add Job attachment bucket 0 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":346,"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":1794896641141,"status":"passed","title":"Add Job attachment bucket 1 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":376,"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":1794896641487,"status":"passed","title":"Add Job attachment bucket 2 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":443,"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":1794896641863,"status":"passed","title":"Add Job attachment bucket 3 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":125,"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":1794896642307,"status":"passed","title":"attachment selection retains files and job ownership, disables activation while uploading and clears selection after completion"}],"endTime":1794896642433,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\file-picker-activation.test.tsx","startTime":1794896638817,"status":"passed","summary":""}],"wasInterrupted":false} diff --git a/docs/ui-modernisation/evidence/attachment-dialog/green.json.gz b/docs/ui-modernisation/evidence/attachment-dialog/green.json.gz new file mode 100644 index 00000000..e8e62e7c Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-dialog/green.json.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-dialog/green.txt b/docs/ui-modernisation/evidence/attachment-dialog/green.txt new file mode 100644 index 00000000..5c99c1d3 --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-dialog/green.txt @@ -0,0 +1,76 @@ +FAIL src/attachments.test.tsx + ● pending attachment rename follows en to nb without changing file data + + expect(jest.fn()).toHaveBeenCalledTimes(expected) + + Expected number of calls: 1 + Received number of calls: 2 + + 57 | } + 58 | expect(dialog.querySelector('draft')).toBeNull(); + > 59 | expect(mockedApi.get).toHaveBeenCalledTimes(reads); + | ^ + 60 | fireEvent.click(within(dialog).getByRole('button', { name: translations[to].cancel })); + 61 | await waitFor(() => expect(screen.queryByRole('dialog')).not.toBeInTheDocument()); + 62 | expect(mockedApi.patch).not.toHaveBeenCalled(); + + at toHaveBeenCalledTimes (src/attachments.test.tsx:59:27) + + ● pending attachment rename follows nb to en without changing file data + + expect(jest.fn()).toHaveBeenCalledTimes(expected) + + Expected number of calls: 1 + Received number of calls: 2 + + 57 | } + 58 | expect(dialog.querySelector('draft')).toBeNull(); + > 59 | expect(mockedApi.get).toHaveBeenCalledTimes(reads); + | ^ + 60 | fireEvent.click(within(dialog).getByRole('button', { name: translations[to].cancel })); + 61 | await waitFor(() => expect(screen.queryByRole('dialog')).not.toBeInTheDocument()); + 62 | expect(mockedApi.patch).not.toHaveBeenCalled(); + + at toHaveBeenCalledTimes (src/attachments.test.tsx:59:27) + + ● pending attachment delete follows en to nb without changing file data + + expect(jest.fn()).toHaveBeenCalledTimes(expected) + + Expected number of calls: 1 + Received number of calls: 2 + + 57 | } + 58 | expect(dialog.querySelector('draft')).toBeNull(); + > 59 | expect(mockedApi.get).toHaveBeenCalledTimes(reads); + | ^ + 60 | fireEvent.click(within(dialog).getByRole('button', { name: translations[to].cancel })); + 61 | await waitFor(() => expect(screen.queryByRole('dialog')).not.toBeInTheDocument()); + 62 | expect(mockedApi.patch).not.toHaveBeenCalled(); + + at toHaveBeenCalledTimes (src/attachments.test.tsx:59:27) + + ● pending attachment delete follows nb to en without changing file data + + expect(jest.fn()).toHaveBeenCalledTimes(expected) + + Expected number of calls: 1 + Received number of calls: 2 + + 57 | } + 58 | expect(dialog.querySelector('draft')).toBeNull(); + > 59 | expect(mockedApi.get).toHaveBeenCalledTimes(reads); + | ^ + 60 | fireEvent.click(within(dialog).getByRole('button', { name: translations[to].cancel })); + 61 | await waitFor(() => expect(screen.queryByRole('dialog')).not.toBeInTheDocument()); + 62 | expect(mockedApi.patch).not.toHaveBeenCalled(); + + at toHaveBeenCalledTimes (src/attachments.test.tsx:59:27) + + +Test Suites: 1 failed, 2 passed, 3 total +Tests: 4 failed, 25 passed, 29 total +Snapshots: 0 total +Time: 11.698 s +Ran all test suites matching 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-dialog-green.json diff --git a/docs/ui-modernisation/evidence/attachment-dialog/green.txt.gz b/docs/ui-modernisation/evidence/attachment-dialog/green.txt.gz new file mode 100644 index 00000000..9349e2f9 Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-dialog/green.txt.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-dialog/lint.txt b/docs/ui-modernisation/evidence/attachment-dialog/lint.txt new file mode 100644 index 00000000..e69de29b diff --git a/docs/ui-modernisation/evidence/attachment-dialog/lint.txt.gz b/docs/ui-modernisation/evidence/attachment-dialog/lint.txt.gz new file mode 100644 index 00000000..ae211a2c Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-dialog/lint.txt.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-dialog/red.json b/docs/ui-modernisation/evidence/attachment-dialog/red.json new file mode 100644 index 00000000..1fe5bb90 --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-dialog/red.json @@ -0,0 +1 @@ +{"numFailedTestSuites":1,"numFailedTests":4,"numPassedTestSuites":0,"numPassedTests":0,"numPendingTestSuites":0,"numPendingTests":7,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":1,"numTotalTests":11,"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":1794896600255,"success":false,"testResults":[{"assertionResults":[{"ancestorTitles":[],"duration":564,"failing":false,"failureDetails":[{"name":"TestingLibraryElementError"}],"failureMessages":["TestingLibraryElementError: Unable to find an accessible element with the role \"dialog\" and name \"Gi nytt navn til vedlegg\"\n\nHere are the accessible roles:\n\n presentation:\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n dialog:\n\n Name \"Rename attachment\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n heading:\n\n Name \"Rename attachment\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n paragraph:\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n textbox:\n\n Name \"Rename attachment to:\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n button:\n\n Name \"Avbryt\":\n \u001b[36m\u001b[39m\n\n Name \"Rename\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\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 Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n dialog:\n\n Name \"Gi nytt navn til vedlegg\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n heading:\n\n Name \"Gi nytt navn til vedlegg\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n paragraph:\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n textbox:\n\n Name \"Gi vedlegget nytt navn:\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n button:\n\n Name \"Cancel\":\n \u001b[36m\u001b[39m\n\n Name \"Gi nytt navn\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\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[0mAttachments (1)\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mUpload resumes, cover letters, portfolios, and supporting files for this application.\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 images\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 PDFs\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mMax 10 MB each\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[0mUpload\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[0mDrag and drop files here\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mor use the upload button to choose documents from your device.\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mContent loaded.\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[0mName\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mKind\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\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n dialog:\n\n Name \"Delete attachment\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n heading:\n\n Name \"Delete attachment\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n region:\n\n Name \"Delete attachment\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n alert:\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n paragraph:\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n button:\n\n Name \"Avbryt\":\n \u001b[36m\u001b[39m\n\n Name \"Delete\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\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 Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n dialog:\n\n Name \"Slett vedlegg\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n heading:\n\n Name \"Slett vedlegg\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n region:\n\n Name \"Slett vedlegg\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n alert:\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n paragraph:\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n button:\n\n Name \"Cancel\":\n \u001b[36m\u001b[39m\n\n Name \"Slett\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\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[0mAttachments (1)\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mUpload resumes, cover letters, portfolios, and supporting files for this application.\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 images\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 PDFs\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mMax 10 MB each\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[0mUpload\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[0mDrag and drop files here\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mor use the upload button to choose documents from your device.\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mContent loaded.\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[0mName\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mKind\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\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n dialog:\n\n Name \"Rename attachment\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n heading:\n\n Name \"Rename attachment\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n paragraph:\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n textbox:\n\n Name \"Rename attachment to:\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n button:\n\n Name \"Avbryt\":\n \u001b[36m\u001b[39m\n\n Name \"Rename\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\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 { window.dispatchEvent(new StorageEvent('storage', { key: 'uiLanguage', newValue: to })); });\n > 50 | expect(screen.getByRole('dialog', { name: translations[to][titleKey] })).toBe(dialog);\n | ^\n 51 | expect(within(dialog).getByRole('button', { name: translations[to][labelKey] })).toBeVisible();\n 52 | expect(dialog).toHaveAccessibleDescription(action === 'rename' ? translations[to].attachmentsRenamePrompt : translations[to].attachmentsDeleteConfirm.replace('{name}', fileName));\n 53 | if (input) {\n\n at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)\n at node_modules/@testing-library/dom/dist/query-helpers.js:76:38\n at node_modules/@testing-library/dom/dist/query-helpers.js:52:17\n at node_modules/@testing-library/dom/dist/query-helpers.js:95:19\n at getByRole (src/attachments.test.tsx:50:19)\n\n ● pending attachment rename follows nb to en without changing file data\n\n TestingLibraryElementError: Unable to find an accessible element with the role \"dialog\" and name \"Rename attachment\"\n\n Here are the accessible roles:\n\n presentation:\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n dialog:\n\n Name \"Gi nytt navn til vedlegg\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n heading:\n\n Name \"Gi nytt navn til vedlegg\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n paragraph:\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n textbox:\n\n Name \"Gi vedlegget nytt navn:\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n button:\n\n Name \"Cancel\":\n \u001b[36m\u001b[39m\n\n Name \"Gi nytt navn\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\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[0mAttachments (1)\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mUpload resumes, cover letters, portfolios, and supporting files for this application.\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 images\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 PDFs\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mMax 10 MB each\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[0mUpload\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[0mDrag and drop files here\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mor use the upload button to choose documents from your device.\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mContent loaded.\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[0mName\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mKind\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 { window.dispatchEvent(new StorageEvent('storage', { key: 'uiLanguage', newValue: to })); });\n > 50 | expect(screen.getByRole('dialog', { name: translations[to][titleKey] })).toBe(dialog);\n | ^\n 51 | expect(within(dialog).getByRole('button', { name: translations[to][labelKey] })).toBeVisible();\n 52 | expect(dialog).toHaveAccessibleDescription(action === 'rename' ? translations[to].attachmentsRenamePrompt : translations[to].attachmentsDeleteConfirm.replace('{name}', fileName));\n 53 | if (input) {\n\n at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)\n at node_modules/@testing-library/dom/dist/query-helpers.js:76:38\n at node_modules/@testing-library/dom/dist/query-helpers.js:52:17\n at node_modules/@testing-library/dom/dist/query-helpers.js:95:19\n at getByRole (src/attachments.test.tsx:50:19)\n\n ● pending attachment delete follows en to nb without changing file data\n\n TestingLibraryElementError: Unable to find an accessible element with the role \"dialog\" and name \"Slett vedlegg\"\n\n Here are the accessible roles:\n\n presentation:\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n dialog:\n\n Name \"Delete attachment\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n heading:\n\n Name \"Delete attachment\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n region:\n\n Name \"Delete attachment\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n alert:\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n paragraph:\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n button:\n\n Name \"Avbryt\":\n \u001b[36m\u001b[39m\n\n Name \"Delete\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\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 { window.dispatchEvent(new StorageEvent('storage', { key: 'uiLanguage', newValue: to })); });\n > 50 | expect(screen.getByRole('dialog', { name: translations[to][titleKey] })).toBe(dialog);\n | ^\n 51 | expect(within(dialog).getByRole('button', { name: translations[to][labelKey] })).toBeVisible();\n 52 | expect(dialog).toHaveAccessibleDescription(action === 'rename' ? translations[to].attachmentsRenamePrompt : translations[to].attachmentsDeleteConfirm.replace('{name}', fileName));\n 53 | if (input) {\n\n at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)\n at node_modules/@testing-library/dom/dist/query-helpers.js:76:38\n at node_modules/@testing-library/dom/dist/query-helpers.js:52:17\n at node_modules/@testing-library/dom/dist/query-helpers.js:95:19\n at getByRole (src/attachments.test.tsx:50:19)\n\n ● pending attachment delete follows nb to en without changing file data\n\n TestingLibraryElementError: Unable to find an accessible element with the role \"dialog\" and name \"Delete attachment\"\n\n Here are the accessible roles:\n\n presentation:\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n dialog:\n\n Name \"Slett vedlegg\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n heading:\n\n Name \"Slett vedlegg\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n region:\n\n Name \"Slett vedlegg\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n alert:\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n paragraph:\n\n Name \"\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\n button:\n\n Name \"Cancel\":\n \u001b[36m\u001b[39m\n\n Name \"Slett\":\n \u001b[36m\u001b[39m\n\n --------------------------------------------------\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[0mAttachments (1)\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mUpload resumes, cover letters, portfolios, and supporting files for this application.\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 images\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 PDFs\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mMax 10 MB each\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[0mUpload\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[0mDrag and drop files here\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mor use the upload button to choose documents from your device.\u001b[0m\n \u001b[36m

\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mContent loaded.\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[0mName\u001b[0m\n \u001b[36m\u001b[39m\n \u001b[36m\u001b[39m\n \u001b[0mKind\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 { window.dispatchEvent(new StorageEvent('storage', { key: 'uiLanguage', newValue: to })); });\n > 50 | expect(screen.getByRole('dialog', { name: translations[to][titleKey] })).toBe(dialog);\n | ^\n 51 | expect(within(dialog).getByRole('button', { name: translations[to][labelKey] })).toBeVisible();\n 52 | expect(dialog).toHaveAccessibleDescription(action === 'rename' ? translations[to].attachmentsRenamePrompt : translations[to].attachmentsDeleteConfirm.replace('{name}', fileName));\n 53 | if (input) {\n\n at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)\n at node_modules/@testing-library/dom/dist/query-helpers.js:76:38\n at node_modules/@testing-library/dom/dist/query-helpers.js:52:17\n at node_modules/@testing-library/dom/dist/query-helpers.js:95:19\n at getByRole (src/attachments.test.tsx:50:19)\n","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachments.test.tsx","startTime":1794896601156,"status":"failed","summary":""}],"wasInterrupted":false} diff --git a/docs/ui-modernisation/evidence/attachment-dialog/red.json.gz b/docs/ui-modernisation/evidence/attachment-dialog/red.json.gz new file mode 100644 index 00000000..a9e73075 Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-dialog/red.json.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-dialog/red.txt b/docs/ui-modernisation/evidence/attachment-dialog/red.txt new file mode 100644 index 00000000..867a9936 --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-dialog/red.txt @@ -0,0 +1,1015 @@ +FAIL src/attachments.test.tsx + ● pending attachment rename follows en to nb without changing file data + + TestingLibraryElementError: Unable to find an accessible element with the role "dialog" and name "Gi nytt navn til vedlegg" + + Here are the accessible roles: + + presentation: + + Name "": +