docs(i18n): qualify career evidence and template decisions
This commit is contained in:
@@ -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
Binary file not shown.
@@ -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
|
||||
Binary file not shown.
@@ -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.
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -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
|
||||
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,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 "":
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiDialog-root MuiModal-root css-1oaxuzu-MuiModal-root-MuiDialog-root"[39m
|
||||
[33mrole[39m=[32m"presentation"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiDialog-container MuiDialog-scrollPaper css-19do60a-MuiDialog-container"[39m
|
||||
[33mrole[39m=[32m"presentation"[39m
|
||||
[33mstyle[39m=[32m"opacity: 1; transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"[39m
|
||||
[33mtabindex[39m=[32m"-1"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
dialog:
|
||||
|
||||
Name "Apply template defaults?":
|
||||
[36m<div[39m
|
||||
[33maria-describedby[39m=[32m"_r_0_"[39m
|
||||
[33maria-labelledby[39m=[32m"_r_1_"[39m
|
||||
[33maria-modal[39m=[32m"true"[39m
|
||||
[33mclass[39m=[32m"MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation24 MuiDialog-paper MuiDialog-paperScrollPaper MuiDialog-paperWidthXs MuiDialog-paperFullWidth css-n24a7g-MuiPaper-root-MuiDialog-paper"[39m
|
||||
[33mrole[39m=[32m"dialog"[39m
|
||||
[33mstyle[39m=[32m"--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);"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
heading:
|
||||
|
||||
Name "Apply template defaults?":
|
||||
[36m<h2[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-h6 MuiDialogTitle-root css-rcehg8-MuiTypography-root-MuiDialogTitle-root"[39m
|
||||
[33mid[39m=[32m"_r_1_"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
region:
|
||||
|
||||
Name "Apply template defaults?":
|
||||
[36m<div[39m
|
||||
[33maria-labelledby[39m=[32m"_r_1_"[39m
|
||||
[33mclass[39m=[32m"MuiDialogContent-root css-kw13he-MuiDialogContent-root"[39m
|
||||
[33mrole[39m=[32m"region"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
alert:
|
||||
|
||||
Name "":
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorInfo MuiAlert-outlinedInfo MuiAlert-outlined css-r9gdcg-MuiPaper-root-MuiAlert-root"[39m
|
||||
[33mrole[39m=[32m"alert"[39m
|
||||
[33mstyle[39m=[32m"--Paper-shadow: none;"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
paragraph:
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-3yi46c-MuiTypography-root"[39m
|
||||
[33mid[39m=[32m"_r_0_"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
button:
|
||||
|
||||
Name "Avbryt":
|
||||
[36m<button[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "Apply template":
|
||||
[36m<button[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
|
||||
Ignored nodes: comments, script, style
|
||||
[36m<body[39m
|
||||
[33mstyle[39m=[32m"padding-right: 1024px; overflow: hidden;"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33maria-hidden[39m=[32m"true"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiStack-root css-10kbc59-MuiStack-root"[39m
|
||||
[36m>[39m
|
||||
[36m<h3[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-subtitle2 css-1mb4twe-MuiTypography-root"[39m
|
||||
[36m>[39m
|
||||
[0mMal[0m
|
||||
[36m</h3>[39m
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"[39m
|
||||
[36m>[39m
|
||||
[0mMaler endrer bare presentasjonen. Innholdet og valgene for skjulte seksjoner beholdes.[0m
|
||||
[36m</p>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiStack-root css-14nepse-MuiStack-root"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiStack-root css-16fzs56-MuiStack-root"[39m
|
||||
[36m>[39m
|
||||
[36m<button[39m
|
||||
[33maria-pressed[39m=[32m"true"[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m>[39m
|
||||
[0mATS-maler[0m
|
||||
[36m</button>[39m
|
||||
[36m<button[39m
|
||||
[33maria-pressed[39m=[32m"false"[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m>[39m
|
||||
[0mAlle maler[0m
|
||||
[36m</button>[39m
|
||||
[36m<span[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-caption css-2qd4a1-MuiTypography-root"[39m
|
||||
[36m>[39m
|
||||
[0mAnbefalt for pålitelig tolking og tydelig leserekkefølge.[0m
|
||||
[36m</span>[39m
|
||||
[36m</div>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-1xx3gcm"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33maria-describedby[39m=[32m"_r_3_-modern-category _r_3_-modern-description _r_3_-modern-features"[39m
|
||||
[33maria-disabled[39m=[32m"false"[39m
|
||||
[33maria-label[39m=[32m"Moderne"[39m
|
||||
[33maria-pressed[39m=[32m"true"[39m
|
||||
[33mclass[39m=[32m"MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-18ergct-MuiPaper-root"[39m
|
||||
[33mrole[39m=[32m"button"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[36m>[39m
|
||||
[36m<svg[39m
|
||||
[33maria-hidden[39m=[32m"true"[39m
|
||||
[33maria-label[39m=[32m"Valgt mal"[39m
|
||||
[33mclass[39m=[32m"MuiSvgIcon-root MuiSvgIcon-colorPrimary MuiSvgIcon-fontSizeMedium css-1enn2qm-MuiSvgIcon-root"[39m
|
||||
[33mdata-testid[39m=[32m"CheckCircleIcon"[39m
|
||||
[33mfocusable[39m=[32m"false"[39m
|
||||
[33mviewBox[39m=[32m"0 0 24 24"[39m
|
||||
[36m>[39m
|
||||
[36m<path[39m
|
||||
[33md[39m=[32m"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"[39m
|
||||
[36m/>[39m
|
||||
[36m</svg>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-19idom"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33maria-hidden[39m=[32m"true"[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-1jkon9e"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-xhl4z"[39m
|
||||
[36m>[39m
|
||||
[36m<iframe[39m
|
||||
[33msandbox[39m=[32m""[39m
|
||||
[33msrcdoc[39m=[32m"<html><body>Sample</body></html>"[39m
|
||||
[33mstyle[39m=[32m"border: 0px; display: block; width: 793.7007874015749px; height: 1122.5196850393702px; transform: scale(0.2048961840628507); transform-origin: top left; pointer-events: none;"[39m
|
||||
[33mtabindex[39m=[32m"-1"[39m
|
||||
[33mtitle[39m=[32m"Eksempelforhåndsvisning av mal"[39m
|
||||
[36m/>[39m
|
||||
[36m</div>[39m
|
||||
[36m</div>[39m
|
||||
[36m</div>[39m
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"[39m
|
||||
[36m>[39m
|
||||
[0mModerne[0m
|
||||
[36m</p>[39m
|
||||
[36m<span[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-caption css-1030r5w-MuiTypography-root"[39m
|
||||
[33mid[39m=[32m"_r_3_-modern-category"[39m
|
||||
[36m>[39m
|
||||
[0mModerne og profesjonell[0m
|
||||
[36m</span>[39m
|
||||
[36m<span[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-caption css-1m07ajz-MuiTypography-root"[39m
|
||||
[33mid[39m=[32m"_r_3_-modern-description"[39m
|
||||
[36m>[39m
|
||||
[0mRen SaaS-inspirert utforming med en tydelig topptekst i aksentfarge.[0m
|
||||
[36m</span>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiStack-root css-a7rvdw-MuiStack-root"[39m
|
||||
[33mid[39m=[32m"_r_3_-modern-features"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorSuccess MuiChip-outlinedSuccess css-1mhmhdu-MuiChip-root"[39m
|
||||
[36m>[39m
|
||||
[36m<span[39m
|
||||
[33mclass[39m=[32m"MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"[39m
|
||||
[36m>[39m
|
||||
[0mATS-vennlig[0m
|
||||
[36m</span>[39m
|
||||
[36m</div>[39m
|
||||
[36m<div[39m
|
||||
[33maria-hidden[39m=[32m"true"[39m
|
||||
[33mclass[39m=[32m"MuiStack-root css-1vaohjx-MuiStack-root"[39m
|
||||
[36m/>[39m
|
||||
[36m</div>[39m
|
||||
[36m</div>[39m
|
||||
[36m<div[39m
|
||||
[33maria-describedby[39m=[32m"_r_3_-code-category _r_3_-code-description _r_3_-code-features"[39m
|
||||
[33maria-disabled[39m=[32m"false"[39m
|
||||
[33maria-label[39m=[32m"Kode"[39m
|
||||
[33maria-pressed[39m=...
|
||||
|
||||
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 "":
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiDialog-root MuiModal-root css-1oaxuzu-MuiModal-root-MuiDialog-root"[39m
|
||||
[33mrole[39m=[32m"presentation"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiDialog-container MuiDialog-scrollPaper css-19do60a-MuiDialog-container"[39m
|
||||
[33mrole[39m=[32m"presentation"[39m
|
||||
[33mstyle[39m=[32m"opacity: 1; transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"[39m
|
||||
[33mtabindex[39m=[32m"-1"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
dialog:
|
||||
|
||||
Name "Bruke malens standarder?":
|
||||
[36m<div[39m
|
||||
[33maria-describedby[39m=[32m"_r_d_"[39m
|
||||
[33maria-labelledby[39m=[32m"_r_e_"[39m
|
||||
[33maria-modal[39m=[32m"true"[39m
|
||||
[33mclass[39m=[32m"MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation24 MuiDialog-paper MuiDialog-paperScrollPaper MuiDialog-paperWidthXs MuiDialog-paperFullWidth css-n24a7g-MuiPaper-root-MuiDialog-paper"[39m
|
||||
[33mrole[39m=[32m"dialog"[39m
|
||||
[33mstyle[39m=[32m"--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);"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
heading:
|
||||
|
||||
Name "Bruke malens standarder?":
|
||||
[36m<h2[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-h6 MuiDialogTitle-root css-rcehg8-MuiTypography-root-MuiDialogTitle-root"[39m
|
||||
[33mid[39m=[32m"_r_e_"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
region:
|
||||
|
||||
Name "Bruke malens standarder?":
|
||||
[36m<div[39m
|
||||
[33maria-labelledby[39m=[32m"_r_e_"[39m
|
||||
[33mclass[39m=[32m"MuiDialogContent-root css-kw13he-MuiDialogContent-root"[39m
|
||||
[33mrole[39m=[32m"region"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
alert:
|
||||
|
||||
Name "":
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorInfo MuiAlert-outlinedInfo MuiAlert-outlined css-r9gdcg-MuiPaper-root-MuiAlert-root"[39m
|
||||
[33mrole[39m=[32m"alert"[39m
|
||||
[33mstyle[39m=[32m"--Paper-shadow: none;"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
paragraph:
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-3yi46c-MuiTypography-root"[39m
|
||||
[33mid[39m=[32m"_r_d_"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
button:
|
||||
|
||||
Name "Cancel":
|
||||
[36m<button[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "Bruk mal":
|
||||
[36m<button[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
|
||||
Ignored nodes: comments, script, style
|
||||
[36m<body[39m
|
||||
[33mstyle[39m=[32m"padding-right: 1024px; overflow: hidden;"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33maria-hidden[39m=[32m"true"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiStack-root css-10kbc59-MuiStack-root"[39m
|
||||
[36m>[39m
|
||||
[36m<h3[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-subtitle2 css-1mb4twe-MuiTypography-root"[39m
|
||||
[36m>[39m
|
||||
[0mTemplate[0m
|
||||
[36m</h3>[39m
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"[39m
|
||||
[36m>[39m
|
||||
[0mTemplates change presentation only. Your content and hidden-section choices stay intact.[0m
|
||||
[36m</p>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiStack-root css-14nepse-MuiStack-root"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiStack-root css-16fzs56-MuiStack-root"[39m
|
||||
[36m>[39m
|
||||
[36m<button[39m
|
||||
[33maria-pressed[39m=[32m"true"[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m>[39m
|
||||
[0mATS templates[0m
|
||||
[36m</button>[39m
|
||||
[36m<button[39m
|
||||
[33maria-pressed[39m=[32m"false"[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m>[39m
|
||||
[0mAll templates[0m
|
||||
[36m</button>[39m
|
||||
[36m<span[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-caption css-2qd4a1-MuiTypography-root"[39m
|
||||
[36m>[39m
|
||||
[0mRecommended for reliable parsing and a clear reading order.[0m
|
||||
[36m</span>[39m
|
||||
[36m</div>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-1xx3gcm"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33maria-describedby[39m=[32m"_r_g_-modern-category _r_g_-modern-description _r_g_-modern-features"[39m
|
||||
[33maria-disabled[39m=[32m"false"[39m
|
||||
[33maria-label[39m=[32m"Modern"[39m
|
||||
[33maria-pressed[39m=[32m"true"[39m
|
||||
[33mclass[39m=[32m"MuiPaper-root MuiPaper-outlined MuiPaper-rounded css-18ergct-MuiPaper-root"[39m
|
||||
[33mrole[39m=[32m"button"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[36m>[39m
|
||||
[36m<svg[39m
|
||||
[33maria-hidden[39m=[32m"true"[39m
|
||||
[33maria-label[39m=[32m"Selected template"[39m
|
||||
[33mclass[39m=[32m"MuiSvgIcon-root MuiSvgIcon-colorPrimary MuiSvgIcon-fontSizeMedium css-1enn2qm-MuiSvgIcon-root"[39m
|
||||
[33mdata-testid[39m=[32m"CheckCircleIcon"[39m
|
||||
[33mfocusable[39m=[32m"false"[39m
|
||||
[33mviewBox[39m=[32m"0 0 24 24"[39m
|
||||
[36m>[39m
|
||||
[36m<path[39m
|
||||
[33md[39m=[32m"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"[39m
|
||||
[36m/>[39m
|
||||
[36m</svg>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-19idom"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33maria-hidden[39m=[32m"true"[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-1jkon9e"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-xhl4z"[39m
|
||||
[36m>[39m
|
||||
[36m<iframe[39m
|
||||
[33msandbox[39m=[32m""[39m
|
||||
[33msrcdoc[39m=[32m"<html><body>Sample</body></html>"[39m
|
||||
[33mstyle[39m=[32m"border: 0px; display: block; width: 793.7007874015749px; height: 1122.5196850393702px; transform: scale(0.2048961840628507); transform-origin: top left; pointer-events: none;"[39m
|
||||
[33mtabindex[39m=[32m"-1"[39m
|
||||
[33mtitle[39m=[32m"Template sample preview"[39m
|
||||
[36m/>[39m
|
||||
[36m</div>[39m
|
||||
[36m</div>[39m
|
||||
[36m</div>[39m
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body2 css-y4550s-MuiTypography-root"[39m
|
||||
[36m>[39m
|
||||
[0mModern[0m
|
||||
[36m</p>[39m
|
||||
[36m<span[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-caption css-1030r5w-MuiTypography-root"[39m
|
||||
[33mid[39m=[32m"_r_g_-modern-category"[39m
|
||||
[36m>[39m
|
||||
[0mProfessional[0m
|
||||
[36m</span>[39m
|
||||
[36m<span[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-caption css-1m07ajz-MuiTypography-root"[39m
|
||||
[33mid[39m=[32m"_r_g_-modern-description"[39m
|
||||
[36m>[39m
|
||||
[0mDefault[0m
|
||||
[36m</span>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiStack-root css-a7rvdw-MuiStack-root"[39m
|
||||
[33mid[39m=[32m"_r_g_-modern-features"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorSuccess MuiChip-outlinedSuccess css-1mhmhdu-MuiChip-root"[39m
|
||||
[36m>[39m
|
||||
[36m<span[39m
|
||||
[33mclass[39m=[32m"MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"[39m
|
||||
[36m>[39m
|
||||
[0mATS-friendly[0m
|
||||
[36m</span>[39m
|
||||
[36m</div>[39m
|
||||
[36m<div[39m
|
||||
[33maria-hidden[39m=[32m"true"[39m
|
||||
[33mclass[39m=[32m"MuiStack-root css-1vaohjx-MuiStack-root"[39m
|
||||
[36m/>[39m
|
||||
[36m</div>[39m
|
||||
[36m</div>[39m
|
||||
[36m<div[39m
|
||||
[33maria-describedby[39m=[32m"_r_g_-code-category _r_g_-code-description _r_g_-code-features"[39m
|
||||
[33maria-disabled[39m=[32m"false"[39m
|
||||
[33maria-label[39m=[32m"Code"[39m
|
||||
[33maria-pressed[39m=[32m"false"[39m
|
||||
[33mclass[39m=[32m"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 "":
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiDialog-root MuiModal-root css-1oaxuzu-MuiModal-root-MuiDialog-root"[39m
|
||||
[33mrole[39m=[32m"presentation"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiDialog-container MuiDialog-scrollPaper css-19do60a-MuiDialog-container"[39m
|
||||
[33mrole[39m=[32m"presentation"[39m
|
||||
[33mstyle[39m=[32m"opacity: 1; transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"[39m
|
||||
[33mtabindex[39m=[32m"-1"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
dialog:
|
||||
|
||||
Name "Delete evidence?":
|
||||
[36m<div[39m
|
||||
[33maria-describedby[39m=[32m"_r_0_"[39m
|
||||
[33maria-labelledby[39m=[32m"_r_1_"[39m
|
||||
[33maria-modal[39m=[32m"true"[39m
|
||||
[33mclass[39m=[32m"MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation24 MuiDialog-paper MuiDialog-paperScrollPaper MuiDialog-paperWidthXs MuiDialog-paperFullWidth css-n24a7g-MuiPaper-root-MuiDialog-paper"[39m
|
||||
[33mrole[39m=[32m"dialog"[39m
|
||||
[33mstyle[39m=[32m"--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);"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
heading:
|
||||
|
||||
Name "Delete evidence?":
|
||||
[36m<h2[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-h6 MuiDialogTitle-root css-rcehg8-MuiTypography-root-MuiDialogTitle-root"[39m
|
||||
[33mid[39m=[32m"_r_1_"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
region:
|
||||
|
||||
Name "Delete evidence?":
|
||||
[36m<div[39m
|
||||
[33maria-labelledby[39m=[32m"_r_1_"[39m
|
||||
[33mclass[39m=[32m"MuiDialogContent-root css-kw13he-MuiDialogContent-root"[39m
|
||||
[33mrole[39m=[32m"region"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
alert:
|
||||
|
||||
Name "":
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorWarning MuiAlert-outlinedWarning MuiAlert-outlined css-15us3fl-MuiPaper-root-MuiAlert-root"[39m
|
||||
[33mrole[39m=[32m"alert"[39m
|
||||
[33mstyle[39m=[32m"--Paper-shadow: none;"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
paragraph:
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-3yi46c-MuiTypography-root"[39m
|
||||
[33mid[39m=[32m"_r_0_"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
button:
|
||||
|
||||
Name "Avbryt":
|
||||
[36m<button[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "Delete":
|
||||
[36m<button[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
|
||||
Ignored nodes: comments, script, style
|
||||
[36m<body[39m
|
||||
[33mstyle[39m=[32m"padding-right: 1024px; overflow: hidden;"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33maria-hidden[39m=[32m"true"[39m
|
||||
[36m>[39m
|
||||
[36m<section[39m
|
||||
[33maria-labelledby[39m=[32m"_r_2_"[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-s8beop"[39m
|
||||
[36m>[39m
|
||||
[36m<header[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-163u82n"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-14m33b5"[39m
|
||||
[36m>[39m
|
||||
[36m<h2[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"[39m
|
||||
[33mid[39m=[32m"_r_2_"[39m
|
||||
[36m>[39m
|
||||
[0mKunnskapsbank for karrieren[0m
|
||||
[36m</h2>[39m
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-pageDescription css-1sqgc3a-MuiTypography-root"[39m
|
||||
[36m>[39m
|
||||
[0mLagre faktiske prestasjoner og eksempler én gang, og gjenbruk dem når du tilpasser søknader.[0m
|
||||
[36m</p>[39m
|
||||
[36m</div>[39m
|
||||
[36m</header>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-31l7gp"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiStack-root css-1sazv7p-MuiStack-root"[39m
|
||||
[36m>[39m
|
||||
[36m<section[39m
|
||||
[33maria-labelledby[39m=[32m"_r_3_"[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-rw0fp9"[39m
|
||||
[36m>[39m
|
||||
[36m<header[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-163u82n"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-14m33b5"[39m
|
||||
[36m>[39m
|
||||
[36m<h3[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"[39m
|
||||
[33mid[39m=[32m"_r_3_"[39m
|
||||
[36m>[39m
|
||||
[0mLegg til faktisk dokumentasjon[0m
|
||||
[36m</h3>[39m
|
||||
[36m</div>[39m
|
||||
[36m</header>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-31l7gp"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiStack-root css-10kbc59-MuiStack-root"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiFormControl-root MuiTextField-root css-1xp5r68-MuiFormControl-root-MuiTextField-root"[39m
|
||||
[36m>[39m
|
||||
[36m<label[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mdata-shrink[39m=[32m"true"[39m
|
||||
[33mfor[39m=[32m"_r_4_"[39m
|
||||
[33mid[39m=[32m"_r_4_-label"[39m
|
||||
[36m>[39m
|
||||
[0mKategori[0m
|
||||
[36m</label>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-sizeSmall MuiSelect-root css-1tft0rd-MuiInputBase-root-MuiOutlinedInput-root"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33maria-expanded[39m=[32m"false"[39m
|
||||
[33maria-haspopup[39m=[32m"listbox"[39m
|
||||
[33maria-labelledby[39m=[32m"_r_4_-label _r_4_"[39m
|
||||
[33mclass[39m=[32m"MuiSelect-select MuiSelect-outlined MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall css-19marfc-MuiNativeSelect-root-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input"[39m
|
||||
[33mid[39m=[32m"_r_4_"[39m
|
||||
[33mrole[39m=[32m"combobox"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[36m>[39m
|
||||
[0mPrestasjon[0m
|
||||
[36m</div>[39m
|
||||
[36m<input[39m
|
||||
[33maria-hidden[39m=[32m"true"[39m
|
||||
[33maria-invalid[39m=[32m"false"[39m
|
||||
[33mclass[39m=[32m"MuiSelect-nativeInput css-j0riat-MuiSelect-nativeInput"[39m
|
||||
[33mtabindex[39m=[32m"-1"[39m
|
||||
[33mvalue[39m=[32m"achievement"[39m
|
||||
[36m/>[39m
|
||||
[36m<svg[39m
|
||||
[33maria-hidden[39m=[32m"true"[39m
|
||||
[33mclass[39m=[32m"MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiSelect-icon MuiSelect-iconOutlined css-1rfqz7c-MuiSvgIcon-root-MuiNativeSelect-root-MuiSelect-icon"[39m
|
||||
[33mdata-testid[39m=[32m"ArrowDropDownIcon"[39m
|
||||
[33mfocusable[39m=[32m"false"[39m
|
||||
[33mviewBox[39m=[32m"0 0 24 24"[39m
|
||||
[36m>[39m
|
||||
[36m<path[39m
|
||||
[33md[39m=[32m"M7 10l5 5 5-5z"[39m
|
||||
[36m/>[39m
|
||||
[36m</svg>[39m
|
||||
[36m<fieldset[39m
|
||||
[33maria-hidden[39m=[32m"true"[39m
|
||||
[33mclass[39m=[32m"MuiOutlinedInput-notchedOutline css-18p5xg2-MuiNotchedOutlined-root-MuiOutlinedInput-notchedOutline"[39m
|
||||
[36m>[39m
|
||||
[36m<legend[39m
|
||||
[33mclass[39m=[32m"css-ex8a5f-MuiNotchedOutlined-root"[39m
|
||||
[36m>[39m
|
||||
[36m<span>[39m
|
||||
[0mKategori[0m
|
||||
[36m</span>[39m
|
||||
[36m</legend>[39m
|
||||
[36m</fieldset>[39m
|
||||
[36m</div>[39m
|
||||
[36m</div>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiFormControl-root MuiTextField-root css-1xp5r68-MuiFormControl-root-MuiTextField-root"[39m
|
||||
[36m>[39m
|
||||
[36m<label[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mdata-shrink[39m=[32m"true"[39m
|
||||
[33mfor[39m=[32m"_r_6_"[39m
|
||||
...
|
||||
|
||||
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 "":
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiDialog-root MuiModal-root css-1oaxuzu-MuiModal-root-MuiDialog-root"[39m
|
||||
[33mrole[39m=[32m"presentation"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "":
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiDialog-container MuiDialog-scrollPaper css-19do60a-MuiDialog-container"[39m
|
||||
[33mrole[39m=[32m"presentation"[39m
|
||||
[33mstyle[39m=[32m"opacity: 1; transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"[39m
|
||||
[33mtabindex[39m=[32m"-1"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
dialog:
|
||||
|
||||
Name "Slette dokumentasjon?":
|
||||
[36m<div[39m
|
||||
[33maria-describedby[39m=[32m"_r_f_"[39m
|
||||
[33maria-labelledby[39m=[32m"_r_g_"[39m
|
||||
[33maria-modal[39m=[32m"true"[39m
|
||||
[33mclass[39m=[32m"MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation24 MuiDialog-paper MuiDialog-paperScrollPaper MuiDialog-paperWidthXs MuiDialog-paperFullWidth css-n24a7g-MuiPaper-root-MuiDialog-paper"[39m
|
||||
[33mrole[39m=[32m"dialog"[39m
|
||||
[33mstyle[39m=[32m"--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);"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
heading:
|
||||
|
||||
Name "Slette dokumentasjon?":
|
||||
[36m<h2[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-h6 MuiDialogTitle-root css-rcehg8-MuiTypography-root-MuiDialogTitle-root"[39m
|
||||
[33mid[39m=[32m"_r_g_"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
region:
|
||||
|
||||
Name "Slette dokumentasjon?":
|
||||
[36m<div[39m
|
||||
[33maria-labelledby[39m=[32m"_r_g_"[39m
|
||||
[33mclass[39m=[32m"MuiDialogContent-root css-kw13he-MuiDialogContent-root"[39m
|
||||
[33mrole[39m=[32m"region"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
alert:
|
||||
|
||||
Name "":
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root MuiAlert-colorWarning MuiAlert-outlinedWarning MuiAlert-outlined css-15us3fl-MuiPaper-root-MuiAlert-root"[39m
|
||||
[33mrole[39m=[32m"alert"[39m
|
||||
[33mstyle[39m=[32m"--Paper-shadow: none;"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
paragraph:
|
||||
|
||||
Name "":
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-body1 css-3yi46c-MuiTypography-root"[39m
|
||||
[33mid[39m=[32m"_r_f_"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
button:
|
||||
|
||||
Name "Cancel":
|
||||
[36m<button[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m/>[39m
|
||||
|
||||
Name "Slett":
|
||||
[36m<button[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[33mtype[39m=[32m"button"[39m
|
||||
[36m/>[39m
|
||||
|
||||
--------------------------------------------------
|
||||
|
||||
Ignored nodes: comments, script, style
|
||||
[36m<body[39m
|
||||
[33mstyle[39m=[32m"padding-right: 1024px; overflow: hidden;"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33maria-hidden[39m=[32m"true"[39m
|
||||
[36m>[39m
|
||||
[36m<section[39m
|
||||
[33maria-labelledby[39m=[32m"_r_h_"[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-s8beop"[39m
|
||||
[36m>[39m
|
||||
[36m<header[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-163u82n"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-14m33b5"[39m
|
||||
[36m>[39m
|
||||
[36m<h2[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"[39m
|
||||
[33mid[39m=[32m"_r_h_"[39m
|
||||
[36m>[39m
|
||||
[0mCareer evidence bank[0m
|
||||
[36m</h2>[39m
|
||||
[36m<p[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-pageDescription css-1sqgc3a-MuiTypography-root"[39m
|
||||
[36m>[39m
|
||||
[0mSave factual achievements and examples once, then reuse them when tailoring applications.[0m
|
||||
[36m</p>[39m
|
||||
[36m</div>[39m
|
||||
[36m</header>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-31l7gp"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiStack-root css-1sazv7p-MuiStack-root"[39m
|
||||
[36m>[39m
|
||||
[36m<section[39m
|
||||
[33maria-labelledby[39m=[32m"_r_i_"[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-rw0fp9"[39m
|
||||
[36m>[39m
|
||||
[36m<header[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-163u82n"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-14m33b5"[39m
|
||||
[36m>[39m
|
||||
[36m<h3[39m
|
||||
[33mclass[39m=[32m"MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"[39m
|
||||
[33mid[39m=[32m"_r_i_"[39m
|
||||
[36m>[39m
|
||||
[0mAdd factual evidence[0m
|
||||
[36m</h3>[39m
|
||||
[36m</div>[39m
|
||||
[36m</header>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiBox-root css-31l7gp"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiStack-root css-10kbc59-MuiStack-root"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiFormControl-root MuiTextField-root css-1xp5r68-MuiFormControl-root-MuiTextField-root"[39m
|
||||
[36m>[39m
|
||||
[36m<label[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mdata-shrink[39m=[32m"true"[39m
|
||||
[33mfor[39m=[32m"_r_j_"[39m
|
||||
[33mid[39m=[32m"_r_j_-label"[39m
|
||||
[36m>[39m
|
||||
[0mCategory[0m
|
||||
[36m</label>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiInputBase-root MuiOutlinedInput-root MuiInputBase-colorPrimary MuiInputBase-formControl MuiInputBase-sizeSmall MuiSelect-root css-1tft0rd-MuiInputBase-root-MuiOutlinedInput-root"[39m
|
||||
[36m>[39m
|
||||
[36m<div[39m
|
||||
[33maria-expanded[39m=[32m"false"[39m
|
||||
[33maria-haspopup[39m=[32m"listbox"[39m
|
||||
[33maria-labelledby[39m=[32m"_r_j_-label _r_j_"[39m
|
||||
[33mclass[39m=[32m"MuiSelect-select MuiSelect-outlined MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputSizeSmall css-19marfc-MuiNativeSelect-root-MuiSelect-select-MuiInputBase-input-MuiOutlinedInput-input"[39m
|
||||
[33mid[39m=[32m"_r_j_"[39m
|
||||
[33mrole[39m=[32m"combobox"[39m
|
||||
[33mtabindex[39m=[32m"0"[39m
|
||||
[36m>[39m
|
||||
[0mAchievement[0m
|
||||
[36m</div>[39m
|
||||
[36m<input[39m
|
||||
[33maria-hidden[39m=[32m"true"[39m
|
||||
[33maria-invalid[39m=[32m"false"[39m
|
||||
[33mclass[39m=[32m"MuiSelect-nativeInput css-j0riat-MuiSelect-nativeInput"[39m
|
||||
[33mtabindex[39m=[32m"-1"[39m
|
||||
[33mvalue[39m=[32m"achievement"[39m
|
||||
[36m/>[39m
|
||||
[36m<svg[39m
|
||||
[33maria-hidden[39m=[32m"true"[39m
|
||||
[33mclass[39m=[32m"MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiSelect-icon MuiSelect-iconOutlined css-1rfqz7c-MuiSvgIcon-root-MuiNativeSelect-root-MuiSelect-icon"[39m
|
||||
[33mdata-testid[39m=[32m"ArrowDropDownIcon"[39m
|
||||
[33mfocusable[39m=[32m"false"[39m
|
||||
[33mviewBox[39m=[32m"0 0 24 24"[39m
|
||||
[36m>[39m
|
||||
[36m<path[39m
|
||||
[33md[39m=[32m"M7 10l5 5 5-5z"[39m
|
||||
[36m/>[39m
|
||||
[36m</svg>[39m
|
||||
[36m<fieldset[39m
|
||||
[33maria-hidden[39m=[32m"true"[39m
|
||||
[33mclass[39m=[32m"MuiOutlinedInput-notchedOutline css-18p5xg2-MuiNotchedOutlined-root-MuiOutlinedInput-notchedOutline"[39m
|
||||
[36m>[39m
|
||||
[36m<legend[39m
|
||||
[33mclass[39m=[32m"css-ex8a5f-MuiNotchedOutlined-root"[39m
|
||||
[36m>[39m
|
||||
[36m<span>[39m
|
||||
[0mCategory[0m
|
||||
[36m</span>[39m
|
||||
[36m</legend>[39m
|
||||
[36m</fieldset>[39m
|
||||
[36m</div>[39m
|
||||
[36m</div>[39m
|
||||
[36m<div[39m
|
||||
[33mclass[39m=[32m"MuiFormControl-root MuiTextField-root css-1xp5r68-MuiFormControl-root-MuiTextField-root"[39m
|
||||
[36m>[39m
|
||||
[36m<label[39m
|
||||
[33mclass[39m=[32m"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"[39m
|
||||
[33mdata-shrink[39m=[32m"true"[39m
|
||||
[33mfor[39m=[32m"_r_l_"[39m
|
||||
[33mid[39m=...
|
||||
|
||||
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
|
||||
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user