diff --git a/docs/ui-modernisation/ATTACHMENT_BLOB_LIFETIME.md b/docs/ui-modernisation/ATTACHMENT_BLOB_LIFETIME.md new file mode 100644 index 00000000..5146e155 --- /dev/null +++ b/docs/ui-modernisation/ATTACHMENT_BLOB_LIFETIME.md @@ -0,0 +1,11 @@ +# Attachment download/preview completion context + +17 November 2026. Source `0ed7a6cd` on `codex/a3-ui-10`, based on `13769a19`. + +The shared blob reader checks the captured mounted job/session context before creating an object URL. Download/preview actions capture that context before the request; obsolete failures cannot notify, and current failures use current-language copy. Existing responseType, filenames, preview type, download expiry and current preview cleanup are retained. No server/file data is changed. + +Fourteen corrected regressions FAILED on original `13769a19`: download/preview success/failure after unmount, job change or session invalidation, plus current-language failures. The first red run also had test cleanup errors from old download expiry timers after URL mocks were restored. The fixture now clears only its recorded5000ms timers before restoring mocks. Original source was temporarily loaded from Git for the corrected red run and fixed source restored byte-for-byte in finally. Both raw runs retained; do not count the first as clean qualification. + +Final69 cases/four suites PASSED; earlier69 overlaps. TypeScript, scoped ESLint, diff check and AST update PASSED (19,289 nodes/47,415 edges). Native/gzip/source evidence: `evidence/attachment-blob/SOURCE_RECEIPTS.json`. + +Existing current PDF preview cases passed. Tests use synthetic blob data/mocked API/session, no real private download or provider access. Same-context competing previews, already-open preview on job change, upload/metadata completion and final integrated/browser/device/security/release acceptance remain separate. Prior Next build remains FAILED. Rollback: revert this source commit; no data migration. diff --git a/docs/ui-modernisation/evidence/attachment-blob/SOURCE_RECEIPTS.json b/docs/ui-modernisation/evidence/attachment-blob/SOURCE_RECEIPTS.json new file mode 100644 index 00000000..451ed710 --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-blob/SOURCE_RECEIPTS.json @@ -0,0 +1,88 @@ +{ + "sourceCommit": "0ed7a6cd3559cdd6d4ebcd71f58efe2f710f6ca3", + "sourcesLfSha256": { + "job-tracker-ui/src/attachment-action-lifetime.test.tsx": "8c5ece36cacb46b2caa5d9b73c5c2a0153823c649630cc14d1fa7fa44d55431f", + "job-tracker-ui/src/components/Attachments.tsx": "b554217bbf791fd1b0b4f5c89f987966d39101e2327cd69c720e85fe6a1482d3" + }, + "evidenceLfSha256": { + "red.json": "ad9e8eb1ddf6940adea457f1aff6bfde425ff65a84ec73746c63c3b30d475657", + "red.txt": "8b9e65a424ffb986b1284c9c24c24f6a48bf27ee93ddf0e679e8ab3163b17069", + "green.json": "df04a846a835855d871ced4c334aa8cde3b16909882ae759c66f12c48b112dbc", + "green.txt": "7beacd136cf0a87c6db90989e28d8bbde908c81d73a40a782f91f0001805cbdb", + "corrected-red.json": "962830735ae5b66c8024bc65f4ae373a2a9d72c7d5e592be42cdc0acd38cee51", + "corrected-red.txt": "730bd27fc340025ee8c51b72d7ac069dcb9fcda561d546a09caf1d83c79c9b76", + "final.json": "6852b2d7f0a759d139b5a16ebf0c5a3887665897a365650bb8f5d7c87fd763a1", + "final.txt": "8add7fad45a87f261949a27924b11c4c4fdf0bc38444c74edd192d39b0d5f919", + "typecheck.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "lint.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "graph.txt": "13b3067df34480f0923604afd20fb8e26b3c7cf80189500f80761d9d36e87b3a" + }, + "nativeReceipts": [ + { + "path": "red.json", + "gzipPath": "red.json.gz", + "rawSha256": "ad9e8eb1ddf6940adea457f1aff6bfde425ff65a84ec73746c63c3b30d475657", + "gzipSha256": "cf5e23c846730346ae6c3927cf1099e044083690780ef76e9251797d635c17fa" + }, + { + "path": "red.txt", + "gzipPath": "red.txt.gz", + "rawSha256": "de1319a63ed333b36854fc7112bba81d4d48149a54752a8d08f527745500d0d0", + "gzipSha256": "e6418d0f27008142bf06fab5a2b837949e1432375b470739f5812d0345a4d2ba" + }, + { + "path": "green.json", + "gzipPath": "green.json.gz", + "rawSha256": "df04a846a835855d871ced4c334aa8cde3b16909882ae759c66f12c48b112dbc", + "gzipSha256": "014a0edf80fc92d7c072f898e1337039bb6236b244569af5e742fb5238e2cab2" + }, + { + "path": "green.txt", + "gzipPath": "green.txt.gz", + "rawSha256": "ae7c38506ff60fecfca5751f15279e7f49c039207e5ac579ea0d2e760106d039", + "gzipSha256": "9afc5243e83d4c12511dd739d00be6d2e22a1c1a8d18a05f90a6541917bcf89e" + }, + { + "path": "corrected-red.json", + "gzipPath": "corrected-red.json.gz", + "rawSha256": "962830735ae5b66c8024bc65f4ae373a2a9d72c7d5e592be42cdc0acd38cee51", + "gzipSha256": "dd0504397e63444e107ac0a47a9bd1b448241865662d3ca63eee8261175b1c5d" + }, + { + "path": "corrected-red.txt", + "gzipPath": "corrected-red.txt.gz", + "rawSha256": "730bd27fc340025ee8c51b72d7ac069dcb9fcda561d546a09caf1d83c79c9b76", + "gzipSha256": "cd854aa38ac64d2677d20abe93c3a07738d2b279d85933e827fbab083ee87bf1" + }, + { + "path": "final.json", + "gzipPath": "final.json.gz", + "rawSha256": "6852b2d7f0a759d139b5a16ebf0c5a3887665897a365650bb8f5d7c87fd763a1", + "gzipSha256": "cb2b6c724f9b96ebf6548459674e99a03abd187aeeffae61c359a8021eb08d89" + }, + { + "path": "final.txt", + "gzipPath": "final.txt.gz", + "rawSha256": "336ebd9c6557d8e738c1eb9a70476ff6810dc289d9106b23fec728b77f6fe62f", + "gzipSha256": "36a5f93ff7ab8c4f44e439219b235c1b0101ea8f9ac6e2ee36dd01ebf5deb14e" + }, + { + "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": "e61e6a94482486b1f780b79125d2d16e3734c6a52b4d62d4e96f613178269aa8", + "gzipSha256": "2f5aae121d66e39f8f213e1ec80736d444baa012a9e852165d1c8f3178f47cf6" + } + ] +} diff --git a/docs/ui-modernisation/evidence/attachment-blob/corrected-red.json b/docs/ui-modernisation/evidence/attachment-blob/corrected-red.json new file mode 100644 index 00000000..329caeda --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-blob/corrected-red.json @@ -0,0 +1 @@ +{"numFailedTestSuites":1,"numFailedTests":14,"numPassedTestSuites":0,"numPassedTests":0,"numPendingTestSuites":0,"numPendingTests":24,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":1,"numTotalTests":38,"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":1794897757484,"success":false,"testResults":[{"assertionResults":[{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old attachment read resolve cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"old attachment read resolve cannot replace the next application"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old attachment read reject cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"old attachment read reject cannot replace the next application"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-rename read resolve cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"old post-rename read resolve cannot replace the next application"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-rename read reject cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"old post-rename read reject cannot replace the next application"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-delete read resolve cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"old post-delete read resolve cannot replace the next application"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-delete read reject cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"old post-delete read reject cannot replace the next application"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after unmount cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"attachment rename decision after unmount cannot mutate the previous context"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after job change cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"attachment rename decision after job change cannot mutate the previous context"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after session cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"attachment rename decision after session cannot mutate the previous context"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after unmount cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"attachment delete decision after unmount cannot mutate the previous context"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after job change cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"attachment delete decision after job change cannot mutate the previous context"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after session cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"attachment delete decision after session cannot mutate the previous context"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename delayed resolve uses current language","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"attachment rename delayed resolve uses current language"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename delayed reject uses current language","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"attachment rename delayed reject uses current language"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete delayed resolve uses current language","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"attachment delete delayed resolve uses current language"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete delayed reject uses current language","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"attachment delete delayed reject uses current language"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after unmount / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"late attachment rename after unmount / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after unmount / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"late attachment rename after unmount / reject cannot reload or notify"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after job change / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"late attachment rename after job change / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after job change / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"late attachment rename after job change / reject cannot reload or notify"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after unmount / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"late attachment delete after unmount / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after unmount / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"late attachment delete after unmount / reject cannot reload or notify"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after job change / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"late attachment delete after job change / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after job change / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897760907,"status":"pending","title":"late attachment delete after job change / reject cannot reload or notify"},{"ancestorTitles":[],"duration":266,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}","pass":true}}],"failureMessages":["Error: expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}\n at toHaveBeenCalled (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:139:37)"],"fullName":"late attachment Download after unmount / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794897760907,"status":"failed","title":"late attachment Download after unmount / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":97,"failing":false,"failureDetails":[{"matcherResult":{"pass":true,"message":"expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Download failed.
instead"}}],"failureMessages":["Error: expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Download failed.
instead\n at toBeInTheDocument (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:142:79)"],"fullName":"late attachment Download after unmount / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897761181,"status":"failed","title":"late attachment Download after unmount / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":139,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}","pass":true}}],"failureMessages":["Error: expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}\n at toHaveBeenCalled (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:139:37)"],"fullName":"late attachment Download after job change / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794897761278,"status":"failed","title":"late attachment Download after job change / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":137,"failing":false,"failureDetails":[{"matcherResult":{"pass":true,"message":"expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Download failed.
instead"}}],"failureMessages":["Error: expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Download failed.
instead\n at toBeInTheDocument (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:142:79)"],"fullName":"late attachment Download after job change / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897761417,"status":"failed","title":"late attachment Download after job change / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":65,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}","pass":true}}],"failureMessages":["Error: expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}\n at toHaveBeenCalled (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:139:37)"],"fullName":"late attachment Download after session / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794897761554,"status":"failed","title":"late attachment Download after session / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":85,"failing":false,"failureDetails":[{"matcherResult":{"pass":true,"message":"expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Download failed.
instead"}}],"failureMessages":["Error: expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Download failed.
instead\n at toBeInTheDocument (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:142:79)"],"fullName":"late attachment Download after session / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897761619,"status":"failed","title":"late attachment Download after session / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":65,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}","pass":true}}],"failureMessages":["Error: expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}\n at toHaveBeenCalled (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:139:37)"],"fullName":"late attachment Preview after unmount / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794897761704,"status":"failed","title":"late attachment Preview after unmount / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":72,"failing":false,"failureDetails":[{"matcherResult":{"pass":true,"message":"expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Preview failed.
instead"}}],"failureMessages":["Error: expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Preview failed.
instead\n at toBeInTheDocument (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:143:78)"],"fullName":"late attachment Preview after unmount / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794897761769,"status":"failed","title":"late attachment Preview after unmount / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":149,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}","pass":true}}],"failureMessages":["Error: expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}\n at toHaveBeenCalled (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:139:37)"],"fullName":"late attachment Preview after job change / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794897761841,"status":"failed","title":"late attachment Preview after job change / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":125,"failing":false,"failureDetails":[{"matcherResult":{"pass":true,"message":"expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Preview failed.
instead"}}],"failureMessages":["Error: expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Preview failed.
instead\n at toBeInTheDocument (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:143:78)"],"fullName":"late attachment Preview after job change / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794897761990,"status":"failed","title":"late attachment Preview after job change / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":96,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}","pass":true}}],"failureMessages":["Error: expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}\n at toHaveBeenCalled (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:139:37)"],"fullName":"late attachment Preview after session / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794897762115,"status":"failed","title":"late attachment Preview after session / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":89,"failing":false,"failureDetails":[{"matcherResult":{"pass":true,"message":"expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Preview failed.
instead"}}],"failureMessages":["Error: expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Preview failed.
instead\n at toBeInTheDocument (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:143:78)"],"fullName":"late attachment Preview after session / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794897762212,"status":"failed","title":"late attachment Preview after session / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":4104,"failing":false,"failureDetails":[{"name":"TestingLibraryElementError"}],"failureMessages":["Error: Unable to find an element with the text: Nedlasting 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:160:23)"],"fullName":"delayed attachment Download failure uses the current locale","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897762301,"status":"failed","title":"delayed attachment Download failure uses the current locale"},{"ancestorTitles":[],"duration":4108,"failing":false,"failureDetails":[{"name":"TestingLibraryElementError"}],"failureMessages":["Error: Unable to find an element with the text: Forhåndsvisning 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:160:23)"],"fullName":"delayed attachment Preview failure uses the current locale","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897766405,"status":"failed","title":"delayed attachment Preview failure uses the current locale"}],"endTime":1794897770543,"message":" ● late attachment Download after unmount / resolve cannot expose an obsolete blob\n\n expect(jest.fn()).not.toHaveBeenCalled()\n\n Expected number of calls: 0\n Received number of calls: 1\n\n 1: {}\n\n 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });\n 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });\n > 139 | expect(URL.createObjectURL).not.toHaveBeenCalled();\n | ^\n 140 | expect(click).not.toHaveBeenCalled();\n 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n\n at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:139:37)\n\n ● late attachment Download after unmount / reject cannot expose an obsolete blob\n\n expect(element).not.toBeInTheDocument()\n\n expected document not to contain element, found
Download failed.
instead\n\n 140 | expect(click).not.toHaveBeenCalled();\n 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n > 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n | ^\n 143 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument();\n 144 | } finally {\n 145 | view.unmount(); click.mockRestore();\n\n at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:142:79)\n\n ● late attachment Download after job change / resolve cannot expose an obsolete blob\n\n expect(jest.fn()).not.toHaveBeenCalled()\n\n Expected number of calls: 0\n Received number of calls: 1\n\n 1: {}\n\n 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });\n 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });\n > 139 | expect(URL.createObjectURL).not.toHaveBeenCalled();\n | ^\n 140 | expect(click).not.toHaveBeenCalled();\n 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n\n at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:139:37)\n\n ● late attachment Download after job change / reject cannot expose an obsolete blob\n\n expect(element).not.toBeInTheDocument()\n\n expected document not to contain element, found
Download failed.
instead\n\n 140 | expect(click).not.toHaveBeenCalled();\n 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n > 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n | ^\n 143 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument();\n 144 | } finally {\n 145 | view.unmount(); click.mockRestore();\n\n at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:142:79)\n\n ● late attachment Download after session / resolve cannot expose an obsolete blob\n\n expect(jest.fn()).not.toHaveBeenCalled()\n\n Expected number of calls: 0\n Received number of calls: 1\n\n 1: {}\n\n 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });\n 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });\n > 139 | expect(URL.createObjectURL).not.toHaveBeenCalled();\n | ^\n 140 | expect(click).not.toHaveBeenCalled();\n 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n\n at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:139:37)\n\n ● late attachment Download after session / reject cannot expose an obsolete blob\n\n expect(element).not.toBeInTheDocument()\n\n expected document not to contain element, found
Download failed.
instead\n\n 140 | expect(click).not.toHaveBeenCalled();\n 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n > 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n | ^\n 143 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument();\n 144 | } finally {\n 145 | view.unmount(); click.mockRestore();\n\n at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:142:79)\n\n ● late attachment Preview after unmount / resolve cannot expose an obsolete blob\n\n expect(jest.fn()).not.toHaveBeenCalled()\n\n Expected number of calls: 0\n Received number of calls: 1\n\n 1: {}\n\n 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });\n 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });\n > 139 | expect(URL.createObjectURL).not.toHaveBeenCalled();\n | ^\n 140 | expect(click).not.toHaveBeenCalled();\n 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n\n at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:139:37)\n\n ● late attachment Preview after unmount / reject cannot expose an obsolete blob\n\n expect(element).not.toBeInTheDocument()\n\n expected document not to contain element, found
Preview failed.
instead\n\n 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n > 143 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument();\n | ^\n 144 | } finally {\n 145 | view.unmount(); click.mockRestore();\n 146 | timers.mock.calls.forEach((call, index) => { if (call[1] === 5000) window.clearTimeout(timers.mock.results[index].value); });\n\n at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:143:78)\n\n ● late attachment Preview after job change / resolve cannot expose an obsolete blob\n\n expect(jest.fn()).not.toHaveBeenCalled()\n\n Expected number of calls: 0\n Received number of calls: 1\n\n 1: {}\n\n 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });\n 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });\n > 139 | expect(URL.createObjectURL).not.toHaveBeenCalled();\n | ^\n 140 | expect(click).not.toHaveBeenCalled();\n 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n\n at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:139:37)\n\n ● late attachment Preview after job change / reject cannot expose an obsolete blob\n\n expect(element).not.toBeInTheDocument()\n\n expected document not to contain element, found
Preview failed.
instead\n\n 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n > 143 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument();\n | ^\n 144 | } finally {\n 145 | view.unmount(); click.mockRestore();\n 146 | timers.mock.calls.forEach((call, index) => { if (call[1] === 5000) window.clearTimeout(timers.mock.results[index].value); });\n\n at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:143:78)\n\n ● late attachment Preview after session / resolve cannot expose an obsolete blob\n\n expect(jest.fn()).not.toHaveBeenCalled()\n\n Expected number of calls: 0\n Received number of calls: 1\n\n 1: {}\n\n 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });\n 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });\n > 139 | expect(URL.createObjectURL).not.toHaveBeenCalled();\n | ^\n 140 | expect(click).not.toHaveBeenCalled();\n 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n\n at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:139:37)\n\n ● late attachment Preview after session / reject cannot expose an obsolete blob\n\n expect(element).not.toBeInTheDocument()\n\n expected document not to contain element, found
Preview failed.
instead\n\n 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n > 143 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument();\n | ^\n 144 | } finally {\n 145 | view.unmount(); click.mockRestore();\n 146 | timers.mock.calls.forEach((call, index) => { if (call[1] === 5000) window.clearTimeout(timers.mock.results[index].value); });\n\n at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:143:78)\n\n ● delayed attachment Download failure uses the current locale\n\n Unable to find an element with the text: Nedlasting 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 158 | await act(async () => pending.reject(new Error('synthetic blob failure')));\n 159 | const key = action === 'Download' ? 'attachmentsDownloadFailed' : 'attachmentsPreviewFailed';\n > 160 | expect(await screen.findByText(translations.nb[key])).toBeVisible();\n | ^\n 161 | expect(screen.queryByText(translations.en[key])).not.toBeInTheDocument();\n 162 | });\n 163 |\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:160:23)\n\n ● delayed attachment Preview failure uses the current locale\n\n Unable to find an element with the text: Forhåndsvisning 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 158 | await act(async () => pending.reject(new Error('synthetic blob failure')));\n 159 | const key = action === 'Download' ? 'attachmentsDownloadFailed' : 'attachmentsPreviewFailed';\n > 160 | expect(await screen.findByText(translations.nb[key])).toBeVisible();\n | ^\n 161 | expect(screen.queryByText(translations.en[key])).not.toBeInTheDocument();\n 162 | });\n 163 |\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:160:23)\n","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx","startTime":1794897758331,"status":"failed","summary":""}],"wasInterrupted":false} diff --git a/docs/ui-modernisation/evidence/attachment-blob/corrected-red.json.gz b/docs/ui-modernisation/evidence/attachment-blob/corrected-red.json.gz new file mode 100644 index 00000000..17a45ff0 Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-blob/corrected-red.json.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-blob/corrected-red.txt b/docs/ui-modernisation/evidence/attachment-blob/corrected-red.txt new file mode 100644 index 00000000..0903fef7 --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-blob/corrected-red.txt @@ -0,0 +1,1945 @@ + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/dom/dist/wait-for.js:71:16 + at node_modules/@testing-library/react/dist/act-compat.js:47:24 + at process.env.NODE_ENV.exports.act (node_modules/react/cjs/react.development.js:814:22) + at node_modules/@testing-library/react/dist/act-compat.js:46:25 + at unstable_advanceTimersWrapper (node_modules/@testing-library/react/dist/pure.js:78:35) + at node_modules/@testing-library/dom/dist/wait-for.js:65:15 + at waitFor (node_modules/@testing-library/dom/dist/wait-for.js:36:10) + at node_modules/@testing-library/dom/dist/wait-for.js:164:54 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:87:28) + at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:164:35) + at node_modules/@testing-library/dom/dist/query-helpers.js:86:33 + at findByRole (src/attachment-action-lifetime.test.tsx:134:34) + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + 132 | const view = render(page()); + 133 | try { + > 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + | ^ + 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:134:21 + + console.warn + A function to advance timers was called but the timers APIs are not replaced with fake timers. Call `jest.useFakeTimers()` in this test file or enable fake timers for all tests by setting 'fakeTimers': {'enableGlobally': true} in Jest configuration file. + Stack Trace: + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + Error: + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:654:7) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + + 133 | try { + 134 | fireEvent.click(await screen.findByRole('button', { name: `${action}: ${file.fileName}` })); + > 135 | await waitFor(() => expect(mockedApi.get).toHaveBeenCalledWith('/attachments/download/7', { responseType: 'blob' })); + | ^ + 136 | if (boundary === 'session') mockSessionActive = false; + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + + at FakeTimers._checkFakeTimers (node_modules/@jest/fake-timers/build/index.js:652:28) + at FakeTimers.advanceTimersByTime (node_modules/@jest/fake-timers/build/index.js:578:14) + at node_modules/@testing-library/react/dist/pure.js:96:16 + at Object.asyncWrapper (node_modules/@testing-library/react/dist/pure.js:91:13) + at src/attachment-action-lifetime.test.tsx:135:5 + +FAIL src/attachment-action-lifetime.test.tsx (12.212 s) + ● late attachment Download after unmount / resolve cannot expose an obsolete blob + + expect(jest.fn()).not.toHaveBeenCalled() + + Expected number of calls: 0 + Received number of calls: 1 + + 1: {} + + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + > 139 | expect(URL.createObjectURL).not.toHaveBeenCalled(); + | ^ + 140 | expect(click).not.toHaveBeenCalled(); + 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + + at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:139:37) + + ● late attachment Download after unmount / reject cannot expose an obsolete blob + + expect(element).not.toBeInTheDocument() + + expected document not to contain element, found
Download failed.
instead + + 140 | expect(click).not.toHaveBeenCalled(); + 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + > 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + | ^ + 143 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument(); + 144 | } finally { + 145 | view.unmount(); click.mockRestore(); + + at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:142:79) + + ● late attachment Download after job change / resolve cannot expose an obsolete blob + + expect(jest.fn()).not.toHaveBeenCalled() + + Expected number of calls: 0 + Received number of calls: 1 + + 1: {} + + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + > 139 | expect(URL.createObjectURL).not.toHaveBeenCalled(); + | ^ + 140 | expect(click).not.toHaveBeenCalled(); + 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + + at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:139:37) + + ● late attachment Download after job change / reject cannot expose an obsolete blob + + expect(element).not.toBeInTheDocument() + + expected document not to contain element, found
Download failed.
instead + + 140 | expect(click).not.toHaveBeenCalled(); + 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + > 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + | ^ + 143 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument(); + 144 | } finally { + 145 | view.unmount(); click.mockRestore(); + + at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:142:79) + + ● late attachment Download after session / resolve cannot expose an obsolete blob + + expect(jest.fn()).not.toHaveBeenCalled() + + Expected number of calls: 0 + Received number of calls: 1 + + 1: {} + + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + > 139 | expect(URL.createObjectURL).not.toHaveBeenCalled(); + | ^ + 140 | expect(click).not.toHaveBeenCalled(); + 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + + at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:139:37) + + ● late attachment Download after session / reject cannot expose an obsolete blob + + expect(element).not.toBeInTheDocument() + + expected document not to contain element, found
Download failed.
instead + + 140 | expect(click).not.toHaveBeenCalled(); + 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + > 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + | ^ + 143 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument(); + 144 | } finally { + 145 | view.unmount(); click.mockRestore(); + + at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:142:79) + + ● late attachment Preview after unmount / resolve cannot expose an obsolete blob + + expect(jest.fn()).not.toHaveBeenCalled() + + Expected number of calls: 0 + Received number of calls: 1 + + 1: {} + + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + > 139 | expect(URL.createObjectURL).not.toHaveBeenCalled(); + | ^ + 140 | expect(click).not.toHaveBeenCalled(); + 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + + at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:139:37) + + ● late attachment Preview after unmount / reject cannot expose an obsolete blob + + expect(element).not.toBeInTheDocument() + + expected document not to contain element, found
Preview failed.
instead + + 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + > 143 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument(); + | ^ + 144 | } finally { + 145 | view.unmount(); click.mockRestore(); + 146 | timers.mock.calls.forEach((call, index) => { if (call[1] === 5000) window.clearTimeout(timers.mock.results[index].value); }); + + at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:143:78) + + ● late attachment Preview after job change / resolve cannot expose an obsolete blob + + expect(jest.fn()).not.toHaveBeenCalled() + + Expected number of calls: 0 + Received number of calls: 1 + + 1: {} + + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + > 139 | expect(URL.createObjectURL).not.toHaveBeenCalled(); + | ^ + 140 | expect(click).not.toHaveBeenCalled(); + 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + + at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:139:37) + + ● late attachment Preview after job change / reject cannot expose an obsolete blob + + expect(element).not.toBeInTheDocument() + + expected document not to contain element, found
Preview failed.
instead + + 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + > 143 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument(); + | ^ + 144 | } finally { + 145 | view.unmount(); click.mockRestore(); + 146 | timers.mock.calls.forEach((call, index) => { if (call[1] === 5000) window.clearTimeout(timers.mock.results[index].value); }); + + at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:143:78) + + ● late attachment Preview after session / resolve cannot expose an obsolete blob + + expect(jest.fn()).not.toHaveBeenCalled() + + Expected number of calls: 0 + Received number of calls: 1 + + 1: {} + + 137 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 138 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + > 139 | expect(URL.createObjectURL).not.toHaveBeenCalled(); + | ^ + 140 | expect(click).not.toHaveBeenCalled(); + 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + + at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:139:37) + + ● late attachment Preview after session / reject cannot expose an obsolete blob + + expect(element).not.toBeInTheDocument() + + expected document not to contain element, found
Preview failed.
instead + + 141 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + 142 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + > 143 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument(); + | ^ + 144 | } finally { + 145 | view.unmount(); click.mockRestore(); + 146 | timers.mock.calls.forEach((call, index) => { if (call[1] === 5000) window.clearTimeout(timers.mock.results[index].value); }); + + at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:143:78) + + ● delayed attachment Download failure uses the current locale + + Unable to find an element with the text: Nedlasting 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 +  +  +  +  +  +  +  +  +  +  + Last opp +  +  +  +  +  + Dra og slipp filer her + 

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

 +  +  + Innhold lastet. +  +  +  +  +  +  + Navn +  +  + Type +  +  + Filtype +  +  + ... + + 158 | await act(async () => pending.reject(new Error('synthetic blob failure'))); + 159 | const key = action === 'Download' ? 'attachmentsDownloadFailed' : 'attachmentsPreviewFailed'; + > 160 | expect(await screen.findByText(translations.nb[key])).toBeVisible(); + | ^ + 161 | expect(screen.queryByText(translations.en[key])).not.toBeInTheDocument(); + 162 | }); + 163 | + + 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:160:23) + + ● delayed attachment Preview failure uses the current locale + + Unable to find an element with the text: Forhåndsvisning 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 +  +  +  +  +  +  +  +  +  +  + Last opp +  +  +  +  +  + Dra og slipp filer her + 

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

 +  +  + Innhold lastet. +  +  +  +  +  +  + Navn +  +  + Type +  +  + Filtype +  +  + ... + + 158 | await act(async () => pending.reject(new Error('synthetic blob failure'))); + 159 | const key = action === 'Download' ? 'attachmentsDownloadFailed' : 'attachmentsPreviewFailed'; + > 160 | expect(await screen.findByText(translations.nb[key])).toBeVisible(); + | ^ + 161 | expect(screen.queryByText(translations.en[key])).not.toBeInTheDocument(); + 162 | }); + 163 | + + 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:160:23) + +Test Suites: 1 failed, 1 total +Tests: 14 failed, 24 skipped, 38 total +Snapshots: 0 total +Time: 13.064 s +Ran all test suites matching src/attachment-action-lifetime.test.tsx with tests matching "obsolete blob|delayed attachment (Download|Preview)". +Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\attachment-blob-corrected-red.json diff --git a/docs/ui-modernisation/evidence/attachment-blob/corrected-red.txt.gz b/docs/ui-modernisation/evidence/attachment-blob/corrected-red.txt.gz new file mode 100644 index 00000000..1169df60 Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-blob/corrected-red.txt.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-blob/final.json b/docs/ui-modernisation/evidence/attachment-blob/final.json new file mode 100644 index 00000000..e77e5f02 --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-blob/final.json @@ -0,0 +1 @@ +{"numFailedTestSuites":0,"numFailedTests":0,"numPassedTestSuites":4,"numPassedTests":69,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":4,"numTotalTests":69,"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":1794897815295,"success":true,"testResults":[{"assertionResults":[{"ancestorTitles":[],"duration":123,"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":1794897818680,"status":"passed","title":"pending attachment read uses en to nb failure copy without another read"},{"ancestorTitles":[],"duration":43,"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":1794897818804,"status":"passed","title":"pending attachment read uses nb to en failure copy without another read"},{"ancestorTitles":[],"duration":512,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment rename follows en to nb without changing file data","invocations":1,"location":null,"numPassingAsserts":13,"retryReasons":[],"startAt":1794897818847,"status":"passed","title":"pending attachment rename follows en to nb without changing file data"},{"ancestorTitles":[],"duration":402,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment rename follows nb to en without changing file data","invocations":1,"location":null,"numPassingAsserts":13,"retryReasons":[],"startAt":1794897819359,"status":"passed","title":"pending attachment rename follows nb to en without changing file data"},{"ancestorTitles":[],"duration":387,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment delete follows en to nb without changing file data","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"startAt":1794897819761,"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":1794897820148,"status":"passed","title":"pending attachment delete follows nb to en without changing file data"},{"ancestorTitles":[],"duration":61,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment size follows the UI locale (en)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794897820520,"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":1794897820581,"status":"passed","title":"attachment size follows the UI locale (nb)"},{"ancestorTitles":[],"duration":123,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"PDF preview identifies the document in en","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794897820627,"status":"passed","title":"PDF preview identifies the document in en"},{"ancestorTitles":[],"duration":123,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"PDF preview identifies the document in nb","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794897820751,"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":1794897820874,"status":"passed","title":"attachments empty state renders drag and drop guidance"},{"ancestorTitles":[],"duration":244,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachments metadata controls update purpose and ai usage","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794897820905,"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":1794897821149,"status":"passed","title":"attachment failures remain explicit and retry restores the real empty state"}],"endTime":1794897821210,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachments.test.tsx","startTime":1794897816156,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"duration":109,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old attachment read resolve cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897821888,"status":"passed","title":"old attachment read resolve cannot replace the next application"},{"ancestorTitles":[],"duration":58,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old attachment read reject cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897821997,"status":"passed","title":"old attachment read reject cannot replace the next application"},{"ancestorTitles":[],"duration":252,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-rename read resolve cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794897822055,"status":"passed","title":"old post-rename read resolve cannot replace the next application"},{"ancestorTitles":[],"duration":231,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-rename read reject cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794897822307,"status":"passed","title":"old post-rename read reject cannot replace the next application"},{"ancestorTitles":[],"duration":216,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-delete read resolve cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794897822538,"status":"passed","title":"old post-delete read resolve cannot replace the next application"},{"ancestorTitles":[],"duration":202,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-delete read reject cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794897822754,"status":"passed","title":"old post-delete read reject cannot replace the next application"},{"ancestorTitles":[],"duration":125,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after unmount cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897822956,"status":"passed","title":"attachment rename decision after unmount cannot mutate the previous context"},{"ancestorTitles":[],"duration":102,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after job change cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897823082,"status":"passed","title":"attachment rename decision after job change cannot mutate the previous context"},{"ancestorTitles":[],"duration":112,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after session cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897823184,"status":"passed","title":"attachment rename decision after session cannot mutate the previous context"},{"ancestorTitles":[],"duration":106,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after unmount cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897823296,"status":"passed","title":"attachment delete decision after unmount cannot mutate the previous context"},{"ancestorTitles":[],"duration":159,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after job change cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897823402,"status":"passed","title":"attachment delete decision after job change cannot mutate the previous context"},{"ancestorTitles":[],"duration":94,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after session cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897823561,"status":"passed","title":"attachment delete decision after session cannot mutate the previous context"},{"ancestorTitles":[],"duration":256,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename delayed resolve uses current language","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897823655,"status":"passed","title":"attachment rename delayed resolve uses current language"},{"ancestorTitles":[],"duration":232,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename delayed reject uses current language","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897823911,"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":1794897824143,"status":"passed","title":"attachment delete delayed resolve uses current language"},{"ancestorTitles":[],"duration":202,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete delayed reject uses current language","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897824374,"status":"passed","title":"attachment delete delayed reject uses current language"},{"ancestorTitles":[],"duration":203,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after unmount / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897824576,"status":"passed","title":"late attachment rename after unmount / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":185,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after unmount / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897824779,"status":"passed","title":"late attachment rename after unmount / reject cannot reload or notify"},{"ancestorTitles":[],"duration":271,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after job change / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897824964,"status":"passed","title":"late attachment rename after job change / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":274,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after job change / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897825235,"status":"passed","title":"late attachment rename after job change / reject cannot reload or notify"},{"ancestorTitles":[],"duration":195,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after unmount / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897825510,"status":"passed","title":"late attachment delete after unmount / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":170,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after unmount / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897825705,"status":"passed","title":"late attachment delete after unmount / reject cannot reload or notify"},{"ancestorTitles":[],"duration":238,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after job change / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897825875,"status":"passed","title":"late attachment delete after job change / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":256,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after job change / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897826113,"status":"passed","title":"late attachment delete after job change / reject cannot reload or notify"},{"ancestorTitles":[],"duration":79,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after unmount / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897826369,"status":"passed","title":"late attachment Download after unmount / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":72,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after unmount / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897826448,"status":"passed","title":"late attachment Download after unmount / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":111,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after job change / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897826520,"status":"passed","title":"late attachment Download after job change / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":116,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after job change / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897826631,"status":"passed","title":"late attachment Download after job change / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":88,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after session / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897826747,"status":"passed","title":"late attachment Download after session / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":53,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after session / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897826835,"status":"passed","title":"late attachment Download after session / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":63,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after unmount / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897826888,"status":"passed","title":"late attachment Preview after unmount / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":59,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after unmount / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897826951,"status":"passed","title":"late attachment Preview after unmount / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":84,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after job change / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897827010,"status":"passed","title":"late attachment Preview after job change / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":62,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after job change / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897827095,"status":"passed","title":"late attachment Preview after job change / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":43,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after session / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897827157,"status":"passed","title":"late attachment Preview after session / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":42,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after session / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897827200,"status":"passed","title":"late attachment Preview after session / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":79,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"delayed attachment Download failure uses the current locale","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794897827242,"status":"passed","title":"delayed attachment Download failure uses the current locale"},{"ancestorTitles":[],"duration":106,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"delayed attachment Preview failure uses the current locale","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794897827321,"status":"passed","title":"delayed attachment Preview failure uses the current locale"}],"endTime":1794897827428,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx","startTime":1794897821219,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"duration":348,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending confirm resolves metadata from en to nb and settles once","invocations":1,"location":null,"numPassingAsserts":12,"retryReasons":[],"startAt":1794897828140,"status":"passed","title":"pending confirm resolves metadata from en to nb and settles once"},{"ancestorTitles":[],"duration":323,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending confirm resolves metadata from nb to en and settles once","invocations":1,"location":null,"numPassingAsserts":12,"retryReasons":[],"startAt":1794897828489,"status":"passed","title":"pending confirm resolves metadata from nb to en and settles once"},{"ancestorTitles":[],"duration":325,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending prompt resolves metadata from en to nb and settles once","invocations":1,"location":null,"numPassingAsserts":18,"retryReasons":[],"startAt":1794897828812,"status":"passed","title":"pending prompt resolves metadata from en to nb and settles once"},{"ancestorTitles":[],"duration":326,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending prompt resolves metadata from nb to en and settles once","invocations":1,"location":null,"numPassingAsserts":18,"retryReasons":[],"startAt":1794897829137,"status":"passed","title":"pending prompt resolves metadata from nb to en and settles once"},{"ancestorTitles":[],"duration":59,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"confirm metadata falls back to interpolated English without I18n context","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897829463,"status":"passed","title":"confirm metadata falls back to interpolated English without I18n context"},{"ancestorTitles":[],"duration":123,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prompt metadata falls back to interpolated English without I18n context","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897829522,"status":"passed","title":"prompt metadata falls back to interpolated English without I18n context"},{"ancestorTitles":[],"duration":64,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"confirm leaves literal \"\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897829645,"status":"passed","title":"confirm leaves literal \"\" verbatim during locale changes"},{"ancestorTitles":[],"duration":154,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prompt leaves literal \"\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897829709,"status":"passed","title":"prompt leaves literal \"\" verbatim during locale changes"},{"ancestorTitles":[],"duration":92,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"confirm leaves literal \"confirmAction\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897829864,"status":"passed","title":"confirm leaves literal \"confirmAction\" verbatim during locale changes"},{"ancestorTitles":[],"duration":155,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prompt leaves literal \"enterValue\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897829956,"status":"passed","title":"prompt leaves literal \"enterValue\" verbatim during locale changes"}],"endTime":1794897830112,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\dialog-text.test.tsx","startTime":1794897827437,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"duration":82,"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":1794897831476,"status":"passed","title":"attachment Upload activates the same native input from Enter, Space and pointer"},{"ancestorTitles":[],"duration":34,"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":1794897831558,"status":"passed","title":"Import JSON activates its own native input from Enter, Space and pointer"},{"ancestorTitles":[],"duration":29,"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":1794897831592,"status":"passed","title":"Convert CSV to Import JSON activates its own native input from Enter, Space and pointer"},{"ancestorTitles":[],"duration":399,"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":1794897831621,"status":"passed","title":"Add Job attachment bucket 0 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":321,"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":1794897832020,"status":"passed","title":"Add Job attachment bucket 1 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":280,"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":1794897832342,"status":"passed","title":"Add Job attachment bucket 2 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":420,"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":1794897832622,"status":"passed","title":"Add Job attachment bucket 3 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":110,"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":1794897833042,"status":"passed","title":"attachment selection retains files and job ownership, disables activation while uploading and clears selection after completion"}],"endTime":1794897833152,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\file-picker-activation.test.tsx","startTime":1794897830120,"status":"passed","summary":""}],"wasInterrupted":false} diff --git a/docs/ui-modernisation/evidence/attachment-blob/final.json.gz b/docs/ui-modernisation/evidence/attachment-blob/final.json.gz new file mode 100644 index 00000000..9484ed90 Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-blob/final.json.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-blob/final.txt b/docs/ui-modernisation/evidence/attachment-blob/final.txt new file mode 100644 index 00000000..ea4af04a --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-blob/final.txt @@ -0,0 +1,7 @@ + +Test Suites: 4 passed, 4 total +Tests: 69 passed, 69 total +Snapshots: 0 total +Time: 17.861 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-blob-final.json diff --git a/docs/ui-modernisation/evidence/attachment-blob/final.txt.gz b/docs/ui-modernisation/evidence/attachment-blob/final.txt.gz new file mode 100644 index 00000000..d8128f67 Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-blob/final.txt.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-blob/graph.txt b/docs/ui-modernisation/evidence/attachment-blob/graph.txt new file mode 100644 index 00000000..2bb76f10 --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-blob/graph.txt @@ -0,0 +1,18 @@ +Re-extracting code files in . (no LLM needed)... +[graphify watch] 599 file(s) not classified (no supported extension or shebang), skipped: .dockerignore, .env.example, .git, .gitattributes, .gitignore, 1440-en-dark-converted.gz (+593 more) + AST cache: 2551/2999 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, 1157 communities now; renamed 110 community(ies) by their hub). Run `graphify label` to refresh names with the LLM. +Graph has 19289 nodes (above 5000 limit). Building aggregated community view... +graph.html written (aggregated: 1157 community nodes, 3214 cross-community edges) +Tip: run with --obsidian for full node-level detail. +[graphify watch] Rebuilt: 19289 nodes, 47415 edges, 1157 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-blob/graph.txt.gz b/docs/ui-modernisation/evidence/attachment-blob/graph.txt.gz new file mode 100644 index 00000000..f1cebc12 Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-blob/graph.txt.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-blob/green.json b/docs/ui-modernisation/evidence/attachment-blob/green.json new file mode 100644 index 00000000..05e2c542 --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-blob/green.json @@ -0,0 +1 @@ +{"numFailedTestSuites":0,"numFailedTests":0,"numPassedTestSuites":4,"numPassedTests":69,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":4,"numTotalTests":69,"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":1794897701498,"success":true,"testResults":[{"assertionResults":[{"ancestorTitles":[],"duration":136,"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":1794897704847,"status":"passed","title":"pending attachment read uses en to nb failure copy without another read"},{"ancestorTitles":[],"duration":42,"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":1794897704984,"status":"passed","title":"pending attachment read uses nb to en failure copy without another read"},{"ancestorTitles":[],"duration":525,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment rename follows en to nb without changing file data","invocations":1,"location":null,"numPassingAsserts":13,"retryReasons":[],"startAt":1794897705026,"status":"passed","title":"pending attachment rename follows en to nb without changing file data"},{"ancestorTitles":[],"duration":401,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment rename follows nb to en without changing file data","invocations":1,"location":null,"numPassingAsserts":13,"retryReasons":[],"startAt":1794897705552,"status":"passed","title":"pending attachment rename follows nb to en without changing file data"},{"ancestorTitles":[],"duration":400,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment delete follows en to nb without changing file data","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"startAt":1794897705953,"status":"passed","title":"pending attachment delete follows en to nb without changing file data"},{"ancestorTitles":[],"duration":389,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending attachment delete follows nb to en without changing file data","invocations":1,"location":null,"numPassingAsserts":8,"retryReasons":[],"startAt":1794897706353,"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":1794897706742,"status":"passed","title":"attachment size follows the UI locale (en)"},{"ancestorTitles":[],"duration":44,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment size follows the UI locale (nb)","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794897706805,"status":"passed","title":"attachment size follows the UI locale (nb)"},{"ancestorTitles":[],"duration":140,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"PDF preview identifies the document in en","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794897706849,"status":"passed","title":"PDF preview identifies the document in en"},{"ancestorTitles":[],"duration":123,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"PDF preview identifies the document in nb","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794897706989,"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":1794897707112,"status":"passed","title":"attachments empty state renders drag and drop guidance"},{"ancestorTitles":[],"duration":231,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachments metadata controls update purpose and ai usage","invocations":1,"location":null,"numPassingAsserts":9,"retryReasons":[],"startAt":1794897707143,"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":1794897707374,"status":"passed","title":"attachment failures remain explicit and retry restores the real empty state"}],"endTime":1794897707437,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachments.test.tsx","startTime":1794897702316,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"duration":142,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old attachment read resolve cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897708177,"status":"passed","title":"old attachment read resolve cannot replace the next application"},{"ancestorTitles":[],"duration":60,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old attachment read reject cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897708319,"status":"passed","title":"old attachment read reject cannot replace the next application"},{"ancestorTitles":[],"duration":266,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-rename read resolve cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794897708379,"status":"passed","title":"old post-rename read resolve cannot replace the next application"},{"ancestorTitles":[],"duration":230,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-rename read reject cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794897708645,"status":"passed","title":"old post-rename read reject cannot replace the next application"},{"ancestorTitles":[],"duration":225,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-delete read resolve cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794897708875,"status":"passed","title":"old post-delete read resolve cannot replace the next application"},{"ancestorTitles":[],"duration":192,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-delete read reject cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794897709100,"status":"passed","title":"old post-delete read reject cannot replace the next application"},{"ancestorTitles":[],"duration":104,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after unmount cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897709292,"status":"passed","title":"attachment rename decision after unmount cannot mutate the previous context"},{"ancestorTitles":[],"duration":123,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after job change cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897709396,"status":"passed","title":"attachment rename decision after job change cannot mutate the previous context"},{"ancestorTitles":[],"duration":111,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after session cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897709519,"status":"passed","title":"attachment rename decision after session cannot mutate the previous context"},{"ancestorTitles":[],"duration":110,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after unmount cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897709630,"status":"passed","title":"attachment delete decision after unmount cannot mutate the previous context"},{"ancestorTitles":[],"duration":159,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after job change cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897709740,"status":"passed","title":"attachment delete decision after job change cannot mutate the previous context"},{"ancestorTitles":[],"duration":121,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after session cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":3,"retryReasons":[],"startAt":1794897709899,"status":"passed","title":"attachment delete decision after session cannot mutate the previous context"},{"ancestorTitles":[],"duration":242,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename delayed resolve uses current language","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897710020,"status":"passed","title":"attachment rename delayed resolve uses current language"},{"ancestorTitles":[],"duration":246,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename delayed reject uses current language","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897710262,"status":"passed","title":"attachment rename delayed reject uses current language"},{"ancestorTitles":[],"duration":220,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete delayed resolve uses current language","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897710508,"status":"passed","title":"attachment delete delayed resolve uses current language"},{"ancestorTitles":[],"duration":260,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete delayed reject uses current language","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897710728,"status":"passed","title":"attachment delete delayed reject uses current language"},{"ancestorTitles":[],"duration":208,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after unmount / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897710988,"status":"passed","title":"late attachment rename after unmount / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":201,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after unmount / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897711197,"status":"passed","title":"late attachment rename after unmount / reject cannot reload or notify"},{"ancestorTitles":[],"duration":223,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after job change / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897711398,"status":"passed","title":"late attachment rename after job change / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":245,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after job change / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897711621,"status":"passed","title":"late attachment rename after job change / reject cannot reload or notify"},{"ancestorTitles":[],"duration":195,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after unmount / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897711866,"status":"passed","title":"late attachment delete after unmount / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":187,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after unmount / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897712061,"status":"passed","title":"late attachment delete after unmount / reject cannot reload or notify"},{"ancestorTitles":[],"duration":243,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after job change / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897712248,"status":"passed","title":"late attachment delete after job change / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":254,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after job change / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897712491,"status":"passed","title":"late attachment delete after job change / reject cannot reload or notify"},{"ancestorTitles":[],"duration":73,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after unmount / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897712746,"status":"passed","title":"late attachment Download after unmount / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":94,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after unmount / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897712819,"status":"passed","title":"late attachment Download after unmount / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":148,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after job change / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897712913,"status":"passed","title":"late attachment Download after job change / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":168,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after job change / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897713061,"status":"passed","title":"late attachment Download after job change / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":83,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after session / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897713229,"status":"passed","title":"late attachment Download after session / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":108,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Download after session / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897713312,"status":"passed","title":"late attachment Download after session / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":92,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after unmount / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897713421,"status":"passed","title":"late attachment Preview after unmount / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":93,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after unmount / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897713513,"status":"passed","title":"late attachment Preview after unmount / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":127,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after job change / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897713606,"status":"passed","title":"late attachment Preview after job change / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":125,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after job change / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897713733,"status":"passed","title":"late attachment Preview after job change / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":84,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after session / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897713858,"status":"passed","title":"late attachment Preview after session / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":92,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment Preview after session / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897713942,"status":"passed","title":"late attachment Preview after session / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":95,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"delayed attachment Download failure uses the current locale","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794897714034,"status":"passed","title":"delayed attachment Download failure uses the current locale"},{"ancestorTitles":[],"duration":162,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"delayed attachment Preview failure uses the current locale","invocations":1,"location":null,"numPassingAsserts":2,"retryReasons":[],"startAt":1794897714129,"status":"passed","title":"delayed attachment Preview failure uses the current locale"}],"endTime":1794897714293,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx","startTime":1794897707448,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"duration":338,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending confirm resolves metadata from en to nb and settles once","invocations":1,"location":null,"numPassingAsserts":12,"retryReasons":[],"startAt":1794897715185,"status":"passed","title":"pending confirm resolves metadata from en to nb and settles once"},{"ancestorTitles":[],"duration":324,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending confirm resolves metadata from nb to en and settles once","invocations":1,"location":null,"numPassingAsserts":12,"retryReasons":[],"startAt":1794897715523,"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":1794897715847,"status":"passed","title":"pending prompt resolves metadata from en to nb and settles once"},{"ancestorTitles":[],"duration":326,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"pending prompt resolves metadata from nb to en and settles once","invocations":1,"location":null,"numPassingAsserts":18,"retryReasons":[],"startAt":1794897716203,"status":"passed","title":"pending prompt resolves metadata from nb to en and settles once"},{"ancestorTitles":[],"duration":69,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"confirm metadata falls back to interpolated English without I18n context","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897716529,"status":"passed","title":"confirm metadata falls back to interpolated English without I18n context"},{"ancestorTitles":[],"duration":130,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prompt metadata falls back to interpolated English without I18n context","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897716598,"status":"passed","title":"prompt metadata falls back to interpolated English without I18n context"},{"ancestorTitles":[],"duration":93,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"confirm leaves literal \"\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897716728,"status":"passed","title":"confirm leaves literal \"\" verbatim during locale changes"},{"ancestorTitles":[],"duration":139,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prompt leaves literal \"\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897716821,"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":1794897716960,"status":"passed","title":"confirm leaves literal \"confirmAction\" verbatim during locale changes"},{"ancestorTitles":[],"duration":140,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"prompt leaves literal \"enterValue\" verbatim during locale changes","invocations":1,"location":null,"numPassingAsserts":6,"retryReasons":[],"startAt":1794897717038,"status":"passed","title":"prompt leaves literal \"enterValue\" verbatim during locale changes"}],"endTime":1794897717179,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\dialog-text.test.tsx","startTime":1794897714312,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"duration":81,"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":1794897718546,"status":"passed","title":"attachment Upload activates the same native input from Enter, Space and pointer"},{"ancestorTitles":[],"duration":33,"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":1794897718628,"status":"passed","title":"Import JSON activates its own native input from Enter, Space and pointer"},{"ancestorTitles":[],"duration":27,"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":1794897718661,"status":"passed","title":"Convert CSV to Import JSON activates its own native input from Enter, Space and pointer"},{"ancestorTitles":[],"duration":409,"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":1794897718688,"status":"passed","title":"Add Job attachment bucket 0 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":293,"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":1794897719098,"status":"passed","title":"Add Job attachment bucket 1 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":267,"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":1794897719391,"status":"passed","title":"Add Job attachment bucket 2 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":389,"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":1794897719658,"status":"passed","title":"Add Job attachment bucket 3 retains keyboard selection and distinct pending files"},{"ancestorTitles":[],"duration":116,"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":1794897720048,"status":"passed","title":"attachment selection retains files and job ownership, disables activation while uploading and clears selection after completion"}],"endTime":1794897720164,"message":"","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\file-picker-activation.test.tsx","startTime":1794897717187,"status":"passed","summary":""}],"wasInterrupted":false} diff --git a/docs/ui-modernisation/evidence/attachment-blob/green.json.gz b/docs/ui-modernisation/evidence/attachment-blob/green.json.gz new file mode 100644 index 00000000..c1cef87b Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-blob/green.json.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-blob/green.txt b/docs/ui-modernisation/evidence/attachment-blob/green.txt new file mode 100644 index 00000000..8c1adbd3 --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-blob/green.txt @@ -0,0 +1,7 @@ + +Test Suites: 4 passed, 4 total +Tests: 69 passed, 69 total +Snapshots: 0 total +Time: 18.67 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-blob-green.json diff --git a/docs/ui-modernisation/evidence/attachment-blob/green.txt.gz b/docs/ui-modernisation/evidence/attachment-blob/green.txt.gz new file mode 100644 index 00000000..d0ec6e5b Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-blob/green.txt.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-blob/lint.txt b/docs/ui-modernisation/evidence/attachment-blob/lint.txt new file mode 100644 index 00000000..e69de29b diff --git a/docs/ui-modernisation/evidence/attachment-blob/lint.txt.gz b/docs/ui-modernisation/evidence/attachment-blob/lint.txt.gz new file mode 100644 index 00000000..ae211a2c Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-blob/lint.txt.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-blob/red.json b/docs/ui-modernisation/evidence/attachment-blob/red.json new file mode 100644 index 00000000..fb053b16 --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-blob/red.json @@ -0,0 +1 @@ +{"numFailedTestSuites":1,"numFailedTests":14,"numPassedTestSuites":0,"numPassedTests":0,"numPendingTestSuites":0,"numPendingTests":24,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":1,"numTotalTests":38,"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":1794897629463,"success":false,"testResults":[{"assertionResults":[{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old attachment read resolve cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633948,"status":"pending","title":"old attachment read resolve cannot replace the next application"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old attachment read reject cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633948,"status":"pending","title":"old attachment read reject cannot replace the next application"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-rename read resolve cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633949,"status":"pending","title":"old post-rename read resolve cannot replace the next application"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-rename read reject cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633949,"status":"pending","title":"old post-rename read reject cannot replace the next application"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-delete read resolve cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633949,"status":"pending","title":"old post-delete read resolve cannot replace the next application"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"old post-delete read reject cannot replace the next application","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633949,"status":"pending","title":"old post-delete read reject cannot replace the next application"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after unmount cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633949,"status":"pending","title":"attachment rename decision after unmount cannot mutate the previous context"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after job change cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633949,"status":"pending","title":"attachment rename decision after job change cannot mutate the previous context"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename decision after session cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633949,"status":"pending","title":"attachment rename decision after session cannot mutate the previous context"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after unmount cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633949,"status":"pending","title":"attachment delete decision after unmount cannot mutate the previous context"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after job change cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633949,"status":"pending","title":"attachment delete decision after job change cannot mutate the previous context"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete decision after session cannot mutate the previous context","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633949,"status":"pending","title":"attachment delete decision after session cannot mutate the previous context"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename delayed resolve uses current language","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633949,"status":"pending","title":"attachment rename delayed resolve uses current language"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment rename delayed reject uses current language","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633949,"status":"pending","title":"attachment rename delayed reject uses current language"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete delayed resolve uses current language","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633949,"status":"pending","title":"attachment delete delayed resolve uses current language"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"attachment delete delayed reject uses current language","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633949,"status":"pending","title":"attachment delete delayed reject uses current language"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after unmount / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633949,"status":"pending","title":"late attachment rename after unmount / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after unmount / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633949,"status":"pending","title":"late attachment rename after unmount / reject cannot reload or notify"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after job change / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633949,"status":"pending","title":"late attachment rename after job change / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment rename after job change / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633949,"status":"pending","title":"late attachment rename after job change / reject cannot reload or notify"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after unmount / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633949,"status":"pending","title":"late attachment delete after unmount / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after unmount / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633949,"status":"pending","title":"late attachment delete after unmount / reject cannot reload or notify"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after job change / resolve cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633949,"status":"pending","title":"late attachment delete after job change / resolve cannot reload or notify"},{"ancestorTitles":[],"duration":null,"failing":false,"failureDetails":[],"failureMessages":[],"fullName":"late attachment delete after job change / reject cannot reload or notify","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897633949,"status":"pending","title":"late attachment delete after job change / reject cannot reload or notify"},{"ancestorTitles":[],"duration":316,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}","pass":true}}],"failureMessages":["Error: expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}\n at toHaveBeenCalled (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:138:37)"],"fullName":"late attachment Download after unmount / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794897633949,"status":"failed","title":"late attachment Download after unmount / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":180,"failing":false,"failureDetails":[{"matcherResult":{"pass":true,"message":"expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Download failed.
instead"}}],"failureMessages":["Error: expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Download failed.
instead\n at toBeInTheDocument (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:141:79)"],"fullName":"late attachment Download after unmount / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897634278,"status":"failed","title":"late attachment Download after unmount / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":202,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}","pass":true}}],"failureMessages":["Error: expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}\n at toHaveBeenCalled (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:138:37)"],"fullName":"late attachment Download after job change / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794897634458,"status":"failed","title":"late attachment Download after job change / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":182,"failing":false,"failureDetails":[{"matcherResult":{"pass":true,"message":"expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Download failed.
instead"}}],"failureMessages":["Error: expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Download failed.
instead\n at toBeInTheDocument (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:141:79)"],"fullName":"late attachment Download after job change / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897634660,"status":"failed","title":"late attachment Download after job change / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":82,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}","pass":true}}],"failureMessages":["Error: expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}\n at toHaveBeenCalled (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:138:37)"],"fullName":"late attachment Download after session / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794897634842,"status":"failed","title":"late attachment Download after session / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":119,"failing":false,"failureDetails":[{"matcherResult":{"pass":true,"message":"expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Download failed.
instead"}}],"failureMessages":["Error: expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Download failed.
instead\n at toBeInTheDocument (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:141:79)"],"fullName":"late attachment Download after session / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":4,"retryReasons":[],"startAt":1794897634924,"status":"failed","title":"late attachment Download after session / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":85,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}","pass":true}}],"failureMessages":["Error: expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}\n at toHaveBeenCalled (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:138:37)"],"fullName":"late attachment Preview after unmount / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794897635043,"status":"failed","title":"late attachment Preview after unmount / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":85,"failing":false,"failureDetails":[{"matcherResult":{"pass":true,"message":"expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Preview failed.
instead"}}],"failureMessages":["Error: expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Preview failed.
instead\n at toBeInTheDocument (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:142:78)"],"fullName":"late attachment Preview after unmount / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794897635128,"status":"failed","title":"late attachment Preview after unmount / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":201,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}","pass":true}}],"failureMessages":["Error: expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}\n at toHaveBeenCalled (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:138:37)"],"fullName":"late attachment Preview after job change / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794897635213,"status":"failed","title":"late attachment Preview after job change / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":161,"failing":false,"failureDetails":[{"matcherResult":{"pass":true,"message":"expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Preview failed.
instead"}}],"failureMessages":["Error: expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Preview failed.
instead\n at toBeInTheDocument (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:142:78)"],"fullName":"late attachment Preview after job change / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794897635414,"status":"failed","title":"late attachment Preview after job change / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":121,"failing":false,"failureDetails":[{"matcherResult":{"message":"expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}","pass":true}}],"failureMessages":["Error: expect(jest.fn()).not.toHaveBeenCalled()\n\nExpected number of calls: 0\nReceived number of calls: 1\n\n1: {}\n at toHaveBeenCalled (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:138:37)"],"fullName":"late attachment Preview after session / resolve cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":1,"retryReasons":[],"startAt":1794897635576,"status":"failed","title":"late attachment Preview after session / resolve cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":88,"failing":false,"failureDetails":[{"matcherResult":{"pass":true,"message":"expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Preview failed.
instead"}}],"failureMessages":["Error: expect(element).not.toBeInTheDocument()\n\nexpected document not to contain element, found
Preview failed.
instead\n at toBeInTheDocument (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx:142:78)"],"fullName":"late attachment Preview after session / reject cannot expose an obsolete blob","invocations":1,"location":null,"numPassingAsserts":5,"retryReasons":[],"startAt":1794897635697,"status":"failed","title":"late attachment Preview after session / reject cannot expose an obsolete blob"},{"ancestorTitles":[],"duration":4111,"failing":false,"failureDetails":[{},{},{"name":"TestingLibraryElementError"}],"failureMessages":["TypeError: URL.revokeObjectURL is not a function\n at revokeObjectURL (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\components\\Attachments.tsx:236:35)\n at Timeout.task [as _onTimeout] (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\node_modules\\jsdom\\lib\\jsdom\\browser\\Window.js:579:19)\n at listOnTimeout (node:internal/timers:635:17)\n at processTimers (node:internal/timers:571:7)","TypeError: URL.revokeObjectURL is not a function\n at revokeObjectURL (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\components\\Attachments.tsx:236:35)\n at Timeout.task [as _onTimeout] (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\node_modules\\jsdom\\lib\\jsdom\\browser\\Window.js:579:19)\n at listOnTimeout (node:internal/timers:635:17)\n at processTimers (node:internal/timers:571:7)","Error: Unable to find an element with the text: Nedlasting 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:157:23)"],"fullName":"delayed attachment Download failure uses the current locale","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897635785,"status":"failed","title":"delayed attachment Download failure uses the current locale"},{"ancestorTitles":[],"duration":4126,"failing":false,"failureDetails":[{},{"name":"TestingLibraryElementError"}],"failureMessages":["TypeError: URL.revokeObjectURL is not a function\n at revokeObjectURL (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\components\\Attachments.tsx:236:35)\n at Timeout.task [as _onTimeout] (C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\node_modules\\jsdom\\lib\\jsdom\\browser\\Window.js:579:19)\n at listOnTimeout (node:internal/timers:635:17)\n at processTimers (node:internal/timers:571:7)","Error: Unable to find an element with the text: Forhåndsvisning 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:157:23)"],"fullName":"delayed attachment Preview failure uses the current locale","invocations":1,"location":null,"numPassingAsserts":0,"retryReasons":[],"startAt":1794897639896,"status":"failed","title":"delayed attachment Preview failure uses the current locale"}],"endTime":1794897644062,"message":" ● late attachment Download after unmount / resolve cannot expose an obsolete blob\n\n expect(jest.fn()).not.toHaveBeenCalled()\n\n Expected number of calls: 0\n Received number of calls: 1\n\n 1: {}\n\n 136 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });\n 137 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });\n > 138 | expect(URL.createObjectURL).not.toHaveBeenCalled();\n | ^\n 139 | expect(click).not.toHaveBeenCalled();\n 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n\n at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:138:37)\n\n ● late attachment Download after unmount / reject cannot expose an obsolete blob\n\n expect(element).not.toBeInTheDocument()\n\n expected document not to contain element, found
Download failed.
instead\n\n 139 | expect(click).not.toHaveBeenCalled();\n 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n > 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n | ^\n 142 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument();\n 143 | } finally {\n 144 | view.unmount(); click.mockRestore();\n\n at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:141:79)\n\n ● late attachment Download after job change / resolve cannot expose an obsolete blob\n\n expect(jest.fn()).not.toHaveBeenCalled()\n\n Expected number of calls: 0\n Received number of calls: 1\n\n 1: {}\n\n 136 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });\n 137 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });\n > 138 | expect(URL.createObjectURL).not.toHaveBeenCalled();\n | ^\n 139 | expect(click).not.toHaveBeenCalled();\n 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n\n at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:138:37)\n\n ● late attachment Download after job change / reject cannot expose an obsolete blob\n\n expect(element).not.toBeInTheDocument()\n\n expected document not to contain element, found
Download failed.
instead\n\n 139 | expect(click).not.toHaveBeenCalled();\n 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n > 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n | ^\n 142 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument();\n 143 | } finally {\n 144 | view.unmount(); click.mockRestore();\n\n at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:141:79)\n\n ● late attachment Download after session / resolve cannot expose an obsolete blob\n\n expect(jest.fn()).not.toHaveBeenCalled()\n\n Expected number of calls: 0\n Received number of calls: 1\n\n 1: {}\n\n 136 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });\n 137 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });\n > 138 | expect(URL.createObjectURL).not.toHaveBeenCalled();\n | ^\n 139 | expect(click).not.toHaveBeenCalled();\n 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n\n at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:138:37)\n\n ● late attachment Download after session / reject cannot expose an obsolete blob\n\n expect(element).not.toBeInTheDocument()\n\n expected document not to contain element, found
Download failed.
instead\n\n 139 | expect(click).not.toHaveBeenCalled();\n 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n > 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n | ^\n 142 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument();\n 143 | } finally {\n 144 | view.unmount(); click.mockRestore();\n\n at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:141:79)\n\n ● late attachment Preview after unmount / resolve cannot expose an obsolete blob\n\n expect(jest.fn()).not.toHaveBeenCalled()\n\n Expected number of calls: 0\n Received number of calls: 1\n\n 1: {}\n\n 136 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });\n 137 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });\n > 138 | expect(URL.createObjectURL).not.toHaveBeenCalled();\n | ^\n 139 | expect(click).not.toHaveBeenCalled();\n 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n\n at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:138:37)\n\n ● late attachment Preview after unmount / reject cannot expose an obsolete blob\n\n expect(element).not.toBeInTheDocument()\n\n expected document not to contain element, found
Preview failed.
instead\n\n 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n > 142 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument();\n | ^\n 143 | } finally {\n 144 | view.unmount(); click.mockRestore();\n 145 | URL.createObjectURL = originalCreate; URL.revokeObjectURL = originalRevoke;\n\n at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:142:78)\n\n ● late attachment Preview after job change / resolve cannot expose an obsolete blob\n\n expect(jest.fn()).not.toHaveBeenCalled()\n\n Expected number of calls: 0\n Received number of calls: 1\n\n 1: {}\n\n 136 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });\n 137 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });\n > 138 | expect(URL.createObjectURL).not.toHaveBeenCalled();\n | ^\n 139 | expect(click).not.toHaveBeenCalled();\n 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n\n at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:138:37)\n\n ● late attachment Preview after job change / reject cannot expose an obsolete blob\n\n expect(element).not.toBeInTheDocument()\n\n expected document not to contain element, found
Preview failed.
instead\n\n 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n > 142 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument();\n | ^\n 143 | } finally {\n 144 | view.unmount(); click.mockRestore();\n 145 | URL.createObjectURL = originalCreate; URL.revokeObjectURL = originalRevoke;\n\n at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:142:78)\n\n ● late attachment Preview after session / resolve cannot expose an obsolete blob\n\n expect(jest.fn()).not.toHaveBeenCalled()\n\n Expected number of calls: 0\n Received number of calls: 1\n\n 1: {}\n\n 136 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); });\n 137 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); });\n > 138 | expect(URL.createObjectURL).not.toHaveBeenCalled();\n | ^\n 139 | expect(click).not.toHaveBeenCalled();\n 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n\n at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:138:37)\n\n ● late attachment Preview after session / reject cannot expose an obsolete blob\n\n expect(element).not.toBeInTheDocument()\n\n expected document not to contain element, found
Preview failed.
instead\n\n 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument();\n 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument();\n > 142 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument();\n | ^\n 143 | } finally {\n 144 | view.unmount(); click.mockRestore();\n 145 | URL.createObjectURL = originalCreate; URL.revokeObjectURL = originalRevoke;\n\n at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:142:78)\n\n ● delayed attachment Download failure uses the current locale\n\n TypeError: URL.revokeObjectURL is not a function\n\n 234 | link.click();\n 235 | link.remove();\n > 236 | window.setTimeout(() => URL.revokeObjectURL(url), 5000);\n | ^\n 237 | } catch (error) {\n 238 | toast(getApiErrorMessage(error, t(\"attachmentsDownloadFailed\")), \"error\");\n 239 | }\n\n at revokeObjectURL (src/components/Attachments.tsx:236:35)\n at Timeout.task [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:579:19)\n\n ● delayed attachment Download failure uses the current locale\n\n TypeError: URL.revokeObjectURL is not a function\n\n 234 | link.click();\n 235 | link.remove();\n > 236 | window.setTimeout(() => URL.revokeObjectURL(url), 5000);\n | ^\n 237 | } catch (error) {\n 238 | toast(getApiErrorMessage(error, t(\"attachmentsDownloadFailed\")), \"error\");\n 239 | }\n\n at revokeObjectURL (src/components/Attachments.tsx:236:35)\n at Timeout.task [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:579:19)\n\n ● delayed attachment Download failure uses the current locale\n\n Unable to find an element with the text: Nedlasting 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 155 | await act(async () => pending.reject(new Error('synthetic blob failure')));\n 156 | const key = action === 'Download' ? 'attachmentsDownloadFailed' : 'attachmentsPreviewFailed';\n > 157 | expect(await screen.findByText(translations.nb[key])).toBeVisible();\n | ^\n 158 | expect(screen.queryByText(translations.en[key])).not.toBeInTheDocument();\n 159 | });\n 160 |\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:157:23)\n\n ● delayed attachment Preview failure uses the current locale\n\n TypeError: URL.revokeObjectURL is not a function\n\n 234 | link.click();\n 235 | link.remove();\n > 236 | window.setTimeout(() => URL.revokeObjectURL(url), 5000);\n | ^\n 237 | } catch (error) {\n 238 | toast(getApiErrorMessage(error, t(\"attachmentsDownloadFailed\")), \"error\");\n 239 | }\n\n at revokeObjectURL (src/components/Attachments.tsx:236:35)\n at Timeout.task [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:579:19)\n\n ● delayed attachment Preview failure uses the current locale\n\n Unable to find an element with the text: Forhåndsvisning 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 155 | await act(async () => pending.reject(new Error('synthetic blob failure')));\n 156 | const key = action === 'Download' ? 'attachmentsDownloadFailed' : 'attachmentsPreviewFailed';\n > 157 | expect(await screen.findByText(translations.nb[key])).toBeVisible();\n | ^\n 158 | expect(screen.queryByText(translations.en[key])).not.toBeInTheDocument();\n 159 | });\n 160 |\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:157:23)\n","name":"C:\\Users\\Connor\\.codex\\worktrees\\direct-roadmap-integration\\Job tracker\\job-tracker-ui\\src\\attachment-action-lifetime.test.tsx","startTime":1794897630325,"status":"failed","summary":""}],"wasInterrupted":false} diff --git a/docs/ui-modernisation/evidence/attachment-blob/red.json.gz b/docs/ui-modernisation/evidence/attachment-blob/red.json.gz new file mode 100644 index 00000000..46193a79 Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-blob/red.json.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-blob/red.txt b/docs/ui-modernisation/evidence/attachment-blob/red.txt new file mode 100644 index 00000000..5c6c01b9 --- /dev/null +++ b/docs/ui-modernisation/evidence/attachment-blob/red.txt @@ -0,0 +1,640 @@ + console.error + Error: Uncaught [TypeError: URL.revokeObjectURL is not a function] + at reportException (C:\Users\Connor\.codex\worktrees\direct-roadmap-integration\Job tracker\job-tracker-ui\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24) + at Timeout.task [as _onTimeout] (C:\Users\Connor\.codex\worktrees\direct-roadmap-integration\Job tracker\job-tracker-ui\node_modules\jsdom\lib\jsdom\browser\Window.js:584:9) + at listOnTimeout (node:internal/timers:635:17) + at processTimers (node:internal/timers:571:7) { + detail: TypeError: URL.revokeObjectURL is not a function + at revokeObjectURL (C:\Users\Connor\.codex\worktrees\direct-roadmap-integration\Job tracker\job-tracker-ui\src\components\Attachments.tsx:236:35) + at Timeout.task [as _onTimeout] (C:\Users\Connor\.codex\worktrees\direct-roadmap-integration\Job tracker\job-tracker-ui\node_modules\jsdom\lib\jsdom\browser\Window.js:579:19) + at listOnTimeout (node:internal/timers:635:17) + at processTimers (node:internal/timers:571:7), + type: 'unhandled exception' + } + + at VirtualConsole. (node_modules/@jest/environment-jsdom-abstract/build/index.js:87:23) + at reportException (node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:70:28) + at Timeout.task [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:584:9) + + console.error + Error: Uncaught [TypeError: URL.revokeObjectURL is not a function] + at reportException (C:\Users\Connor\.codex\worktrees\direct-roadmap-integration\Job tracker\job-tracker-ui\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24) + at Timeout.task [as _onTimeout] (C:\Users\Connor\.codex\worktrees\direct-roadmap-integration\Job tracker\job-tracker-ui\node_modules\jsdom\lib\jsdom\browser\Window.js:584:9) + at listOnTimeout (node:internal/timers:635:17) + at processTimers (node:internal/timers:571:7) { + detail: TypeError: URL.revokeObjectURL is not a function + at revokeObjectURL (C:\Users\Connor\.codex\worktrees\direct-roadmap-integration\Job tracker\job-tracker-ui\src\components\Attachments.tsx:236:35) + at Timeout.task [as _onTimeout] (C:\Users\Connor\.codex\worktrees\direct-roadmap-integration\Job tracker\job-tracker-ui\node_modules\jsdom\lib\jsdom\browser\Window.js:579:19) + at listOnTimeout (node:internal/timers:635:17) + at processTimers (node:internal/timers:571:7), + type: 'unhandled exception' + } + + at VirtualConsole. (node_modules/@jest/environment-jsdom-abstract/build/index.js:87:23) + at reportException (node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:70:28) + at Timeout.task [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:584:9) + + console.error + Error: Uncaught [TypeError: URL.revokeObjectURL is not a function] + at reportException (C:\Users\Connor\.codex\worktrees\direct-roadmap-integration\Job tracker\job-tracker-ui\node_modules\jsdom\lib\jsdom\living\helpers\runtime-script-errors.js:66:24) + at Timeout.task [as _onTimeout] (C:\Users\Connor\.codex\worktrees\direct-roadmap-integration\Job tracker\job-tracker-ui\node_modules\jsdom\lib\jsdom\browser\Window.js:584:9) + at listOnTimeout (node:internal/timers:635:17) + at processTimers (node:internal/timers:571:7) { + detail: TypeError: URL.revokeObjectURL is not a function + at revokeObjectURL (C:\Users\Connor\.codex\worktrees\direct-roadmap-integration\Job tracker\job-tracker-ui\src\components\Attachments.tsx:236:35) + at Timeout.task [as _onTimeout] (C:\Users\Connor\.codex\worktrees\direct-roadmap-integration\Job tracker\job-tracker-ui\node_modules\jsdom\lib\jsdom\browser\Window.js:579:19) + at listOnTimeout (node:internal/timers:635:17) + at processTimers (node:internal/timers:571:7), + type: 'unhandled exception' + } + + at VirtualConsole. (node_modules/@jest/environment-jsdom-abstract/build/index.js:87:23) + at reportException (node_modules/jsdom/lib/jsdom/living/helpers/runtime-script-errors.js:70:28) + at Timeout.task [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:584:9) + +FAIL src/attachment-action-lifetime.test.tsx (13.737 s) + ● late attachment Download after unmount / resolve cannot expose an obsolete blob + + expect(jest.fn()).not.toHaveBeenCalled() + + Expected number of calls: 0 + Received number of calls: 1 + + 1: {} + + 136 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 137 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + > 138 | expect(URL.createObjectURL).not.toHaveBeenCalled(); + | ^ + 139 | expect(click).not.toHaveBeenCalled(); + 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + + at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:138:37) + + ● late attachment Download after unmount / reject cannot expose an obsolete blob + + expect(element).not.toBeInTheDocument() + + expected document not to contain element, found
Download failed.
instead + + 139 | expect(click).not.toHaveBeenCalled(); + 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + > 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + | ^ + 142 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument(); + 143 | } finally { + 144 | view.unmount(); click.mockRestore(); + + at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:141:79) + + ● late attachment Download after job change / resolve cannot expose an obsolete blob + + expect(jest.fn()).not.toHaveBeenCalled() + + Expected number of calls: 0 + Received number of calls: 1 + + 1: {} + + 136 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 137 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + > 138 | expect(URL.createObjectURL).not.toHaveBeenCalled(); + | ^ + 139 | expect(click).not.toHaveBeenCalled(); + 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + + at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:138:37) + + ● late attachment Download after job change / reject cannot expose an obsolete blob + + expect(element).not.toBeInTheDocument() + + expected document not to contain element, found
Download failed.
instead + + 139 | expect(click).not.toHaveBeenCalled(); + 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + > 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + | ^ + 142 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument(); + 143 | } finally { + 144 | view.unmount(); click.mockRestore(); + + at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:141:79) + + ● late attachment Download after session / resolve cannot expose an obsolete blob + + expect(jest.fn()).not.toHaveBeenCalled() + + Expected number of calls: 0 + Received number of calls: 1 + + 1: {} + + 136 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 137 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + > 138 | expect(URL.createObjectURL).not.toHaveBeenCalled(); + | ^ + 139 | expect(click).not.toHaveBeenCalled(); + 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + + at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:138:37) + + ● late attachment Download after session / reject cannot expose an obsolete blob + + expect(element).not.toBeInTheDocument() + + expected document not to contain element, found
Download failed.
instead + + 139 | expect(click).not.toHaveBeenCalled(); + 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + > 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + | ^ + 142 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument(); + 143 | } finally { + 144 | view.unmount(); click.mockRestore(); + + at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:141:79) + + ● late attachment Preview after unmount / resolve cannot expose an obsolete blob + + expect(jest.fn()).not.toHaveBeenCalled() + + Expected number of calls: 0 + Received number of calls: 1 + + 1: {} + + 136 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 137 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + > 138 | expect(URL.createObjectURL).not.toHaveBeenCalled(); + | ^ + 139 | expect(click).not.toHaveBeenCalled(); + 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + + at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:138:37) + + ● late attachment Preview after unmount / reject cannot expose an obsolete blob + + expect(element).not.toBeInTheDocument() + + expected document not to contain element, found
Preview failed.
instead + + 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + > 142 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument(); + | ^ + 143 | } finally { + 144 | view.unmount(); click.mockRestore(); + 145 | URL.createObjectURL = originalCreate; URL.revokeObjectURL = originalRevoke; + + at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:142:78) + + ● late attachment Preview after job change / resolve cannot expose an obsolete blob + + expect(jest.fn()).not.toHaveBeenCalled() + + Expected number of calls: 0 + Received number of calls: 1 + + 1: {} + + 136 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 137 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + > 138 | expect(URL.createObjectURL).not.toHaveBeenCalled(); + | ^ + 139 | expect(click).not.toHaveBeenCalled(); + 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + + at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:138:37) + + ● late attachment Preview after job change / reject cannot expose an obsolete blob + + expect(element).not.toBeInTheDocument() + + expected document not to contain element, found
Preview failed.
instead + + 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + > 142 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument(); + | ^ + 143 | } finally { + 144 | view.unmount(); click.mockRestore(); + 145 | URL.createObjectURL = originalCreate; URL.revokeObjectURL = originalRevoke; + + at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:142:78) + + ● late attachment Preview after session / resolve cannot expose an obsolete blob + + expect(jest.fn()).not.toHaveBeenCalled() + + Expected number of calls: 0 + Received number of calls: 1 + + 1: {} + + 136 | else await act(async () => { view.rerender(page(77, boundary !== 'unmount')); }); + 137 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: new Blob(['private attachment']) }); else pending.reject(new Error('obsolete blob failure')); }); + > 138 | expect(URL.createObjectURL).not.toHaveBeenCalled(); + | ^ + 139 | expect(click).not.toHaveBeenCalled(); + 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + + at toHaveBeenCalled (src/attachment-action-lifetime.test.tsx:138:37) + + ● late attachment Preview after session / reject cannot expose an obsolete blob + + expect(element).not.toBeInTheDocument() + + expected document not to contain element, found
Preview failed.
instead + + 140 | expect(screen.queryByRole('dialog')).not.toBeInTheDocument(); + 141 | expect(screen.queryByText(translations.en.attachmentsDownloadFailed)).not.toBeInTheDocument(); + > 142 | expect(screen.queryByText(translations.en.attachmentsPreviewFailed)).not.toBeInTheDocument(); + | ^ + 143 | } finally { + 144 | view.unmount(); click.mockRestore(); + 145 | URL.createObjectURL = originalCreate; URL.revokeObjectURL = originalRevoke; + + at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:142:78) + + ● delayed attachment Download failure uses the current locale + + TypeError: URL.revokeObjectURL is not a function + + 234 | link.click(); + 235 | link.remove(); + > 236 | window.setTimeout(() => URL.revokeObjectURL(url), 5000); + | ^ + 237 | } catch (error) { + 238 | toast(getApiErrorMessage(error, t("attachmentsDownloadFailed")), "error"); + 239 | } + + at revokeObjectURL (src/components/Attachments.tsx:236:35) + at Timeout.task [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:579:19) + + ● delayed attachment Download failure uses the current locale + + TypeError: URL.revokeObjectURL is not a function + + 234 | link.click(); + 235 | link.remove(); + > 236 | window.setTimeout(() => URL.revokeObjectURL(url), 5000); + | ^ + 237 | } catch (error) { + 238 | toast(getApiErrorMessage(error, t("attachmentsDownloadFailed")), "error"); + 239 | } + + at revokeObjectURL (src/components/Attachments.tsx:236:35) + at Timeout.task [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:579:19) + + ● delayed attachment Download failure uses the current locale + + Unable to find an element with the text: Nedlasting 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 + + ... + + 155 | await act(async () => pending.reject(new Error('synthetic blob failure'))); + 156 | const key = action === 'Download' ? 'attachmentsDownloadFailed' : 'attachmentsPreviewFailed'; + > 157 | expect(await screen.findByText(translations.nb[key])).toBeVisible(); + | ^ + 158 | expect(screen.queryByText(translations.en[key])).not.toBeInTheDocument(); + 159 | }); + 160 | + + 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:157:23) + + ● delayed attachment Preview failure uses the current locale + + TypeError: URL.revokeObjectURL is not a function + + 234 | link.click(); + 235 | link.remove(); + > 236 | window.setTimeout(() => URL.revokeObjectURL(url), 5000); + | ^ + 237 | } catch (error) { + 238 | toast(getApiErrorMessage(error, t("attachmentsDownloadFailed")), "error"); + 239 | } + + at revokeObjectURL (src/components/Attachments.tsx:236:35) + at Timeout.task [as _onTimeout] (node_modules/jsdom/lib/jsdom/browser/Window.js:579:19) + + ● delayed attachment Preview failure uses the current locale + + Unable to find an element with the text: Forhåndsvisning 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 + + ... + + 155 | await act(async () => pending.reject(new Error('synthetic blob failure'))); + 156 | const key = action === 'Download' ? 'attachmentsDownloadFailed' : 'attachmentsPreviewFailed'; + > 157 | expect(await screen.findByText(translations.nb[key])).toBeVisible(); + | ^ + 158 | expect(screen.queryByText(translations.en[key])).not.toBeInTheDocument(); + 159 | }); + 160 | + + 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:157:23) + +Test Suites: 1 failed, 1 total +Tests: 14 failed, 24 skipped, 38 total +Snapshots: 0 total +Time: 14.607 s +Ran all test suites matching src/attachment-action-lifetime.test.tsx with tests matching "obsolete blob|delayed attachment (Download|Preview)". +Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\attachment-blob-red.json diff --git a/docs/ui-modernisation/evidence/attachment-blob/red.txt.gz b/docs/ui-modernisation/evidence/attachment-blob/red.txt.gz new file mode 100644 index 00000000..cbf85222 Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-blob/red.txt.gz differ diff --git a/docs/ui-modernisation/evidence/attachment-blob/typecheck.txt b/docs/ui-modernisation/evidence/attachment-blob/typecheck.txt new file mode 100644 index 00000000..e69de29b diff --git a/docs/ui-modernisation/evidence/attachment-blob/typecheck.txt.gz b/docs/ui-modernisation/evidence/attachment-blob/typecheck.txt.gz new file mode 100644 index 00000000..ae211a2c Binary files /dev/null and b/docs/ui-modernisation/evidence/attachment-blob/typecheck.txt.gz differ