docs(i18n): qualify career evidence and template decisions

This commit is contained in:
cesnimda
2026-11-17 15:42:11 +01:00
parent d083ecee35
commit 2531bbb431
24 changed files with 3139 additions and 0 deletions
@@ -0,0 +1,11 @@
# Career evidence and CV template confirmation language
17 November 2026. Source `d083ecee`, baseline `85452dbe`, branch `codex/a3-ui-10`.
Career evidence deletion and CV template reset confirmations use the existing explicit translation descriptors. Evidence titles remain literal escaped parameters. No API, catalogue, template selection/reset, null-as-inherit, content override, document-language or revision behavior change.
Four corrected final regressions FAILED on the original source, and both fixed sources were restored byte-for-byte afterward. Initial red had three stale-copy failures and a test asking for English Code in Norwegian; intermediate25 pass/two failure run also hit that test setup on reopening. Corrected the test to use the real localised template name, without changing application behavior to satisfy it. All receipts retained. Final **27 cases/four complete affected suites PASSED**, zero failures/skips; non-incremental TypeScript, four-file lint, source diff check and AST19,331 nodes/47,481 edges passed. Native red logs retain their original whitespace.
Tests preserve the pending dialog, cancellation/focus, factual add draft, literal title, no additional evidence GET, one confirmed original-target DELETE, no template changes before approval, and exact approved reset patch with overrides/document language retained. Source/native gzip bindings: `evidence/career-template-dialog/SOURCE_RECEIPTS.json`.
API and template preview use synthetic mocks/JSDOM. No real deletion, browser/device, CV/PDF renderer or final A3/European-locale/security/release qualification. Prior Next build remains FAILED. Rollback: revert this source commit; no migration. Interview preparation pending-copy/read/draft behavior is a separate reproduced follow-up, not included in this snapshot.
@@ -0,0 +1,92 @@
{
"sourceCommit": "d083ecee353536901f6cb7c9f30c77ec1f76d082",
"sourcesLfSha256": {
"job-tracker-ui/src/views/career/CareerEvidenceBank.tsx": "4281bb506ffbf5f9bf0bfdbfa0c705162ec5067ec4b4e0bd9760f84b4b441b70",
"job-tracker-ui/src/components/cv/CvCustomizeTab.tsx": "0b6869d343d540fae50342f2b2660a2aa7cb32c9f5faaad8b057619fcb1837f7",
"job-tracker-ui/src/career-evidence.test.tsx": "13ccb88e344cad0f912562820cfeee5908fcea3a7b77c93bb79e7f9c4d1f040b",
"job-tracker-ui/src/cv-document-controls.test.tsx": "2e1c3d6724dd713504f486326dfc25a2a71aadefeb6c1ea83176e70bd055887f",
"job-tracker-ui/src/cv-photo-controls.test.tsx": "f3d3a500bbc70a19d6e1e8504295ba79e01c829e06b66c81ebf5f3b1a6bb5436",
"job-tracker-ui/src/named-controls.test.tsx": "c8b519701685c434a729a50aeb5e0dfafbaf8a166fb223ab400b28554c5c445f"
},
"evidenceLfSha256": {
"red.json": "f0d7c86aa2beeec38a03ab5a7103760ce09210aab6dcded4a4ba545e2a88b0f3",
"red.txt": "38eba2426365718ac91dc60545a7870a05b2e0cd8db2ffd6d45885c1b16a5f05",
"red-final.json": "dcd2f21a8f82bb120ac4fa5bdbd90127505cdf892c86f4624c69550b2a65e204",
"red-final.txt": "edc1bcad30cd92bf476413d658decc931d7bae4c95aaa1ed851c5e9a3747f8f7",
"green.json": "a411e2284a807918bf1f056cacf8d3123b51c622ccc4d41005406d47ed97ba47",
"green.txt": "b3731b55660802abb4f0e6ee99ab67726fd94ec5bb2015a435d46b7c4928bc01",
"final.json": "51ebf06c5d3f668c0923fe0806a80927201b0e6c5c5c78c32513ef22f1021846",
"final.txt": "0de117382afc34fc6155a1279a329fb0b45de9d4eb3f3ac938f501a525a588b1",
"typecheck.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"lint.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"graph.txt": "0538c8372cdc7989df8e14e01cfe51632d257bacd6268a6cc176907b3c0d59bc"
},
"nativeReceipts": [
{
"path": "red.json",
"gzipPath": "red.json.gz",
"rawSha256": "f0d7c86aa2beeec38a03ab5a7103760ce09210aab6dcded4a4ba545e2a88b0f3",
"gzipSha256": "a43a1e246ba41f7b9a0a57f2f703edafe41670b687caf78a284a3b66fc291aaa"
},
{
"path": "red.txt",
"gzipPath": "red.txt.gz",
"rawSha256": "136d81e5f0a126fc9f52b4707e68c54087bee86c5be7f5912b1b89a655930257",
"gzipSha256": "73eec18ec5dd46b8027c78cba93a6d8abd45955d8e5adcc74c676662b91fdab0"
},
{
"path": "red-final.json",
"gzipPath": "red-final.json.gz",
"rawSha256": "dcd2f21a8f82bb120ac4fa5bdbd90127505cdf892c86f4624c69550b2a65e204",
"gzipSha256": "0b2b83d4d21736a19b40d3b4ea358b73f5d7fe947fa2aa9116ac5ec1b47dc41d"
},
{
"path": "red-final.txt",
"gzipPath": "red-final.txt.gz",
"rawSha256": "edc1bcad30cd92bf476413d658decc931d7bae4c95aaa1ed851c5e9a3747f8f7",
"gzipSha256": "c5136f31f6136eea25a39cab4af09b2d136dceb7b320286578fbd2581a660c52"
},
{
"path": "green.json",
"gzipPath": "green.json.gz",
"rawSha256": "a411e2284a807918bf1f056cacf8d3123b51c622ccc4d41005406d47ed97ba47",
"gzipSha256": "37ef791ef30f1529061afc31cbb967442327b8138391560a54ef9b885a2973a3"
},
{
"path": "green.txt",
"gzipPath": "green.txt.gz",
"rawSha256": "7b10b342337d4207c4b8ddf6f18a620c91147e5cdd71f102191c5bbc806ec8da",
"gzipSha256": "45e7b3270a82ba6cc497c1265b32b9d47e6e86fa54df88ccc6aa887b03602894"
},
{
"path": "final.json",
"gzipPath": "final.json.gz",
"rawSha256": "51ebf06c5d3f668c0923fe0806a80927201b0e6c5c5c78c32513ef22f1021846",
"gzipSha256": "ec41ff75209f6a9a923ee3e2f71fad2988be21d58b081eae29446b6d4745fedb"
},
{
"path": "final.txt",
"gzipPath": "final.txt.gz",
"rawSha256": "e7213186f1dc9526b9799d987b68db6b159e10fec802a86b049fee59000ddee4",
"gzipSha256": "67a8b0aa7c1230ff68282a3de9851e5d3f86f9a153d210954d13100ba0127811"
},
{
"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": "d3f78d65d59812b6ec0d9e5d27b27ed90bf3a98513a606336e0598f9c52732f5",
"gzipSha256": "8176e76f11c994ae2ebe01cac57a86b07ce2ac0461aa14bf73109cdb16fb9068"
}
]
}
File diff suppressed because one or more lines are too long
@@ -0,0 +1,7 @@
Test Suites: 4 passed, 4 total
Tests: 27 passed, 27 total
Snapshots: 0 total
Time: 18.855 s
Ran all test suites matching src/career-evidence.test.tsx|src/cv-document-controls.test.tsx|src/cv-photo-controls.test.tsx|src/named-controls.test.tsx.
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\career-template-dialog-final.json
@@ -0,0 +1,18 @@
Re-extracting code files in . (no LLM needed)...
[graphify watch] 765 file(s) not classified (no supported extension or shebang), skipped: .dockerignore, .env.example, .git, .gitattributes, .gitignore, 1440-en-dark-converted.gz (+759 more)
AST cache: 2636/3085 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: 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, 1177 communities now; renamed 156 community(ies) by their hub). Run `graphify label` to refresh names with the LLM.
Graph has 19331 nodes (above 5000 limit). Building aggregated community view...
graph.html written (aggregated: 1177 community nodes, 3246 cross-community edges)
Tip: run with --obsidian for full node-level detail.
[graphify watch] Rebuilt: 19331 nodes, 47481 edges, 1177 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.
File diff suppressed because one or more lines are too long
@@ -0,0 +1,894 @@
FAIL src/cv-document-controls.test.tsx (6.279 s)
● Console
console.error
An update to CvTemplateThumbnail inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
49 | let alive = true;
50 | setFailed(false);
> 51 | sample(theme.id).then(value => { if (alive) setHtml({ id: theme.id, value }); })
| ^
52 | .catch(() => { if (alive) setFailed(true); });
53 | return () => { alive = false; };
54 | }, [theme?.id, visible]);
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setHtml (src/components/CvTemplateThumbnail.tsx:51:49)
console.error
An update to CvTemplateThumbnail inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
49 | let alive = true;
50 | setFailed(false);
> 51 | sample(theme.id).then(value => { if (alive) setHtml({ id: theme.id, value }); })
| ^
52 | .catch(() => { if (alive) setFailed(true); });
53 | return () => { alive = false; };
54 | }, [theme?.id, visible]);
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setHtml (src/components/CvTemplateThumbnail.tsx:51:49)
console.error
An update to CvTemplateThumbnail inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
49 | let alive = true;
50 | setFailed(false);
> 51 | sample(theme.id).then(value => { if (alive) setHtml({ id: theme.id, value }); })
| ^
52 | .catch(() => { if (alive) setFailed(true); });
53 | return () => { alive = false; };
54 | }, [theme?.id, visible]);
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at setHtml (src/components/CvTemplateThumbnail.tsx:51:49)
console.error
An update to ForwardRef(TouchRipple) inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at node_modules/@mui/material/ButtonBase/TouchRipple.js:171:5
at node_modules/@mui/material/ButtonBase/TouchRipple.js:264:7
at Object.pulsate (node_modules/@mui/material/ButtonBase/TouchRipple.js:274:5)
at node_modules/@mui/material/useLazyRipple/useLazyRipple.js:77:47
console.error
An update to ForwardRef(TouchRipple) inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at node_modules/@mui/material/ButtonBase/TouchRipple.js:171:5
at node_modules/@mui/material/ButtonBase/TouchRipple.js:264:7
at Object.pulsate (node_modules/@mui/material/ButtonBase/TouchRipple.js:274:5)
at node_modules/@mui/material/useLazyRipple/useLazyRipple.js:77:47
console.error
An update to ForwardRef(TouchRipple) inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act
at node_modules/react-dom/cjs/react-dom-client.development.js:18758:19
at runWithFiberInDEV (node_modules/react-dom/cjs/react-dom-client.development.js:874:13)
at warnIfUpdatesNotWrappedWithActDEV (node_modules/react-dom/cjs/react-dom-client.development.js:18757:9)
at scheduleUpdateOnFiber (node_modules/react-dom/cjs/react-dom-client.development.js:16409:11)
at dispatchSetStateInternal (node_modules/react-dom/cjs/react-dom-client.development.js:9170:13)
at dispatchSetState (node_modules/react-dom/cjs/react-dom-client.development.js:9127:7)
at node_modules/@mui/material/ButtonBase/TouchRipple.js:171:5
at node_modules/@mui/material/ButtonBase/TouchRipple.js:264:7
at Object.pulsate (node_modules/@mui/material/ButtonBase/TouchRipple.js:274:5)
at node_modules/@mui/material/useLazyRipple/useLazyRipple.js:77:47
● template reset confirmation follows en while preserving overrides until approval
TestingLibraryElementError: Unable to find an accessible element with the role "button" and name "Code"
Here are the accessible roles:
heading:
Name "Mal":
<h3
class="MuiTypography-root MuiTypography-subtitle2 css-1mb4twe-MuiTypography-root"
/>
--------------------------------------------------
paragraph:
Name "":
<p
class="MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
/>
--------------------------------------------------
button:
Name "ATS-maler":
<button
aria-pressed="true"
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary css-tm237w-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
/>
Name "Alle maler":
<button
aria-pressed="false"
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"
/>
Name "Moderne":
<div
aria-describedby="_r_3_-modern-category _r_3_-modern-description _r_3_-modern-features"
aria-disabled="false"
aria-label="Moderne"
aria-pressed="true"
class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-18ergct-MuiPaper-root"
role="button"
tabindex="0"
/>
Name "Kode":
<div
aria-describedby="_r_3_-code-category _r_3_-code-description _r_3_-code-features"
aria-disabled="false"
aria-label="Kode"
aria-pressed="false"
class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-j1wajq-MuiPaper-root"
role="button"
tabindex="0"
/>
Name "Teknisk":
<div
aria-describedby="_r_3_-technical-category _r_3_-technical-description _r_3_-technical-features"
aria-disabled="true"
aria-label="Teknisk"
aria-pressed="false"
class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-1agvg1f-MuiPaper-root"
role="button"
tabindex="-1"
/>
--------------------------------------------------
Ignored nodes: comments, script, style
<body
style=""
>
<div>
<div
class="MuiStack-root css-10kbc59-MuiStack-root"
>
<h3
class="MuiTypography-root MuiTypography-subtitle2 css-1mb4twe-MuiTypography-root"
>
Mal
</h3>
<p
class="MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"
>
Maler endrer bare presentasjonen. Innholdet og valgene for skjulte seksjoner beholdes.
</p>
<div
class="MuiStack-root css-14nepse-MuiStack-root"
>
<div
class="MuiStack-root css-16fzs56-MuiStack-root"
>
<button
aria-pressed="true"
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary css-tm237w-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
ATS-maler
</button>
<button
aria-pressed="false"
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"
>
Alle maler
</button>
<span
class="MuiTypography-root MuiTypography-caption css-2qd4a1-MuiTypography-root"
>
Anbefalt for pålitelig tolking og tydelig leserekkefølge.
</span>
</div>
<div
class="MuiBox-root css-1xx3gcm"
>
<div
aria-describedby="_r_3_-modern-category _r_3_-modern-description _r_3_-modern-features"
aria-disabled="false"
aria-label="Moderne"
aria-pressed="true"
class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-18ergct-MuiPaper-root"
role="button"
tabindex="0"
>
<svg
aria-hidden="true"
aria-label="Valgt mal"
class="MuiSvgIcon-root MuiSvgIcon-colorPrimary MuiSvgIcon-fontSizeMedium css-1enn2qm-MuiSvgIcon-root"
data-testid="CheckCircleIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"
/>
</svg>
<div
class="MuiBox-root css-19idom"
>
<div
aria-hidden="true"
class="MuiBox-root css-1jkon9e"
>
<div
class="MuiBox-root css-xhl4z"
>
<iframe
sandbox=""
srcdoc="<html><body>Sample</body></html>"
style="border: 0px; display: block; width: 793.7007874015749px; height: 1122.5196850393702px; transform: scale(0.2048961840628507); transform-origin: top left; pointer-events: none;"
tabindex="-1"
title="Eksempelforhåndsvisning av mal"
/>
</div>
</div>
</div>
<p
class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
>
Moderne
</p>
<span
class="MuiTypography-root MuiTypography-caption css-1030r5w-MuiTypography-root"
id="_r_3_-modern-category"
>
Moderne og profesjonell
</span>
<span
class="MuiTypography-root MuiTypography-caption css-1m07ajz-MuiTypography-root"
id="_r_3_-modern-description"
>
Ren SaaS-inspirert utforming med en tydelig topptekst i aksentfarge.
</span>
<div
class="MuiStack-root css-a7rvdw-MuiStack-root"
id="_r_3_-modern-features"
>
<div
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorSuccess MuiChip-outlinedSuccess css-1mhmhdu-MuiChip-root"
>
<span
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
>
ATS-vennlig
</span>
</div>
<div
aria-hidden="true"
class="MuiStack-root css-1vaohjx-MuiStack-root"
/>
</div>
</div>
<div
aria-describedby="_r_3_-code-category _r_3_-code-description _r_3_-code-features"
aria-disabled="false"
aria-label="Kode"
aria-pressed="false"
class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-j1wajq-MuiPaper-root"
role="button"
tabindex="0"
>
<div
class="MuiBox-root css-19idom"
>
<div
aria-hidden="true"
class="MuiBox-root css-1jkon9e"
>
<div
class="MuiBox-root css-xhl4z"
>
<iframe
sandbox=""
srcdoc="<html><body>Sample</body></html>"
style="border: 0px; display: block; width: 793.7007874015749px; height: 1122.5196850393702px; transform: scale(0.2048961840628507); transform-origin: top left; pointer-events: none;"
tabindex="-1"
title="Eksempelforhåndsvisning av mal"
/>
</div>
</div>
</div>
<p
class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
>
Kode
</p>
<span
class="MuiTypography-root MuiTypography-caption css-1030r5w-MuiTypography-root"
id="_r_3_-code-category"
>
Teknisk
</span>
<span
class="MuiTypography-root MuiTypography-caption css-1m07ajz-MuiTypography-root"
id="_r_3_-code-description"
>
Redaksjonell utforming for utviklere med nummererte seksjoner og presise detaljer i fastbreddeskrift.
</span>
<div
class="MuiStack-root css-a7rvdw-MuiStack-root"
id="_r_3_-code-features"
>
<div
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorSuccess MuiChip-outlinedSuccess css-1mhmhdu-MuiChip-root"
>
<span
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
>
ATS-vennlig
</span>
</div>
<div
aria-hidden="true"
class="MuiStack-root css-1vaohjx-MuiStack-root"
/>
</div>
</div>
<div
aria-describedby="_r_3_-technical-category _r_3_-technical-description _r_3_-technical-features"
aria-disabled="true"
aria-label="Teknisk"
aria-pressed="false"
class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-1agvg1f-MuiPaper-root"
role="button"
tabindex="-1"
>
<div
class="MuiBox-root css-19idom"
>
<div
aria-hidden="true"
class="MuiBox-root css-1jkon9e"
>
<div
class="MuiBox-root css-xhl4z"
>
<iframe
sandbox=""
srcdoc="<html><body>Sample</body></html>"
style="border: 0px; display: block; width: 793.7007874015749px; height: 1122.5196850393702px; transform: scale(0.2048961840628507); transform-origin: top left; pointer-events: none;"
tabindex="-1"
title="Eksempelforhåndsvisning av mal"
/>
</div>
</div>
</div>
<p
class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
>
Teknisk
</p>
<span
class="MuiTypography-root MuiTypography-caption css-1030r5w-MuiTypography-root"
id="_r_3_-technical-category"
>
Teknisk
</span>
<span
class="MuiTypography-root MuiTypography-caption css-1m07ajz-MuiTypography-root"
id="_r_3_-technical-description"
>
Kompakt tokolonneutforming for tekniske CV-er, med ferdigheter og prosjekter først.
</span>
<div
class="MuiStack-root css-a7rvdw-MuiStack-root"
id="_r_3_-technical-features"
>
<div
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorSuccess MuiChip-outlinedSuccess css-1mhmhdu-MuiChip-root"
>
<span
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
>
ATS-vennlig
</span>
</div>
<div
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorSecondary MuiChip-outlinedSecondary css-jjatep-MuiChip-root"
>
<span
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
>
Pro
</span>
</div>
<div
aria-hidden="true"
class="MuiStack-root css-1vaohjx-MuiStack-root"
/>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
53 | const snapshot = JSON.stringify(settings());
54 | const openReset = async (language: 'en' | 'nb') => {
> 55 | fireEvent.click(screen.getByRole('button', { name: 'Code' }));
| ^
56 | const candidate = await screen.findByRole('dialog');
57 | const apply = within(candidate).getByRole('button', { name: translations[language].cvEditorApplyTemplate });
58 | await waitFor(() => expect(apply).toBeEnabled());
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/cv-document-controls.test.tsx:55:28)
at openReset (src/cv-document-controls.test.tsx:71:32)
● template reset confirmation follows nb while preserving overrides until approval
TestingLibraryElementError: Unable to find an accessible element with the role "button" and name "Code"
Here are the accessible roles:
heading:
Name "Mal":
<h3
class="MuiTypography-root MuiTypography-subtitle2 css-1mb4twe-MuiTypography-root"
/>
--------------------------------------------------
paragraph:
Name "":
<p
class="MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
/>
Name "":
<p
class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
/>
--------------------------------------------------
button:
Name "ATS-maler":
<button
aria-pressed="true"
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary css-tm237w-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
/>
Name "Alle maler":
<button
aria-pressed="false"
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"
/>
Name "Moderne":
<div
aria-describedby="_r_g_-modern-category _r_g_-modern-description _r_g_-modern-features"
aria-disabled="false"
aria-label="Moderne"
aria-pressed="true"
class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-18ergct-MuiPaper-root"
role="button"
tabindex="0"
/>
Name "Kode":
<div
aria-describedby="_r_g_-code-category _r_g_-code-description _r_g_-code-features"
aria-disabled="false"
aria-label="Kode"
aria-pressed="false"
class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-j1wajq-MuiPaper-root"
role="button"
tabindex="0"
/>
Name "Teknisk":
<div
aria-describedby="_r_g_-technical-category _r_g_-technical-description _r_g_-technical-features"
aria-disabled="true"
aria-label="Teknisk"
aria-pressed="false"
class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-1agvg1f-MuiPaper-root"
role="button"
tabindex="-1"
/>
--------------------------------------------------
Ignored nodes: comments, script, style
<body
style=""
>
<div>
<div
class="MuiStack-root css-10kbc59-MuiStack-root"
>
<h3
class="MuiTypography-root MuiTypography-subtitle2 css-1mb4twe-MuiTypography-root"
>
Mal
</h3>
<p
class="MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"
>
Maler endrer bare presentasjonen. Innholdet og valgene for skjulte seksjoner beholdes.
</p>
<div
class="MuiStack-root css-14nepse-MuiStack-root"
>
<div
class="MuiStack-root css-16fzs56-MuiStack-root"
>
<button
aria-pressed="true"
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary css-tm237w-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
ATS-maler
</button>
<button
aria-pressed="false"
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"
>
Alle maler
</button>
<span
class="MuiTypography-root MuiTypography-caption css-2qd4a1-MuiTypography-root"
>
Anbefalt for pålitelig tolking og tydelig leserekkefølge.
</span>
</div>
<div
class="MuiBox-root css-1xx3gcm"
>
<div
aria-describedby="_r_g_-modern-category _r_g_-modern-description _r_g_-modern-features"
aria-disabled="false"
aria-label="Moderne"
aria-pressed="true"
class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-18ergct-MuiPaper-root"
role="button"
tabindex="0"
>
<svg
aria-hidden="true"
aria-label="Valgt mal"
class="MuiSvgIcon-root MuiSvgIcon-colorPrimary MuiSvgIcon-fontSizeMedium css-1enn2qm-MuiSvgIcon-root"
data-testid="CheckCircleIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"
/>
</svg>
<div
class="MuiBox-root css-19idom"
>
<div
aria-hidden="true"
class="MuiBox-root css-1jkon9e"
>
<span
class="MuiSkeleton-root MuiSkeleton-rectangular MuiSkeleton-pulse css-3sr0vz-MuiSkeleton-root"
style="width: 100%; height: 100%;"
/>
</div>
</div>
<p
class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
>
Moderne
</p>
<span
class="MuiTypography-root MuiTypography-caption css-1030r5w-MuiTypography-root"
id="_r_g_-modern-category"
>
Moderne og profesjonell
</span>
<span
class="MuiTypography-root MuiTypography-caption css-1m07ajz-MuiTypography-root"
id="_r_g_-modern-description"
>
Ren SaaS-inspirert utforming med en tydelig topptekst i aksentfarge.
</span>
<div
class="MuiStack-root css-a7rvdw-MuiStack-root"
id="_r_g_-modern-features"
>
<div
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorSuccess MuiChip-outlinedSuccess css-1mhmhdu-MuiChip-root"
>
<span
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
>
ATS-vennlig
</span>
</div>
<div
aria-hidden="true"
class="MuiStack-root css-1vaohjx-MuiStack-root"
/>
</div>
</div>
<div
aria-describedby="_r_g_-code-category _r_g_-code-description _r_g_-code-features"
aria-disabled="false"
aria-label="Kode"
aria-pressed="false"
class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-j1wajq-MuiPaper-root"
role="button"
tabindex="0"
>
<div
class="MuiBox-root css-19idom"
>
<div
aria-hidden="true"
class="MuiBox-root css-1jkon9e"
>
<span
class="MuiSkeleton-root MuiSkeleton-rectangular MuiSkeleton-pulse css-3sr0vz-MuiSkeleton-root"
style="width: 100%; height: 100%;"
/>
</div>
</div>
<p
class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
>
Kode
</p>
<span
class="MuiTypography-root MuiTypography-caption css-1030r5w-MuiTypography-root"
id="_r_g_-code-category"
>
Teknisk
</span>
<span
class="MuiTypography-root MuiTypography-caption css-1m07ajz-MuiTypography-root"
id="_r_g_-code-description"
>
Redaksjonell utforming for utviklere med nummererte seksjoner og presise detaljer i fastbreddeskrift.
</span>
<div
class="MuiStack-root css-a7rvdw-MuiStack-root"
id="_r_g_-code-features"
>
<div
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorSuccess MuiChip-outlinedSuccess css-1mhmhdu-MuiChip-root"
>
<span
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
>
ATS-vennlig
</span>
</div>
<div
aria-hidden="true"
class="MuiStack-root css-1vaohjx-MuiStack-root"
/>
</div>
</div>
<div
aria-describedby="_r_g_-technical-category _r_g_-technical-description _r_g_-technical-features"
aria-disabled="true"
aria-label="Teknisk"
aria-pressed="false"
class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-1agvg1f-MuiPaper-root"
role="button"
tabindex="-1"
>
<div
class="MuiBox-root css-19idom"
>
<div
aria-hidden="true"
class="MuiBox-root css-1jkon9e"
>
<span
class="MuiSkeleton-root MuiSkeleton-rectangular MuiSkeleton-pulse css-3sr0vz-MuiSkeleton-root"
style="width: 100%; height: 100%;"
/>
</div>
</div>
<p
class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
>
Teknisk
</p>
<span
class="MuiTypography-root MuiTypography-caption css-1030r5w-MuiTypography-root"
id="_r_g_-technical-category"
>
Teknisk
</span>
<span
class="MuiTypography-root MuiTypography-caption css-1m07ajz-MuiTypography-root"
id="_r_g_-technical-description"
>
Kompakt tokolonneutforming for tekniske CV-er, med ferdigheter og prosjekter først.
</span>
<div
class="MuiStack-root css-a7rvdw-MuiStack-root"
id="_r_g_-technical-features"
>
<div
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorSuccess MuiChip-outlinedSuccess css-1mhmhdu-MuiChip-root"
>
<span
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
>
ATS-vennlig
</span>
</div>
<div
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorSecondary MuiChip-outlinedSecondary css-jjatep-MuiChip-root"
>
<span
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
>
Pro
</span>
</div>
<div
aria-hidden="true"
class="MuiStack-root css-1vaohjx-MuiStack-root"
/>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
53 | const snapshot = JSON.stringify(settings());
54 | const openReset = async (language: 'en' | 'nb') => {
> 55 | fireEvent.click(screen.getByRole('button', { name: 'Code' }));
| ^
56 | const candidate = await screen.findByRole('dialog');
57 | const apply = within(candidate).getByRole('button', { name: translations[language].cvEditorApplyTemplate });
58 | await waitFor(() => expect(apply).toBeEnabled());
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/cv-document-controls.test.tsx:55:28)
at openReset (src/cv-document-controls.test.tsx:62:24)
Test Suites: 1 failed, 3 passed, 4 total
Tests: 2 failed, 25 passed, 27 total
Snapshots: 0 total
Time: 14.599 s
Ran all test suites matching src/career-evidence.test.tsx|src/cv-document-controls.test.tsx|src/cv-photo-controls.test.tsx|src/named-controls.test.tsx.
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\career-template-dialog-green.json
File diff suppressed because one or more lines are too long
@@ -0,0 +1,957 @@
FAIL src/cv-document-controls.test.tsx
● template reset confirmation follows en while preserving overrides until approval
TestingLibraryElementError: Unable to find an accessible element with the role "dialog" and name "Bruke malens standarder?"
Here are the accessible roles:
presentation:
Name "":
<div
class="MuiDialog-root MuiModal-root css-1oaxuzu-MuiModal-root-MuiDialog-root"
role="presentation"
/>
Name "":
<div
class="MuiDialog-container MuiDialog-scrollPaper css-19do60a-MuiDialog-container"
role="presentation"
style="opacity: 1; transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"
tabindex="-1"
/>
--------------------------------------------------
dialog:
Name "Apply template defaults?":
<div
aria-describedby="_r_0_"
aria-labelledby="_r_1_"
aria-modal="true"
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation24 MuiDialog-paper MuiDialog-paperScrollPaper MuiDialog-paperWidthXs MuiDialog-paperFullWidth css-n24a7g-MuiPaper-root-MuiDialog-paper"
role="dialog"
style="--Paper-shadow: 0px 11px 15px -7px rgba(0,0,0,0.2),0px 24px 38px 3px rgba(0,0,0,0.14),0px 9px 46px 8px rgba(0,0,0,0.12);"
/>
--------------------------------------------------
heading:
Name "Apply template defaults?":
<h2
class="MuiTypography-root MuiTypography-h6 MuiDialogTitle-root css-rcehg8-MuiTypography-root-MuiDialogTitle-root"
id="_r_1_"
/>
--------------------------------------------------
region:
Name "Apply template defaults?":
<div
aria-labelledby="_r_1_"
class="MuiDialogContent-root css-kw13he-MuiDialogContent-root"
role="region"
tabindex="0"
/>
--------------------------------------------------
alert:
Name "":
<div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorInfo MuiAlert-outlinedInfo MuiAlert-outlined css-r9gdcg-MuiPaper-root-MuiAlert-root"
role="alert"
style="--Paper-shadow: none;"
/>
--------------------------------------------------
paragraph:
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-3yi46c-MuiTypography-root"
id="_r_0_"
/>
--------------------------------------------------
button:
Name "Avbryt":
<button
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary Mui-focusVisible MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1dn15bh-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
/>
Name "Apply template":
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary css-83fk99-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
/>
--------------------------------------------------
Ignored nodes: comments, script, style
<body
style="padding-right: 1024px; overflow: hidden;"
>
<div
aria-hidden="true"
>
<div
class="MuiStack-root css-10kbc59-MuiStack-root"
>
<h3
class="MuiTypography-root MuiTypography-subtitle2 css-1mb4twe-MuiTypography-root"
>
Mal
</h3>
<p
class="MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"
>
Maler endrer bare presentasjonen. Innholdet og valgene for skjulte seksjoner beholdes.
</p>
<div
class="MuiStack-root css-14nepse-MuiStack-root"
>
<div
class="MuiStack-root css-16fzs56-MuiStack-root"
>
<button
aria-pressed="true"
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary css-tm237w-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
ATS-maler
</button>
<button
aria-pressed="false"
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"
>
Alle maler
</button>
<span
class="MuiTypography-root MuiTypography-caption css-2qd4a1-MuiTypography-root"
>
Anbefalt for pålitelig tolking og tydelig leserekkefølge.
</span>
</div>
<div
class="MuiBox-root css-1xx3gcm"
>
<div
aria-describedby="_r_3_-modern-category _r_3_-modern-description _r_3_-modern-features"
aria-disabled="false"
aria-label="Moderne"
aria-pressed="true"
class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-18ergct-MuiPaper-root"
role="button"
tabindex="0"
>
<svg
aria-hidden="true"
aria-label="Valgt mal"
class="MuiSvgIcon-root MuiSvgIcon-colorPrimary MuiSvgIcon-fontSizeMedium css-1enn2qm-MuiSvgIcon-root"
data-testid="CheckCircleIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"
/>
</svg>
<div
class="MuiBox-root css-19idom"
>
<div
aria-hidden="true"
class="MuiBox-root css-1jkon9e"
>
<div
class="MuiBox-root css-xhl4z"
>
<iframe
sandbox=""
srcdoc="<html><body>Sample</body></html>"
style="border: 0px; display: block; width: 793.7007874015749px; height: 1122.5196850393702px; transform: scale(0.2048961840628507); transform-origin: top left; pointer-events: none;"
tabindex="-1"
title="Eksempelforhåndsvisning av mal"
/>
</div>
</div>
</div>
<p
class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
>
Moderne
</p>
<span
class="MuiTypography-root MuiTypography-caption css-1030r5w-MuiTypography-root"
id="_r_3_-modern-category"
>
Moderne og profesjonell
</span>
<span
class="MuiTypography-root MuiTypography-caption css-1m07ajz-MuiTypography-root"
id="_r_3_-modern-description"
>
Ren SaaS-inspirert utforming med en tydelig topptekst i aksentfarge.
</span>
<div
class="MuiStack-root css-a7rvdw-MuiStack-root"
id="_r_3_-modern-features"
>
<div
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorSuccess MuiChip-outlinedSuccess css-1mhmhdu-MuiChip-root"
>
<span
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
>
ATS-vennlig
</span>
</div>
<div
aria-hidden="true"
class="MuiStack-root css-1vaohjx-MuiStack-root"
/>
</div>
</div>
<div
aria-describedby="_r_3_-code-category _r_3_-code-description _r_3_-code-features"
aria-disabled="false"
aria-label="Kode"
aria-pressed=...
62 | const dialog = await openReset(from);
63 | await act(async () => window.dispatchEvent(new StorageEvent('storage', { key: 'uiLanguage', newValue: to })));
> 64 | expect(screen.getByRole('dialog', { name: translations[to].cvEditorChangeTemplateTitle })).toBe(dialog);
| ^
65 | expect(dialog).toHaveAccessibleDescription(translations[to].cvEditorChangeTemplateMessage);
66 | expect(within(dialog).getByRole('button', { name: translations[to].cvEditorApplyTemplate })).toBeEnabled();
67 | expect(update).not.toHaveBeenCalled(); expect(JSON.stringify(settings())).toBe(snapshot);
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/cv-document-controls.test.tsx:64:17)
● template reset confirmation follows nb while preserving overrides until approval
TestingLibraryElementError: Unable to find an accessible element with the role "dialog" and name "Apply template defaults?"
Here are the accessible roles:
presentation:
Name "":
<div
class="MuiDialog-root MuiModal-root css-1oaxuzu-MuiModal-root-MuiDialog-root"
role="presentation"
/>
Name "":
<div
class="MuiDialog-container MuiDialog-scrollPaper css-19do60a-MuiDialog-container"
role="presentation"
style="opacity: 1; transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"
tabindex="-1"
/>
--------------------------------------------------
dialog:
Name "Bruke malens standarder?":
<div
aria-describedby="_r_d_"
aria-labelledby="_r_e_"
aria-modal="true"
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation24 MuiDialog-paper MuiDialog-paperScrollPaper MuiDialog-paperWidthXs MuiDialog-paperFullWidth css-n24a7g-MuiPaper-root-MuiDialog-paper"
role="dialog"
style="--Paper-shadow: 0px 11px 15px -7px rgba(0,0,0,0.2),0px 24px 38px 3px rgba(0,0,0,0.14),0px 9px 46px 8px rgba(0,0,0,0.12);"
/>
--------------------------------------------------
heading:
Name "Bruke malens standarder?":
<h2
class="MuiTypography-root MuiTypography-h6 MuiDialogTitle-root css-rcehg8-MuiTypography-root-MuiDialogTitle-root"
id="_r_e_"
/>
--------------------------------------------------
region:
Name "Bruke malens standarder?":
<div
aria-labelledby="_r_e_"
class="MuiDialogContent-root css-kw13he-MuiDialogContent-root"
role="region"
tabindex="0"
/>
--------------------------------------------------
alert:
Name "":
<div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorInfo MuiAlert-outlinedInfo MuiAlert-outlined css-r9gdcg-MuiPaper-root-MuiAlert-root"
role="alert"
style="--Paper-shadow: none;"
/>
--------------------------------------------------
paragraph:
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-3yi46c-MuiTypography-root"
id="_r_d_"
/>
--------------------------------------------------
button:
Name "Cancel":
<button
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary Mui-focusVisible MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1dn15bh-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
/>
Name "Bruk mal":
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary css-83fk99-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
/>
--------------------------------------------------
Ignored nodes: comments, script, style
<body
style="padding-right: 1024px; overflow: hidden;"
>
<div
aria-hidden="true"
>
<div
class="MuiStack-root css-10kbc59-MuiStack-root"
>
<h3
class="MuiTypography-root MuiTypography-subtitle2 css-1mb4twe-MuiTypography-root"
>
Template
</h3>
<p
class="MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"
>
Templates change presentation only. Your content and hidden-section choices stay intact.
</p>
<div
class="MuiStack-root css-14nepse-MuiStack-root"
>
<div
class="MuiStack-root css-16fzs56-MuiStack-root"
>
<button
aria-pressed="true"
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeSmall MuiButton-containedSizeSmall MuiButton-colorPrimary css-tm237w-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
ATS templates
</button>
<button
aria-pressed="false"
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"
>
All templates
</button>
<span
class="MuiTypography-root MuiTypography-caption css-2qd4a1-MuiTypography-root"
>
Recommended for reliable parsing and a clear reading order.
</span>
</div>
<div
class="MuiBox-root css-1xx3gcm"
>
<div
aria-describedby="_r_g_-modern-category _r_g_-modern-description _r_g_-modern-features"
aria-disabled="false"
aria-label="Modern"
aria-pressed="true"
class="MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-18ergct-MuiPaper-root"
role="button"
tabindex="0"
>
<svg
aria-hidden="true"
aria-label="Selected template"
class="MuiSvgIcon-root MuiSvgIcon-colorPrimary MuiSvgIcon-fontSizeMedium css-1enn2qm-MuiSvgIcon-root"
data-testid="CheckCircleIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"
/>
</svg>
<div
class="MuiBox-root css-19idom"
>
<div
aria-hidden="true"
class="MuiBox-root css-1jkon9e"
>
<div
class="MuiBox-root css-xhl4z"
>
<iframe
sandbox=""
srcdoc="<html><body>Sample</body></html>"
style="border: 0px; display: block; width: 793.7007874015749px; height: 1122.5196850393702px; transform: scale(0.2048961840628507); transform-origin: top left; pointer-events: none;"
tabindex="-1"
title="Template sample preview"
/>
</div>
</div>
</div>
<p
class="MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"
>
Modern
</p>
<span
class="MuiTypography-root MuiTypography-caption css-1030r5w-MuiTypography-root"
id="_r_g_-modern-category"
>
Professional
</span>
<span
class="MuiTypography-root MuiTypography-caption css-1m07ajz-MuiTypography-root"
id="_r_g_-modern-description"
>
Default
</span>
<div
class="MuiStack-root css-a7rvdw-MuiStack-root"
id="_r_g_-modern-features"
>
<div
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorSuccess MuiChip-outlinedSuccess css-1mhmhdu-MuiChip-root"
>
<span
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
>
ATS-friendly
</span>
</div>
<div
aria-hidden="true"
class="MuiStack-root css-1vaohjx-MuiStack-root"
/>
</div>
</div>
<div
aria-describedby="_r_g_-code-category _r_g_-code-description _r_g_-code-features"
aria-disabled="false"
aria-label="Code"
aria-pressed="false"
class="MuiP...
62 | const dialog = await openReset(from);
63 | await act(async () => window.dispatchEvent(new StorageEvent('storage', { key: 'uiLanguage', newValue: to })));
> 64 | expect(screen.getByRole('dialog', { name: translations[to].cvEditorChangeTemplateTitle })).toBe(dialog);
| ^
65 | expect(dialog).toHaveAccessibleDescription(translations[to].cvEditorChangeTemplateMessage);
66 | expect(within(dialog).getByRole('button', { name: translations[to].cvEditorApplyTemplate })).toBeEnabled();
67 | expect(update).not.toHaveBeenCalled(); expect(JSON.stringify(settings())).toBe(snapshot);
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/cv-document-controls.test.tsx:64:17)
FAIL src/career-evidence.test.tsx
● pending evidence deletion follows en without changing the item or add draft
TestingLibraryElementError: Unable to find an accessible element with the role "dialog" and name "Slette dokumentasjon?"
Here are the accessible roles:
presentation:
Name "":
<div
class="MuiDialog-root MuiModal-root css-1oaxuzu-MuiModal-root-MuiDialog-root"
role="presentation"
/>
Name "":
<div
class="MuiDialog-container MuiDialog-scrollPaper css-19do60a-MuiDialog-container"
role="presentation"
style="opacity: 1; transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"
tabindex="-1"
/>
--------------------------------------------------
dialog:
Name "Delete evidence?":
<div
aria-describedby="_r_0_"
aria-labelledby="_r_1_"
aria-modal="true"
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation24 MuiDialog-paper MuiDialog-paperScrollPaper MuiDialog-paperWidthXs MuiDialog-paperFullWidth css-n24a7g-MuiPaper-root-MuiDialog-paper"
role="dialog"
style="--Paper-shadow: 0px 11px 15px -7px rgba(0,0,0,0.2),0px 24px 38px 3px rgba(0,0,0,0.14),0px 9px 46px 8px rgba(0,0,0,0.12);"
/>
--------------------------------------------------
heading:
Name "Delete evidence?":
<h2
class="MuiTypography-root MuiTypography-h6 MuiDialogTitle-root css-rcehg8-MuiTypography-root-MuiDialogTitle-root"
id="_r_1_"
/>
--------------------------------------------------
region:
Name "Delete evidence?":
<div
aria-labelledby="_r_1_"
class="MuiDialogContent-root css-kw13he-MuiDialogContent-root"
role="region"
tabindex="0"
/>
--------------------------------------------------
alert:
Name "":
<div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorWarning MuiAlert-outlinedWarning MuiAlert-outlined css-15us3fl-MuiPaper-root-MuiAlert-root"
role="alert"
style="--Paper-shadow: none;"
/>
--------------------------------------------------
paragraph:
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-3yi46c-MuiTypography-root"
id="_r_0_"
/>
--------------------------------------------------
button:
Name "Avbryt":
<button
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary Mui-focusVisible MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1dn15bh-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
/>
Name "Delete":
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedError MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorError MuiButton-root MuiButton-contained MuiButton-containedError MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorError css-1c26q6j-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
/>
--------------------------------------------------
Ignored nodes: comments, script, style
<body
style="padding-right: 1024px; overflow: hidden;"
>
<div
aria-hidden="true"
>
<section
aria-labelledby="_r_2_"
class="MuiBox-root css-s8beop"
>
<header
class="MuiBox-root css-163u82n"
>
<div
class="MuiBox-root css-14m33b5"
>
<h2
class="MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"
id="_r_2_"
>
Kunnskapsbank for karrieren
</h2>
<p
class="MuiTypography-root MuiTypography-pageDescription css-1sqgc3a-MuiTypography-root"
>
Lagre faktiske prestasjoner og eksempler én gang, og gjenbruk dem når du tilpasser søknader.
</p>
</div>
</header>
<div
class="MuiBox-root css-31l7gp"
>
<div
class="MuiStack-root css-1sazv7p-MuiStack-root"
>
<section
aria-labelledby="_r_3_"
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_3_"
>
Legg til faktisk dokumentasjon
</h3>
</div>
</header>
<div
class="MuiBox-root css-31l7gp"
>
<div
class="MuiStack-root css-10kbc59-MuiStack-root"
>
<div
class="MuiFormControl-root MuiTextField-root css-1xp5r68-MuiFormControl-root-MuiTextField-root"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiFormLabel-filled MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined css-fluw5i-MuiFormLabel-root-MuiInputLabel-root"
data-shrink="true"
for="_r_4_"
id="_r_4_-label"
>
Kategori
</label>
<div
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-sizeSmall MuiSelect-root css-1tft0rd-MuiInputBase-root-MuiOutlinedInput-root"
>
<div
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="_r_4_-label _r_4_"
class="MuiSelect-select MuiSelect-outlined MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall css-19marfc-MuiNativeSelect-root-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input"
id="_r_4_"
role="combobox"
tabindex="0"
>
Prestasjon
</div>
<input
aria-hidden="true"
aria-invalid="false"
class="MuiSelect-nativeInput css-j0riat-MuiSelect-nativeInput"
tabindex="-1"
value="achievement"
/>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiSelect-icon MuiSelect-iconOutlined css-1rfqz7c-MuiSvgIcon-root-MuiNativeSelect-root-MuiSelect-icon"
data-testid="ArrowDropDownIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M7 10l5 5 5-5z"
/>
</svg>
<fieldset
aria-hidden="true"
class="MuiOutlinedInput-notchedOutline css-18p5xg2-MuiNotchedOutlined-root-MuiOutlinedInput-notchedOutline"
>
<legend
class="css-ex8a5f-MuiNotchedOutlined-root"
>
<span>
Kategori
</span>
</legend>
</fieldset>
</div>
</div>
<div
class="MuiFormControl-root MuiTextField-root css-1xp5r68-MuiFormControl-root-MuiTextField-root"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiFormLabel-filled Mui-required MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-outlined css-18yassc-MuiFormLabel-root-MuiInputLabel-root"
data-shrink="true"
for="_r_6_"
...
52 | const dialog = await screen.findByRole('dialog', { name: translations[from].careerEvidenceDeleteTitle });
53 | await act(async () => window.dispatchEvent(new StorageEvent('storage', { key: 'uiLanguage', newValue: to })));
> 54 | expect(screen.getByRole('dialog', { name: translations[to].careerEvidenceDeleteTitle })).toBe(dialog);
| ^
55 | expect(dialog).toHaveAccessibleDescription(translations[to].careerEvidenceDeleteMessage.replace('{title}', item.title));
56 | expect(dialog.querySelector('metric')).toBeNull();
57 | expectNoWrites(); expect(mocked.get).toHaveBeenCalledTimes(1);
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/career-evidence.test.tsx:54:17)
● pending evidence deletion follows nb without changing the item or add draft
TestingLibraryElementError: Unable to find an accessible element with the role "dialog" and name "Delete evidence?"
Here are the accessible roles:
presentation:
Name "":
<div
class="MuiDialog-root MuiModal-root css-1oaxuzu-MuiModal-root-MuiDialog-root"
role="presentation"
/>
Name "":
<div
class="MuiDialog-container MuiDialog-scrollPaper css-19do60a-MuiDialog-container"
role="presentation"
style="opacity: 1; transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"
tabindex="-1"
/>
--------------------------------------------------
dialog:
Name "Slette dokumentasjon?":
<div
aria-describedby="_r_f_"
aria-labelledby="_r_g_"
aria-modal="true"
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation24 MuiDialog-paper MuiDialog-paperScrollPaper MuiDialog-paperWidthXs MuiDialog-paperFullWidth css-n24a7g-MuiPaper-root-MuiDialog-paper"
role="dialog"
style="--Paper-shadow: 0px 11px 15px -7px rgba(0,0,0,0.2),0px 24px 38px 3px rgba(0,0,0,0.14),0px 9px 46px 8px rgba(0,0,0,0.12);"
/>
--------------------------------------------------
heading:
Name "Slette dokumentasjon?":
<h2
class="MuiTypography-root MuiTypography-h6 MuiDialogTitle-root css-rcehg8-MuiTypography-root-MuiDialogTitle-root"
id="_r_g_"
/>
--------------------------------------------------
region:
Name "Slette dokumentasjon?":
<div
aria-labelledby="_r_g_"
class="MuiDialogContent-root css-kw13he-MuiDialogContent-root"
role="region"
tabindex="0"
/>
--------------------------------------------------
alert:
Name "":
<div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorWarning MuiAlert-outlinedWarning MuiAlert-outlined css-15us3fl-MuiPaper-root-MuiAlert-root"
role="alert"
style="--Paper-shadow: none;"
/>
--------------------------------------------------
paragraph:
Name "":
<p
class="MuiTypography-root MuiTypography-body1 css-3yi46c-MuiTypography-root"
id="_r_f_"
/>
--------------------------------------------------
button:
Name "Cancel":
<button
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary Mui-focusVisible MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1dn15bh-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
/>
Name "Slett":
<button
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedError MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorError MuiButton-root MuiButton-contained MuiButton-containedError MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorError css-1c26q6j-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
/>
--------------------------------------------------
Ignored nodes: comments, script, style
<body
style="padding-right: 1024px; overflow: hidden;"
>
<div
aria-hidden="true"
>
<section
aria-labelledby="_r_h_"
class="MuiBox-root css-s8beop"
>
<header
class="MuiBox-root css-163u82n"
>
<div
class="MuiBox-root css-14m33b5"
>
<h2
class="MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"
id="_r_h_"
>
Career evidence bank
</h2>
<p
class="MuiTypography-root MuiTypography-pageDescription css-1sqgc3a-MuiTypography-root"
>
Save factual achievements and examples once, then reuse them when tailoring applications.
</p>
</div>
</header>
<div
class="MuiBox-root css-31l7gp"
>
<div
class="MuiStack-root css-1sazv7p-MuiStack-root"
>
<section
aria-labelledby="_r_i_"
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_i_"
>
Add factual evidence
</h3>
</div>
</header>
<div
class="MuiBox-root css-31l7gp"
>
<div
class="MuiStack-root css-10kbc59-MuiStack-root"
>
<div
class="MuiFormControl-root MuiTextField-root css-1xp5r68-MuiFormControl-root-MuiTextField-root"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiFormLabel-filled MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-sizeSmall MuiInputLabel-outlined css-fluw5i-MuiFormLabel-root-MuiInputLabel-root"
data-shrink="true"
for="_r_j_"
id="_r_j_-label"
>
Category
</label>
<div
class="MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-sizeSmall MuiSelect-root css-1tft0rd-MuiInputBase-root-MuiOutlinedInput-root"
>
<div
aria-expanded="false"
aria-haspopup="listbox"
aria-labelledby="_r_j_-label _r_j_"
class="MuiSelect-select MuiSelect-outlined MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall css-19marfc-MuiNativeSelect-root-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input"
id="_r_j_"
role="combobox"
tabindex="0"
>
Achievement
</div>
<input
aria-hidden="true"
aria-invalid="false"
class="MuiSelect-nativeInput css-j0riat-MuiSelect-nativeInput"
tabindex="-1"
value="achievement"
/>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiSelect-icon MuiSelect-iconOutlined css-1rfqz7c-MuiSvgIcon-root-MuiNativeSelect-root-MuiSelect-icon"
data-testid="ArrowDropDownIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M7 10l5 5 5-5z"
/>
</svg>
<fieldset
aria-hidden="true"
class="MuiOutlinedInput-notchedOutline css-18p5xg2-MuiNotchedOutlined-root-MuiOutlinedInput-notchedOutline"
>
<legend
class="css-ex8a5f-MuiNotchedOutlined-root"
>
<span>
Category
</span>
</legend>
</fieldset>
</div>
</div>
<div
class="MuiFormControl-root MuiTextField-root css-1xp5r68-MuiFormControl-root-MuiTextField-root"
>
<label
class="MuiFormLabel-root MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-outlined MuiFormLabel-colorPrimary MuiFormLabel-filled Mui-required MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-shrink MuiInputLabel-outlined css-18yassc-MuiFormLabel-root-MuiInputLabel-root"
data-shrink="true"
for="_r_l_"
id=...
52 | const dialog = await screen.findByRole('dialog', { name: translations[from].careerEvidenceDeleteTitle });
53 | await act(async () => window.dispatchEvent(new StorageEvent('storage', { key: 'uiLanguage', newValue: to })));
> 54 | expect(screen.getByRole('dialog', { name: translations[to].careerEvidenceDeleteTitle })).toBe(dialog);
| ^
55 | expect(dialog).toHaveAccessibleDescription(translations[to].careerEvidenceDeleteMessage.replace('{title}', item.title));
56 | expect(dialog.querySelector('metric')).toBeNull();
57 | expectNoWrites(); expect(mocked.get).toHaveBeenCalledTimes(1);
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/career-evidence.test.tsx:54:17)
Test Suites: 2 failed, 2 total
Tests: 4 failed, 14 skipped, 18 total
Snapshots: 0 total
Time: 5.539 s
Ran all test suites matching src/career-evidence.test.tsx|src/cv-document-controls.test.tsx with tests matching "pending evidence deletion follows|template reset confirmation follows".
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\career-template-dialog-red-final.json
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff