docs(attachments): bind stale list read regression evidence
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# Attachment list read context
|
||||
|
||||
17 November 2026. Source `cddcdedf` on `codex/a3-ui-10`, based on `745ec3ea`.
|
||||
|
||||
Initial/retry and post-rename/delete list reads now use the existing mounted application/session guard. Departed reads cannot replace the next application's items, errors or loading state. The guard is memoised for the current job, preserving the no-extra-read language-switch fix. Endpoints, list data, write payloads and canonical file ownership are unchanged.
|
||||
|
||||
Six regressions first FAILED: old initial and post-rename/delete success/failure replaced the next application's list/error state. Final55 cases/four suites PASSED; earlier49 and shared cases overlap55. Project TypeScript, scoped lint, diff check and AST update PASSED (19,287 nodes/47,414 edges). Exact source/native gzip evidence: `evidence/attachment-read/SOURCE_RECEIPTS.json`.
|
||||
|
||||
This is mocked API/UI/session evidence, not real provider/storage/browser/session/security acceptance. Same-job overlapping refresh ordering, upload/metadata and download/preview completions remain separate work. The Next build and final A3/I18N/security/release gates remain open. Rollback: revert only this source commit; no migration/data rollback needed.
|
||||
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"sourceCommit": "cddcdedfc3cd7314b6e9131e0a966a823858ccd4",
|
||||
"sourcesLfSha256": {
|
||||
"job-tracker-ui/src/attachment-action-lifetime.test.tsx": "f3881a75cf3d3639bf0b3e310791d6e4f6e02dc2f5a98209a9a09150b5c3d091",
|
||||
"job-tracker-ui/src/components/Attachments.tsx": "11a1ebda2fc8d6b095b50e4528456b792de2d3678c935377c2fa3641023068b7"
|
||||
},
|
||||
"evidenceLfSha256": {
|
||||
"red.json": "5ef12f668469e6014a8047d0d8d3e27eb808814c331c1a50f1a247b879682866",
|
||||
"red.txt": "a272bdf727dc6e2c05d34cf86c25d4651566af78e6ab9eea3e62aa5a016be21e",
|
||||
"green.json": "2c1e06b913c6ec9e63ff780bb45bc58c474522c8f09299eff911617f8363572a",
|
||||
"green.txt": "00c454784c7e695c44e8dad2caa3c6d2f318b933631852d6d7724e215ab106d6",
|
||||
"typecheck.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"lint.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"graph.txt": "0e4dbc9e641cd62476d4251065a6846c08c69d174be4f510262589d3e8ec44e0"
|
||||
},
|
||||
"nativeReceipts": [
|
||||
{
|
||||
"path": "red.json",
|
||||
"gzipPath": "red.json.gz",
|
||||
"rawSha256": "5ef12f668469e6014a8047d0d8d3e27eb808814c331c1a50f1a247b879682866",
|
||||
"gzipSha256": "f584a0be5386f59502c943e3dba4f8fe95c8187eb1805c0e2e93ff081296192a"
|
||||
},
|
||||
{
|
||||
"path": "red.txt",
|
||||
"gzipPath": "red.txt.gz",
|
||||
"rawSha256": "11b3e6c756c3cb384f8e1412ee85aa7f56450ea7a88d5da28fc7c91671dfd2a8",
|
||||
"gzipSha256": "5955bbdb5fc1a5401e73deefb111a69bce12d36aef344f7bbcbd1c464a52277c"
|
||||
},
|
||||
{
|
||||
"path": "green.json",
|
||||
"gzipPath": "green.json.gz",
|
||||
"rawSha256": "2c1e06b913c6ec9e63ff780bb45bc58c474522c8f09299eff911617f8363572a",
|
||||
"gzipSha256": "b5f0a1a163b3be653add2e03f74087bedd22db83b6ccd8ca767dd2cdfa0f1230"
|
||||
},
|
||||
{
|
||||
"path": "green.txt",
|
||||
"gzipPath": "green.txt.gz",
|
||||
"rawSha256": "a5c378ece25953562b259d0d6d545592f87d3dcf2fd2793b7ac67d7684cbf259",
|
||||
"gzipSha256": "91d5b4e6ebc7a9f7d17a95c36168a57c2d022d77e1fc90c55f9933d3c738258e"
|
||||
},
|
||||
{
|
||||
"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": "6aa3a174c4956dda5195b690f1a5c96eb647dc9d25f4c398f4372d8326bba2de",
|
||||
"gzipSha256": "d2f13d654f3f7e4fa58272ba35216a4a988da9aef81fade7e70b4b7caa19f7ab"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
Re-extracting code files in . (no LLM needed)...
|
||||
[graphify watch] 592 file(s) not classified (no supported extension or shebang), skipped: .dockerignore, .env.example, .git, .gitattributes, .gitignore, 1440-en-dark-converted.gz (+586 more)
|
||||
AST cache: 2546/2995 files served from cache (85%); 449 to extract
|
||||
AST extraction: 100/449 uncached files (22%) [16 workers]
|
||||
AST extraction: 200/449 uncached files (44%) [16 workers]
|
||||
AST extraction: 300/449 uncached files (66%) [16 workers]
|
||||
AST extraction: 400/449 uncached files (89%) [16 workers]
|
||||
AST extraction: 449/449 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, 1178 communities now; renamed 129 community(ies) by their hub). Run `graphify label` to refresh names with the LLM.
|
||||
Graph has 19287 nodes (above 5000 limit). Building aggregated community view...
|
||||
graph.html written (aggregated: 1178 community nodes, 3180 cross-community edges)
|
||||
Tip: run with --obsidian for full node-level detail.
|
||||
[graphify watch] Rebuilt: 19287 nodes, 47414 edges, 1178 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.
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
|
||||
Test Suites: 4 passed, 4 total
|
||||
Tests: 55 passed, 55 total
|
||||
Snapshots: 0 total
|
||||
Time: 16.928 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-read-green.json
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -0,0 +1,544 @@
|
||||
FAIL src/attachment-action-lifetime.test.tsx
|
||||
● old attachment read resolve cannot replace the next application
|
||||
|
||||
TestingLibraryElementError: Unable to find an element with the text: Current application.pdf. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
|
||||
|
||||
Ignored nodes: comments, script, style
|
||||
<body>
|
||||
<div>
|
||||
<div
|
||||
class="MuiBox-root css-0"
|
||||
>
|
||||
<div
|
||||
class="MuiBox-root css-1owejxv"
|
||||
>
|
||||
<div
|
||||
class="MuiBox-root css-0"
|
||||
>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body1 css-1v8ok63-MuiTypography-root"
|
||||
>
|
||||
Attachments (1)
|
||||
</p>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"
|
||||
>
|
||||
Upload resumes, cover letters, portfolios, and supporting files for this application.
|
||||
</p>
|
||||
<div
|
||||
class="MuiBox-root css-x2j9i8"
|
||||
>
|
||||
<div
|
||||
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"
|
||||
>
|
||||
<span
|
||||
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
|
||||
>
|
||||
0 images
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"
|
||||
>
|
||||
<span
|
||||
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
|
||||
>
|
||||
1 PDFs
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"
|
||||
>
|
||||
<span
|
||||
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
|
||||
>
|
||||
Max 10 MB each
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button
|
||||
class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary css-74b9is-MuiButtonBase-root-MuiButton-root"
|
||||
tabindex="0"
|
||||
type="button"
|
||||
>
|
||||
<span
|
||||
class="MuiButton-icon MuiButton-startIcon MuiButton-iconSizeSmall css-d8i980-MuiButton-startIcon"
|
||||
>
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1umw9bq-MuiSvgIcon-root"
|
||||
data-testid="CloudUploadOutlinedIcon"
|
||||
focusable="false"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3M8 13h2.55v3h2.9v-3H16l-4-4z"
|
||||
/>
|
||||
</svg>
|
||||
</span>
|
||||
Upload
|
||||
</button>
|
||||
<input
|
||||
hidden=""
|
||||
multiple=""
|
||||
type="file"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="MuiBox-root css-497k9w"
|
||||
>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body1 css-1g7ym63-MuiTypography-root"
|
||||
>
|
||||
Drag and drop files here
|
||||
</p>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body2 css-1moljxt-MuiTypography-root"
|
||||
>
|
||||
or use the upload button to choose documents from your device.
|
||||
</p>
|
||||
</div>
|
||||
<span
|
||||
aria-atomic="true"
|
||||
aria-live="polite"
|
||||
class="MuiBox-root css-ty8jgw"
|
||||
role="status"
|
||||
>
|
||||
Content loaded.
|
||||
</span>
|
||||
<div
|
||||
aria-label="Attachments (1)"
|
||||
class="MuiTableContainer-root css-1sde01b-MuiTableContainer-root"
|
||||
role="region"
|
||||
tabindex="0"
|
||||
>
|
||||
<table
|
||||
aria-label="Current documents"
|
||||
class="MuiTable-root css-1ii7ygr-MuiTable-root"
|
||||
>
|
||||
<thead
|
||||
class="MuiTableHead-root css-1a7iywq-MuiTableHead-root"
|
||||
>
|
||||
<tr
|
||||
class="MuiTableRow-root MuiTableRow-head css-1xtozoh-MuiTableRow-root"
|
||||
>
|
||||
<th
|
||||
class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-10umtgd-MuiTableCell-root"
|
||||
scope="col"
|
||||
>
|
||||
Name
|
||||
</th>
|
||||
<th
|
||||
class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-vgdc2f-MuiTableCell-root"
|
||||
scope="col"
|
||||
>
|
||||
Kind
|
||||
</th>
|
||||
<th
|
||||
class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-by61h7-MuiTableCell-root"
|
||||
scope="col"
|
||||
>
|
||||
Type
|
||||
</th>
|
||||
<th
|
||||
class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-1vxk39h-MuiTableCell-root"
|
||||
scope="col"
|
||||
>
|
||||
Size
|
||||
<...
|
||||
|
||||
56 | expect(await screen.findByText(current.fileName)).toBeVisible();
|
||||
57 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: [file] }); else pending.reject(new Error('obsolete initial read')); });
|
||||
> 58 | expect(screen.getByText(current.fileName)).toBeVisible();
|
||||
| ^
|
||||
59 | expect(screen.queryByText(file.fileName)).not.toBeInTheDocument();
|
||||
60 | expect(screen.queryByRole('alert')).not.toBeInTheDocument();
|
||||
61 | });
|
||||
|
||||
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
|
||||
at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
|
||||
at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
|
||||
at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
|
||||
at getByText (src/attachment-action-lifetime.test.tsx:58:17)
|
||||
|
||||
● old attachment read reject cannot replace the next application
|
||||
|
||||
expect(element).not.toBeInTheDocument()
|
||||
|
||||
expected document not to contain element, found <div class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorError MuiAlert-standardError MuiAlert-standard css-lf9xu2-MuiPaper-root-MuiAlert-root" role="alert" style="--Paper-shadow: none;"><div class="MuiAlert-icon css-1wrdnka-MuiAlert-icon"><svg aria-hidden="true" class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1ckov0h-MuiSvgIcon-root" data-testid="ErrorOutlineIcon" focusable="false" viewBox="0 0 24 24"><path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" /></svg></div><div class="MuiAlert-message css-zioonp-MuiAlert-message"><p class="MuiTypography-root MuiTypography-body1 css-bergga-MuiTypography-root">Could not load this application's attachments.</p></div><div class="MuiAlert-action css-rgppqo-MuiAlert-action"><button class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textInherit MuiButton-sizeSmall MuiButton-textSizeSmall MuiButton-colorInherit MuiButton-root MuiButton-text MuiButton-textInherit MuiButton-sizeSmall MuiButton-textSizeSmall MuiButton-colorInherit css-j2tw6f-MuiButtonBase-root-MuiButton-root" tabindex="0" type="button">Retry</button></div></div> instead
|
||||
|
||||
58 | expect(screen.getByText(current.fileName)).toBeVisible();
|
||||
59 | expect(screen.queryByText(file.fileName)).not.toBeInTheDocument();
|
||||
> 60 | expect(screen.queryByRole('alert')).not.toBeInTheDocument();
|
||||
| ^
|
||||
61 | });
|
||||
62 |
|
||||
63 | test.each((['rename', 'delete'] as const).flatMap(action => (['resolve', 'reject'] as const).map(outcome => [action, outcome] as const)))('old post-%s read %s cannot replace the next application', async (action, outcome) => {
|
||||
|
||||
at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:60:43)
|
||||
|
||||
● old post-rename read resolve cannot replace the next application
|
||||
|
||||
TestingLibraryElementError: Unable to find an element with the text: Current application.pdf. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
|
||||
|
||||
Ignored nodes: comments, script, style
|
||||
<body
|
||||
style="padding-right: 1024px; overflow: hidden;"
|
||||
>
|
||||
<div
|
||||
aria-hidden="true"
|
||||
>
|
||||
<div
|
||||
class="MuiBox-root css-0"
|
||||
>
|
||||
<div
|
||||
class="MuiBox-root css-1owejxv"
|
||||
>
|
||||
<div
|
||||
class="MuiBox-root css-0"
|
||||
>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body1 css-1v8ok63-MuiTypography-root"
|
||||
>
|
||||
Attachments (1)
|
||||
</p>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"
|
||||
>
|
||||
Upload resumes, cover letters, portfolios, and supporting files for this application.
|
||||
</p>
|
||||
<div
|
||||
class="MuiBox-root css-x2j9i8"
|
||||
>
|
||||
<div
|
||||
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"
|
||||
>
|
||||
<span
|
||||
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
|
||||
>
|
||||
0 images
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"
|
||||
>
|
||||
<span
|
||||
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
|
||||
>
|
||||
1 PDFs
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"
|
||||
>
|
||||
<span
|
||||
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
|
||||
>
|
||||
Max 10 MB each
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button
|
||||
class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary css-74b9is-MuiButtonBase-root-MuiButton-root"
|
||||
tabindex="0"
|
||||
type="button"
|
||||
>
|
||||
<span
|
||||
class="MuiButton-icon MuiButton-startIcon MuiButton-iconSizeSmall css-d8i980-MuiButton-startIcon"
|
||||
>
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1umw9bq-MuiSvgIcon-root"
|
||||
data-testid="CloudUploadOutlinedIcon"
|
||||
focusable="false"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3M8 13h2.55v3h2.9v-3H16l-4-4z"
|
||||
/>
|
||||
</svg>
|
||||
</span>
|
||||
Upload
|
||||
</button>
|
||||
<input
|
||||
hidden=""
|
||||
multiple=""
|
||||
type="file"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="MuiBox-root css-497k9w"
|
||||
>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body1 css-1g7ym63-MuiTypography-root"
|
||||
>
|
||||
Drag and drop files here
|
||||
</p>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body2 css-1moljxt-MuiTypography-root"
|
||||
>
|
||||
or use the upload button to choose documents from your device.
|
||||
</p>
|
||||
</div>
|
||||
<span
|
||||
aria-atomic="true"
|
||||
aria-live="polite"
|
||||
class="MuiBox-root css-ty8jgw"
|
||||
role="status"
|
||||
>
|
||||
Content loaded.
|
||||
</span>
|
||||
<div
|
||||
aria-label="Attachments (1)"
|
||||
class="MuiTableContainer-root css-1sde01b-MuiTableContainer-root"
|
||||
role="region"
|
||||
tabindex="0"
|
||||
>
|
||||
<table
|
||||
aria-label="Current documents"
|
||||
class="MuiTable-root css-1ii7ygr-MuiTable-root"
|
||||
>
|
||||
<thead
|
||||
class="MuiTableHead-root css-1a7iywq-MuiTableHead-root"
|
||||
>
|
||||
<tr
|
||||
class="MuiTableRow-root MuiTableRow-head css-1xtozoh-MuiTableRow-root"
|
||||
>
|
||||
<th
|
||||
class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-10umtgd-MuiTableCell-root"
|
||||
scope="col"
|
||||
>
|
||||
Name
|
||||
</th>
|
||||
<th
|
||||
class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-vgdc2f-MuiTableCell-root"
|
||||
scope="col"
|
||||
>
|
||||
Kind
|
||||
</th>
|
||||
<th
|
||||
class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-by61h7-MuiTableCell-root"
|
||||
scope="col"
|
||||
>
|
||||
Type
|
||||
</th>
|
||||
<th
|
||||
class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-1vxk39h-MuiTableC...
|
||||
|
||||
71 | expect(await screen.findByText(current.fileName)).toBeVisible();
|
||||
72 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: [file] }); else pending.reject(new Error('obsolete refresh read')); });
|
||||
> 73 | expect(screen.getByText(current.fileName)).toBeVisible();
|
||||
| ^
|
||||
74 | expect(screen.queryByText(file.fileName)).not.toBeInTheDocument();
|
||||
75 | expect(screen.queryByText(translations.en.attachmentsLoadFailed)).not.toBeInTheDocument();
|
||||
76 | });
|
||||
|
||||
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
|
||||
at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
|
||||
at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
|
||||
at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
|
||||
at getByText (src/attachment-action-lifetime.test.tsx:73:17)
|
||||
|
||||
● old post-rename read reject cannot replace the next application
|
||||
|
||||
expect(element).not.toBeInTheDocument()
|
||||
|
||||
expected document not to contain element, found <p class="MuiTypography-root MuiTypography-body1 css-bergga-MuiTypography-root">Could not load this application's attachments.</p> instead
|
||||
|
||||
73 | expect(screen.getByText(current.fileName)).toBeVisible();
|
||||
74 | expect(screen.queryByText(file.fileName)).not.toBeInTheDocument();
|
||||
> 75 | expect(screen.queryByText(translations.en.attachmentsLoadFailed)).not.toBeInTheDocument();
|
||||
| ^
|
||||
76 | });
|
||||
77 | test.each([
|
||||
78 | ["rename", "unmount"], ["rename", "job change"], ["rename", "session"],
|
||||
|
||||
at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:75:73)
|
||||
|
||||
● old post-delete read resolve cannot replace the next application
|
||||
|
||||
TestingLibraryElementError: Unable to find an element with the text: Current application.pdf. This could be because the text is broken up by multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
|
||||
|
||||
Ignored nodes: comments, script, style
|
||||
<body
|
||||
style="padding-right: 1024px; overflow: hidden;"
|
||||
>
|
||||
<div
|
||||
aria-hidden="true"
|
||||
>
|
||||
<div
|
||||
class="MuiBox-root css-0"
|
||||
>
|
||||
<div
|
||||
class="MuiBox-root css-1owejxv"
|
||||
>
|
||||
<div
|
||||
class="MuiBox-root css-0"
|
||||
>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body1 css-1v8ok63-MuiTypography-root"
|
||||
>
|
||||
Attachments (1)
|
||||
</p>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"
|
||||
>
|
||||
Upload resumes, cover letters, portfolios, and supporting files for this application.
|
||||
</p>
|
||||
<div
|
||||
class="MuiBox-root css-x2j9i8"
|
||||
>
|
||||
<div
|
||||
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"
|
||||
>
|
||||
<span
|
||||
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
|
||||
>
|
||||
0 images
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"
|
||||
>
|
||||
<span
|
||||
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
|
||||
>
|
||||
1 PDFs
|
||||
</span>
|
||||
</div>
|
||||
<div
|
||||
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"
|
||||
>
|
||||
<span
|
||||
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
|
||||
>
|
||||
Max 10 MB each
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button
|
||||
class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeSmall MuiButton-outlinedSizeSmall MuiButton-colorPrimary css-74b9is-MuiButtonBase-root-MuiButton-root"
|
||||
tabindex="0"
|
||||
type="button"
|
||||
>
|
||||
<span
|
||||
class="MuiButton-icon MuiButton-startIcon MuiButton-iconSizeSmall css-d8i980-MuiButton-startIcon"
|
||||
>
|
||||
<svg
|
||||
aria-hidden="true"
|
||||
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1umw9bq-MuiSvgIcon-root"
|
||||
data-testid="CloudUploadOutlinedIcon"
|
||||
focusable="false"
|
||||
viewBox="0 0 24 24"
|
||||
>
|
||||
<path
|
||||
d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3M8 13h2.55v3h2.9v-3H16l-4-4z"
|
||||
/>
|
||||
</svg>
|
||||
</span>
|
||||
Upload
|
||||
</button>
|
||||
<input
|
||||
hidden=""
|
||||
multiple=""
|
||||
type="file"
|
||||
/>
|
||||
</div>
|
||||
<div
|
||||
class="MuiBox-root css-497k9w"
|
||||
>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body1 css-1g7ym63-MuiTypography-root"
|
||||
>
|
||||
Drag and drop files here
|
||||
</p>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body2 css-1moljxt-MuiTypography-root"
|
||||
>
|
||||
or use the upload button to choose documents from your device.
|
||||
</p>
|
||||
</div>
|
||||
<span
|
||||
aria-atomic="true"
|
||||
aria-live="polite"
|
||||
class="MuiBox-root css-ty8jgw"
|
||||
role="status"
|
||||
>
|
||||
Content loaded.
|
||||
</span>
|
||||
<div
|
||||
aria-label="Attachments (1)"
|
||||
class="MuiTableContainer-root css-1sde01b-MuiTableContainer-root"
|
||||
role="region"
|
||||
tabindex="0"
|
||||
>
|
||||
<table
|
||||
aria-label="Current documents"
|
||||
class="MuiTable-root css-1ii7ygr-MuiTable-root"
|
||||
>
|
||||
<thead
|
||||
class="MuiTableHead-root css-1a7iywq-MuiTableHead-root"
|
||||
>
|
||||
<tr
|
||||
class="MuiTableRow-root MuiTableRow-head css-1xtozoh-MuiTableRow-root"
|
||||
>
|
||||
<th
|
||||
class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-10umtgd-MuiTableCell-root"
|
||||
scope="col"
|
||||
>
|
||||
Name
|
||||
</th>
|
||||
<th
|
||||
class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-vgdc2f-MuiTableCell-root"
|
||||
scope="col"
|
||||
>
|
||||
Kind
|
||||
</th>
|
||||
<th
|
||||
class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-by61h7-MuiTableCell-root"
|
||||
scope="col"
|
||||
>
|
||||
Type
|
||||
</th>
|
||||
<th
|
||||
class="MuiTableCell-root MuiTableCell-head MuiTableCell-sizeSmall css-1vxk39h-MuiTableC...
|
||||
|
||||
71 | expect(await screen.findByText(current.fileName)).toBeVisible();
|
||||
72 | await act(async () => { if (outcome === 'resolve') pending.resolve({ data: [file] }); else pending.reject(new Error('obsolete refresh read')); });
|
||||
> 73 | expect(screen.getByText(current.fileName)).toBeVisible();
|
||||
| ^
|
||||
74 | expect(screen.queryByText(file.fileName)).not.toBeInTheDocument();
|
||||
75 | expect(screen.queryByText(translations.en.attachmentsLoadFailed)).not.toBeInTheDocument();
|
||||
76 | });
|
||||
|
||||
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
|
||||
at node_modules/@testing-library/dom/dist/query-helpers.js:76:38
|
||||
at node_modules/@testing-library/dom/dist/query-helpers.js:52:17
|
||||
at node_modules/@testing-library/dom/dist/query-helpers.js:95:19
|
||||
at getByText (src/attachment-action-lifetime.test.tsx:73:17)
|
||||
|
||||
● old post-delete read reject cannot replace the next application
|
||||
|
||||
expect(element).not.toBeInTheDocument()
|
||||
|
||||
expected document not to contain element, found <p class="MuiTypography-root MuiTypography-body1 css-bergga-MuiTypography-root">Could not load this application's attachments.</p> instead
|
||||
|
||||
73 | expect(screen.getByText(current.fileName)).toBeVisible();
|
||||
74 | expect(screen.queryByText(file.fileName)).not.toBeInTheDocument();
|
||||
> 75 | expect(screen.queryByText(translations.en.attachmentsLoadFailed)).not.toBeInTheDocument();
|
||||
| ^
|
||||
76 | });
|
||||
77 | test.each([
|
||||
78 | ["rename", "unmount"], ["rename", "job change"], ["rename", "session"],
|
||||
|
||||
at toBeInTheDocument (src/attachment-action-lifetime.test.tsx:75:73)
|
||||
|
||||
Test Suites: 1 failed, 1 total
|
||||
Tests: 6 failed, 18 skipped, 24 total
|
||||
Snapshots: 0 total
|
||||
Time: 4.891 s
|
||||
Ran all test suites matching src/attachment-action-lifetime.test.tsx with tests matching "old.*read".
|
||||
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\attachment-read-red.json
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user