docs(interviews): qualify follow-up error recovery
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# Recover follow-up reads and failed saves
|
||||
|
||||
17 November 2026. Source `48ecc41950344899250d446fc9262ed1db31bef3`, following `08a63c60`, branch `codex/a3-ui-10`.
|
||||
|
||||
Previously a failed initial read had no retry, and a failed Save hid the loaded fields with the user's edits. The existing interview Shell can now forward a read-only retry callback to ViewStateNotice and retain content on error when its caller explicitly opts in. Only Follow-up opts in here: initial read failure still hides editable defaults; Save failure keeps the current date/action and existing Save control available. Other Shell consumers retain their defaults. No duplicate Save/Retry action or new retry loop.
|
||||
|
||||
Four original EN/NB regressions FAILED. Final **46 cases/three complete affected suites PASSED**, zero failures/skips; prior42 overlaps46. Non-incremental TypeScript, two-file lint, source diff and AST19,343 nodes/47,489 edges passed. GET-only retry performs no PUT; explicit Save retry sends the same retained date/action to the original job endpoint, with no list reload or automatic write. Source/native gzip receipts: `evidence/followup-recovery/SOURCE_RECEIPTS.json`; original native whitespace retained.
|
||||
|
||||
API/JSDOM checks only; no browser/device or provider validation. No date/timezone, endpoint/payload, schema, model/provider or production changes. Prior Next build remains FAILED and formal A3/European/security/recovery/release acceptance stays open. Broader stale job/session and simultaneous requests remain separate. Rollback: revert this source commit; no migration. A separately reproduced child answer-save draft/language follow-up is outside this snapshot.
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"sourceCommit": "48ecc41950344899250d446fc9262ed1db31bef3",
|
||||
"sourcesLfSha256": {
|
||||
"job-tracker-ui/src/components/InterviewPrep.tsx": "2b748bd1c1752da951240e47d0158d98f2fa79d65d067e0c1e3204c9629db884",
|
||||
"job-tracker-ui/src/interview-prep.test.tsx": "b78c354de6ce41a409985c785d68ced7ada39fdcb2f4f6de7c53b3b24e6cd9e2",
|
||||
"job-tracker-ui/src/named-controls.test.tsx": "c8b519701685c434a729a50aeb5e0dfafbaf8a166fb223ab400b28554c5c445f",
|
||||
"job-tracker-ui/src/application-workflow-assist.test.tsx": "11a1d057ad2ba652da12f0c6529b8a9b7b5bdbf9cdd52799fbbbd524bc5c8e33"
|
||||
},
|
||||
"evidenceLfSha256": {
|
||||
"red.json": "6c5f594d4fbdbe17df42c282bcf8d7e90275632eab6cda9cbd31633703f14e4e",
|
||||
"red.txt": "dfb36513a7847f12097cb323fc18b06fd364fbd189f4e3be3a0a7c8fd1cac5fe",
|
||||
"green.json": "e4fb7290f4fa849854091d051a05690f59dd856655530cc41a79c6f16b15a93c",
|
||||
"green.txt": "536767952474b4ed51e219b58e6e4705c156feb2a19432eba07f5d5f65b813e9",
|
||||
"typecheck.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"lint.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"graph.txt": "73b9b648654633ccfda453c4d5af418de0ed189f6f4e2004e3877513cd756548"
|
||||
},
|
||||
"nativeReceipts": [
|
||||
{
|
||||
"path": "red.json",
|
||||
"gzipPath": "red.json.gz",
|
||||
"rawSha256": "6c5f594d4fbdbe17df42c282bcf8d7e90275632eab6cda9cbd31633703f14e4e",
|
||||
"gzipSha256": "1e76fdf8fe5d921575e3ee049865e000c6b417d1231e259a885d5712258d337f"
|
||||
},
|
||||
{
|
||||
"path": "red.txt",
|
||||
"gzipPath": "red.txt.gz",
|
||||
"rawSha256": "e5a488779ad63fda6201dec541024e8daf54f3b28fee39fd9519748c4c8d3241",
|
||||
"gzipSha256": "fdf544fdc4298aa09ff42a5e2ad3e88dc867741d7a11e749810ef20697154cb3"
|
||||
},
|
||||
{
|
||||
"path": "green.json",
|
||||
"gzipPath": "green.json.gz",
|
||||
"rawSha256": "e4fb7290f4fa849854091d051a05690f59dd856655530cc41a79c6f16b15a93c",
|
||||
"gzipSha256": "02f8b3c8cb010c0df1b91120c954369a295095b70486b276e46ed35f336b5fcc"
|
||||
},
|
||||
{
|
||||
"path": "green.txt",
|
||||
"gzipPath": "green.txt.gz",
|
||||
"rawSha256": "847c43537c17d738dfc897d5dd47eac14df8fb54f550134a44b465c88a746807",
|
||||
"gzipSha256": "bbe01727609086490930862a246e4dc72017730c03ab8cb3297f92d34aa0c710"
|
||||
},
|
||||
{
|
||||
"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": "36f3f0f0c65cdf37d348264fbab8acf73eb7f8d7b4a5852b209995fd4674df0a",
|
||||
"gzipSha256": "c3bc3b89bbbe6330b4f07eff1290f672807b8d17a7bd1ffc6be4a3d352e28b95"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
Re-extracting code files in . (no LLM needed)...
|
||||
[graphify watch] 824 file(s) not classified (no supported extension or shebang), skipped: .dockerignore, .env.example, .git, .gitattributes, .gitignore, 1440-en-dark-converted.gz (+818 more)
|
||||
AST cache: 2665/3118 files served from cache (85%); 453 to extract
|
||||
AST extraction: 100/453 uncached files (22%) [16 workers]
|
||||
AST extraction: 200/453 uncached files (44%) [16 workers]
|
||||
AST extraction: 300/453 uncached files (66%) [16 workers]
|
||||
AST extraction: 400/453 uncached files (88%) [16 workers]
|
||||
AST extraction: 453/453 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: 145 code file(s) yielded no symbols (0.15 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 (+140 more)
|
||||
[graphify watch] community set changed since labeling (0 saved labels, 1187 communities now; renamed 98 community(ies) by their hub). Run `graphify label` to refresh names with the LLM.
|
||||
Graph has 19343 nodes (above 5000 limit). Building aggregated community view...
|
||||
graph.html written (aggregated: 1187 community nodes, 3081 cross-community edges)
|
||||
Tip: run with --obsidian for full node-level detail.
|
||||
[graphify watch] Rebuilt: 19343 nodes, 47489 edges, 1187 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: 3 passed, 3 total
|
||||
Tests: 46 passed, 46 total
|
||||
Snapshots: 0 total
|
||||
Time: 11.669 s
|
||||
Ran all test suites matching src/interview-prep.test.tsx|src/named-controls.test.tsx|src/application-workflow-assist.test.tsx.
|
||||
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\followup-recovery-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,515 @@
|
||||
FAIL src/interview-prep.test.tsx
|
||||
● failed follow-up save retains editable en drafts and retries only the explicit write
|
||||
|
||||
TestingLibraryElementError: Unable to find a label with the text of: Follow up on
|
||||
|
||||
Ignored nodes: comments, script, style
|
||||
<body>
|
||||
<div>
|
||||
<section
|
||||
aria-labelledby="_r_2_"
|
||||
class="MuiBox-root css-rw0fp9"
|
||||
>
|
||||
<header
|
||||
class="MuiBox-root css-163u82n"
|
||||
>
|
||||
<div
|
||||
class="MuiBox-root css-14m33b5"
|
||||
>
|
||||
<h3
|
||||
class="MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"
|
||||
id="_r_2_"
|
||||
>
|
||||
Follow-up
|
||||
</h3>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-pageDescription css-1sqgc3a-MuiTypography-root"
|
||||
>
|
||||
Uses the same date as reminders. Follow-up tasks remain in the application checklist.
|
||||
</p>
|
||||
</div>
|
||||
</header>
|
||||
<div
|
||||
class="MuiBox-root css-31l7gp"
|
||||
>
|
||||
<span
|
||||
aria-atomic="true"
|
||||
aria-live="polite"
|
||||
class="MuiBox-root css-ty8jgw"
|
||||
role="status"
|
||||
/>
|
||||
<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"
|
||||
>
|
||||
Follow-up
|
||||
</p>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body2 css-ns55e-MuiTypography-root"
|
||||
>
|
||||
Could not save the follow-up.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
308 | fireEvent.click(screen.getByRole('button', { name: copy.save }));
|
||||
309 | expect(await screen.findByText(copy.interviewFollowUpSaveFailed)).toBeVisible();
|
||||
> 310 | expect(screen.getByLabelText(copy.interviewFollowUpDate)).toHaveValue('2026-12-01');
|
||||
| ^
|
||||
311 | expect(screen.getByLabelText(copy.workspaceNextAction)).toHaveValue('Discuss offer Øresund');
|
||||
312 | const save = screen.getByRole('button', { name: copy.save });
|
||||
313 | expect(save).toBeEnabled(); expect(mockedApi.put).toHaveBeenCalledTimes(1); expect(mockedApi.get).toHaveBeenCalledTimes(1);
|
||||
|
||||
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
|
||||
at getAllByLabelText (node_modules/@testing-library/dom/dist/queries/label-text.js:111: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 getByLabelText (src/interview-prep.test.tsx:310:17)
|
||||
|
||||
● failed follow-up save retains editable nb drafts and retries only the explicit write
|
||||
|
||||
TestingLibraryElementError: Unable to find a label with the text of: Følg opp den
|
||||
|
||||
Ignored nodes: comments, script, style
|
||||
<body>
|
||||
<div>
|
||||
<section
|
||||
aria-labelledby="_r_9_"
|
||||
class="MuiBox-root css-rw0fp9"
|
||||
>
|
||||
<header
|
||||
class="MuiBox-root css-163u82n"
|
||||
>
|
||||
<div
|
||||
class="MuiBox-root css-14m33b5"
|
||||
>
|
||||
<h3
|
||||
class="MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"
|
||||
id="_r_9_"
|
||||
>
|
||||
Oppfølging
|
||||
</h3>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-pageDescription css-1sqgc3a-MuiTypography-root"
|
||||
>
|
||||
Bruker samme dato som påminnelser. Oppfølgingsoppgaver forblir i søknadssjekklisten.
|
||||
</p>
|
||||
</div>
|
||||
</header>
|
||||
<div
|
||||
class="MuiBox-root css-31l7gp"
|
||||
>
|
||||
<span
|
||||
aria-atomic="true"
|
||||
aria-live="polite"
|
||||
class="MuiBox-root css-ty8jgw"
|
||||
role="status"
|
||||
/>
|
||||
<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"
|
||||
>
|
||||
Oppfølging
|
||||
</p>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body2 css-ns55e-MuiTypography-root"
|
||||
>
|
||||
Kunne ikke lagre oppfølgingen.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
308 | fireEvent.click(screen.getByRole('button', { name: copy.save }));
|
||||
309 | expect(await screen.findByText(copy.interviewFollowUpSaveFailed)).toBeVisible();
|
||||
> 310 | expect(screen.getByLabelText(copy.interviewFollowUpDate)).toHaveValue('2026-12-01');
|
||||
| ^
|
||||
311 | expect(screen.getByLabelText(copy.workspaceNextAction)).toHaveValue('Discuss offer Øresund');
|
||||
312 | const save = screen.getByRole('button', { name: copy.save });
|
||||
313 | expect(save).toBeEnabled(); expect(mockedApi.put).toHaveBeenCalledTimes(1); expect(mockedApi.get).toHaveBeenCalledTimes(1);
|
||||
|
||||
at Object.getElementError (node_modules/@testing-library/dom/dist/config.js:37:19)
|
||||
at getAllByLabelText (node_modules/@testing-library/dom/dist/queries/label-text.js:111: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 getByLabelText (src/interview-prep.test.tsx:310:17)
|
||||
|
||||
● failed initial follow-up read offers en GET-only retry without editable defaults
|
||||
|
||||
TestingLibraryElementError: Unable to find an accessible element with the role "button" and name "Retry"
|
||||
|
||||
Here are the accessible roles:
|
||||
|
||||
region:
|
||||
|
||||
Name "Follow-up":
|
||||
<section
|
||||
aria-labelledby="_r_g_"
|
||||
class="MuiBox-root css-rw0fp9"
|
||||
/>
|
||||
|
||||
--------------------------------------------------
|
||||
banner:
|
||||
|
||||
Name "":
|
||||
<header
|
||||
class="MuiBox-root css-163u82n"
|
||||
/>
|
||||
|
||||
--------------------------------------------------
|
||||
heading:
|
||||
|
||||
Name "Follow-up":
|
||||
<h3
|
||||
class="MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"
|
||||
id="_r_g_"
|
||||
/>
|
||||
|
||||
--------------------------------------------------
|
||||
paragraph:
|
||||
|
||||
Name "":
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-pageDescription css-1sqgc3a-MuiTypography-root"
|
||||
/>
|
||||
|
||||
Name "":
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body1 css-bergga-MuiTypography-root"
|
||||
/>
|
||||
|
||||
Name "":
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body2 css-ns55e-MuiTypography-root"
|
||||
/>
|
||||
|
||||
--------------------------------------------------
|
||||
status:
|
||||
|
||||
Name "":
|
||||
<span
|
||||
aria-atomic="true"
|
||||
aria-live="polite"
|
||||
class="MuiBox-root css-ty8jgw"
|
||||
role="status"
|
||||
/>
|
||||
|
||||
--------------------------------------------------
|
||||
alert:
|
||||
|
||||
Name "":
|
||||
<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;"
|
||||
/>
|
||||
|
||||
--------------------------------------------------
|
||||
|
||||
Ignored nodes: comments, script, style
|
||||
<body>
|
||||
<div>
|
||||
<section
|
||||
aria-labelledby="_r_g_"
|
||||
class="MuiBox-root css-rw0fp9"
|
||||
>
|
||||
<header
|
||||
class="MuiBox-root css-163u82n"
|
||||
>
|
||||
<div
|
||||
class="MuiBox-root css-14m33b5"
|
||||
>
|
||||
<h3
|
||||
class="MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"
|
||||
id="_r_g_"
|
||||
>
|
||||
Follow-up
|
||||
</h3>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-pageDescription css-1sqgc3a-MuiTypography-root"
|
||||
>
|
||||
Uses the same date as reminders. Follow-up tasks remain in the application checklist.
|
||||
</p>
|
||||
</div>
|
||||
</header>
|
||||
<div
|
||||
class="MuiBox-root css-31l7gp"
|
||||
>
|
||||
<span
|
||||
aria-atomic="true"
|
||||
aria-live="polite"
|
||||
class="MuiBox-root css-ty8jgw"
|
||||
role="status"
|
||||
/>
|
||||
<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"
|
||||
>
|
||||
Follow-up
|
||||
</p>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body2 css-ns55e-MuiTypography-root"
|
||||
>
|
||||
Could not load follow-up.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
329 | expect(screen.queryByLabelText(copy.interviewFollowUpDate)).not.toBeInTheDocument();
|
||||
330 | expect(screen.queryByRole('button', { name: copy.save })).not.toBeInTheDocument();
|
||||
> 331 | fireEvent.click(screen.getByRole('button', { name: copy.retry }));
|
||||
| ^
|
||||
332 | expect(await screen.findByLabelText(copy.interviewFollowUpDate)).toHaveValue('2026-07-26');
|
||||
333 | expect(screen.getByLabelText(copy.workspaceNextAction)).toHaveValue(followUp.nextAction);
|
||||
334 | expect(mockedApi.get.mock.calls).toEqual(Array(2).fill(['/jobapplications/7/follow-up']));
|
||||
|
||||
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 getByRole (src/interview-prep.test.tsx:331:26)
|
||||
|
||||
● failed initial follow-up read offers nb GET-only retry without editable defaults
|
||||
|
||||
TestingLibraryElementError: Unable to find an accessible element with the role "button" and name "Prøv igjen"
|
||||
|
||||
Here are the accessible roles:
|
||||
|
||||
region:
|
||||
|
||||
Name "Oppfølging":
|
||||
<section
|
||||
aria-labelledby="_r_k_"
|
||||
class="MuiBox-root css-rw0fp9"
|
||||
/>
|
||||
|
||||
--------------------------------------------------
|
||||
banner:
|
||||
|
||||
Name "":
|
||||
<header
|
||||
class="MuiBox-root css-163u82n"
|
||||
/>
|
||||
|
||||
--------------------------------------------------
|
||||
heading:
|
||||
|
||||
Name "Oppfølging":
|
||||
<h3
|
||||
class="MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"
|
||||
id="_r_k_"
|
||||
/>
|
||||
|
||||
--------------------------------------------------
|
||||
paragraph:
|
||||
|
||||
Name "":
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-pageDescription css-1sqgc3a-MuiTypography-root"
|
||||
/>
|
||||
|
||||
Name "":
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body1 css-bergga-MuiTypography-root"
|
||||
/>
|
||||
|
||||
Name "":
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body2 css-ns55e-MuiTypography-root"
|
||||
/>
|
||||
|
||||
--------------------------------------------------
|
||||
status:
|
||||
|
||||
Name "":
|
||||
<span
|
||||
aria-atomic="true"
|
||||
aria-live="polite"
|
||||
class="MuiBox-root css-ty8jgw"
|
||||
role="status"
|
||||
/>
|
||||
|
||||
--------------------------------------------------
|
||||
alert:
|
||||
|
||||
Name "":
|
||||
<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;"
|
||||
/>
|
||||
|
||||
--------------------------------------------------
|
||||
|
||||
Ignored nodes: comments, script, style
|
||||
<body>
|
||||
<div>
|
||||
<section
|
||||
aria-labelledby="_r_k_"
|
||||
class="MuiBox-root css-rw0fp9"
|
||||
>
|
||||
<header
|
||||
class="MuiBox-root css-163u82n"
|
||||
>
|
||||
<div
|
||||
class="MuiBox-root css-14m33b5"
|
||||
>
|
||||
<h3
|
||||
class="MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"
|
||||
id="_r_k_"
|
||||
>
|
||||
Oppfølging
|
||||
</h3>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-pageDescription css-1sqgc3a-MuiTypography-root"
|
||||
>
|
||||
Bruker samme dato som påminnelser. Oppfølgingsoppgaver forblir i søknadssjekklisten.
|
||||
</p>
|
||||
</div>
|
||||
</header>
|
||||
<div
|
||||
class="MuiBox-root css-31l7gp"
|
||||
>
|
||||
<span
|
||||
aria-atomic="true"
|
||||
aria-live="polite"
|
||||
class="MuiBox-root css-ty8jgw"
|
||||
role="status"
|
||||
/>
|
||||
<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"
|
||||
>
|
||||
Oppfølging
|
||||
</p>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-body2 css-ns55e-MuiTypography-root"
|
||||
>
|
||||
Kunne ikke laste oppfølgingen.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
329 | expect(screen.queryByLabelText(copy.interviewFollowUpDate)).not.toBeInTheDocument();
|
||||
330 | expect(screen.queryByRole('button', { name: copy.save })).not.toBeInTheDocument();
|
||||
> 331 | fireEvent.click(screen.getByRole('button', { name: copy.retry }));
|
||||
| ^
|
||||
332 | expect(await screen.findByLabelText(copy.interviewFollowUpDate)).toHaveValue('2026-07-26');
|
||||
333 | expect(screen.getByLabelText(copy.workspaceNextAction)).toHaveValue(followUp.nextAction);
|
||||
334 | expect(mockedApi.get.mock.calls).toEqual(Array(2).fill(['/jobapplications/7/follow-up']));
|
||||
|
||||
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 getByRole (src/interview-prep.test.tsx:331:26)
|
||||
|
||||
Test Suites: 1 failed, 1 total
|
||||
Tests: 4 failed, 32 skipped, 36 total
|
||||
Snapshots: 0 total
|
||||
Time: 3.767 s
|
||||
Ran all test suites matching src/interview-prep.test.tsx with tests matching "failed follow-up save retains editable|failed initial follow-up read offers".
|
||||
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\followup-recovery-red.json
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user