docs(letters): retain restore dialog preservation evidence
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
# Cover-letter history restore confirmation
|
||||
|
||||
17 November 2026. Source `e8658b5d` on `codex/a3-ui-10`, baseline `f2fc49cc`.
|
||||
|
||||
Restore-discard confirmation uses existing live translation descriptors. No restore/cancel decision, busy guard, job/version/revision, text/design draft, endpoint, renderer, schema or storage behavior changed.
|
||||
|
||||
Two corrected EN/NB tests reproduced stale pending copy. Initial red used the tooltip key instead of the accessible version-number key; initial green reached a wrong expected endpoint in the new tests. Those setup failures are retained separately. Tests now assert the actual existing `/jobapplications/7/cover-letter/versions/1/restore` request with `expectedVersion:7`; application code was not changed for either assertion correction. Final **73 cases/two complete affected suites PASSED**, zero failures/skips. Non-incremental TypeScript, two-file lint, source diff and combined AST refresh19,339 nodes/47,487 edges passed. Source/native gzip receipts: `evidence/letter-restore-dialog/SOURCE_RECEIPTS.json`.
|
||||
|
||||
Cancellation retains both unsaved letter text and document subject; language switch adds no read/write, and explicit approval sends one original restore request. Synthetic JSDOM/API tests only, no real restoration, browser/device or physical PDF work. Existing accepted PDF evidence was not reopened. Prior Next build remains FAILED; final A3/European localisation/security/recovery/release acceptance remains open. Native failure-log bytes/whitespace are preserved. Rollback: revert this source commit; no migration.
|
||||
@@ -0,0 +1,101 @@
|
||||
{
|
||||
"sourceCommit": "e8658b5d6d1e1096d3511b93cff110fe1960b8c8",
|
||||
"sourcesLfSha256": {
|
||||
"job-tracker-ui/src/components/ApplicationAssets.tsx": "7459f1128df56aad821d870640ed7b1837ffb517052d3d76311dd888237d09a9",
|
||||
"job-tracker-ui/src/application-assets.test.tsx": "ced0a6a1dbb63ddd6bc29531010289b20f0f4998c89b879b10e8a0c9d9c30691",
|
||||
"job-tracker-ui/src/cover-letter-document.test.tsx": "6305a6c729fec3854a7d213ca89b9ca8ec78d6714200370d880ffa9d98249a5d",
|
||||
"job-tracker-ui/src/applicationWorkspace.ts": "3b00a4fe16159bdb9603eeb37bfdf5e5eb9a87d7815227fa3aa2f0da6e4f232c"
|
||||
},
|
||||
"evidenceLfSha256": {
|
||||
"red.json": "b32e0f38219a50306ad02323fcf19beeaf81831b8053bfe889bec83bb34f5d0e",
|
||||
"red.txt": "3175af89de63d4b35cfec533ae800b2fcc446f8c567faed67460968e7c319d3b",
|
||||
"red-corrected.json": "baeb6fafcaff5d4cfd52c0ed5b6947027b066ed7ccbc0fea9f155c8c35e1dc42",
|
||||
"red-corrected.txt": "994543ab1cddc9a24ebcbe11378db7a29f9426aeae29a3bd8db7801b65e2df9f",
|
||||
"green.json": "29b04f679d73ed851520864fed396e66751095509c8e62a8e226546dff2f2994",
|
||||
"green.txt": "8f1884ba083af26fbd18fc4c2a87d65a328f4806ce189f1b86dd387ec1fd0039",
|
||||
"final.json": "f1a6cae5ce1fd3cf1d537f4f8f0c52e2e3ff82aaf531c7689c607e6835b6146a",
|
||||
"final.txt": "5f89cadcf8caab4d6c2e670ff0c23e171eb228dc025ca4a2b6ec80be0f689ae1",
|
||||
"typecheck.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"lint.txt": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"graph.txt": "3fc171ae45ae812a4c0a28bac14c398abb36b8929efe1c6273c9c332b5d7084e"
|
||||
},
|
||||
"nativeReceipts": [
|
||||
{
|
||||
"path": "red.json",
|
||||
"originFile": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\letter-restore-dialog-red.json",
|
||||
"gzipPath": "red.json.gz",
|
||||
"rawSha256": "b32e0f38219a50306ad02323fcf19beeaf81831b8053bfe889bec83bb34f5d0e",
|
||||
"gzipSha256": "cc779d9124c203d518d3e82c80cb295dd4f5935b833a21d2e9f68e8d235a5156"
|
||||
},
|
||||
{
|
||||
"path": "red.txt",
|
||||
"originFile": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\letter-restore-dialog-red.txt",
|
||||
"gzipPath": "red.txt.gz",
|
||||
"rawSha256": "2c1f4e7bb9001849a1aa8371cd6ae352e125ba372ac70493e50b28557251387a",
|
||||
"gzipSha256": "07b30e1b679e7ef3b40a3454dddaf195f2acc1038bca57d745b013d9ca6af159"
|
||||
},
|
||||
{
|
||||
"path": "red-corrected.json",
|
||||
"originFile": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\letter-restore-dialog-red-corrected.json",
|
||||
"gzipPath": "red-corrected.json.gz",
|
||||
"rawSha256": "baeb6fafcaff5d4cfd52c0ed5b6947027b066ed7ccbc0fea9f155c8c35e1dc42",
|
||||
"gzipSha256": "d96625a21b966b72647bb16e19c047f031cbce0b6f5a7f3ac54a81123f08de9d"
|
||||
},
|
||||
{
|
||||
"path": "red-corrected.txt",
|
||||
"originFile": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\letter-restore-dialog-red-corrected.txt",
|
||||
"gzipPath": "red-corrected.txt.gz",
|
||||
"rawSha256": "e6ca65b9eb8be4b4782cb67f90228896cdf179ff3f13e6af4bef095a0f843a30",
|
||||
"gzipSha256": "1b0bf000d18f1bb0e36fafc077abff282cab6c62a76bbf573d1135de021c5779"
|
||||
},
|
||||
{
|
||||
"path": "green.json",
|
||||
"originFile": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\letter-restore-dialog-green.json",
|
||||
"gzipPath": "green.json.gz",
|
||||
"rawSha256": "29b04f679d73ed851520864fed396e66751095509c8e62a8e226546dff2f2994",
|
||||
"gzipSha256": "2db90f40feb13bbdd564738d711064048d6aa35333c9d713820b9d0aca67d344"
|
||||
},
|
||||
{
|
||||
"path": "green.txt",
|
||||
"originFile": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\letter-restore-dialog-green.txt",
|
||||
"gzipPath": "green.txt.gz",
|
||||
"rawSha256": "5b47b616a0346fbd6e83d7a7e8852d0bd172707f2cbe695aad513de6c8abe9ca",
|
||||
"gzipSha256": "dd78e91ae17d20bc4351266c75308b6c2e8658fa0aa463ac2d4329d0200f28dc"
|
||||
},
|
||||
{
|
||||
"path": "final.json",
|
||||
"originFile": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\letter-restore-dialog-final.json",
|
||||
"gzipPath": "final.json.gz",
|
||||
"rawSha256": "f1a6cae5ce1fd3cf1d537f4f8f0c52e2e3ff82aaf531c7689c607e6835b6146a",
|
||||
"gzipSha256": "f3082091db9d7f832d87a5b556c90022a3d468d5c829b9dde59374423763c6d0"
|
||||
},
|
||||
{
|
||||
"path": "final.txt",
|
||||
"originFile": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\letter-restore-dialog-final.txt",
|
||||
"gzipPath": "final.txt.gz",
|
||||
"rawSha256": "6d8f359087bd29defc58da9701ec22c9fc65d3289ae92d57423947ac7a7e4825",
|
||||
"gzipSha256": "9b71d42d6279e45d89a9f58d01abe442fb43eaf6764b78ee2204bed0d3fc5c2a"
|
||||
},
|
||||
{
|
||||
"path": "typecheck.txt",
|
||||
"originFile": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\letter-restore-dialog-typecheck.txt",
|
||||
"gzipPath": "typecheck.txt.gz",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e"
|
||||
},
|
||||
{
|
||||
"path": "lint.txt",
|
||||
"originFile": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\letter-restore-dialog-lint.txt",
|
||||
"gzipPath": "lint.txt.gz",
|
||||
"rawSha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
||||
"gzipSha256": "46b50c321b39e89a491b6727a01628c34245605a30beb3e7414c5e01cff90e6e"
|
||||
},
|
||||
{
|
||||
"path": "graph.txt",
|
||||
"originFile": "E:\\Storage\\Projects\\Active\\temp docs\\jobjakt-local-build\\letter-inbox-dialog-graph.txt",
|
||||
"gzipPath": "graph.txt.gz",
|
||||
"rawSha256": "120ddfb795a7470ca02cd7184b86fc77aa9d7f5c01a72ab70626cbc5c9bcb234",
|
||||
"gzipSha256": "b582bdf1caf9667dab44ea7ae14b3799fe319d49cb1f08a8c8f9bc5622867742"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
|
||||
Test Suites: 2 passed, 2 total
|
||||
Tests: 73 passed, 73 total
|
||||
Snapshots: 0 total
|
||||
Time: 32.219 s
|
||||
Ran all test suites matching src/application-assets.test.tsx|src/cover-letter-document.test.tsx.
|
||||
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\letter-restore-dialog-final.json
|
||||
Binary file not shown.
@@ -0,0 +1,18 @@
|
||||
Re-extracting code files in . (no LLM needed)...
|
||||
[graphify watch] 796 file(s) not classified (no supported extension or shebang), skipped: .dockerignore, .env.example, .git, .gitattributes, .gitignore, 1440-en-dark-converted.gz (+790 more)
|
||||
AST cache: 2652/3104 files served from cache (85%); 452 to extract
|
||||
AST extraction: 100/452 uncached files (22%) [16 workers]
|
||||
AST extraction: 200/452 uncached files (44%) [16 workers]
|
||||
AST extraction: 300/452 uncached files (66%) [16 workers]
|
||||
AST extraction: 400/452 uncached files (88%) [16 workers]
|
||||
AST extraction: 452/452 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, 1208 communities now; renamed 142 community(ies) by their hub). Run `graphify label` to refresh names with the LLM.
|
||||
Graph has 19339 nodes (above 5000 limit). Building aggregated community view...
|
||||
graph.html written (aggregated: 1208 community nodes, 3260 cross-community edges)
|
||||
Tip: run with --obsidian for full node-level detail.
|
||||
[graphify watch] Rebuilt: 19339 nodes, 47487 edges, 1208 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,54 @@
|
||||
FAIL src/application-assets.test.tsx (23.222 s)
|
||||
● pending letter history restore follows en without losing text, design or revision
|
||||
|
||||
expect(jest.fn()).toHaveBeenCalledWith(...expected)
|
||||
|
||||
- Expected
|
||||
+ Received
|
||||
|
||||
- "/jobapplications/7/cover-letter/restore/1",
|
||||
+ "/jobapplications/7/cover-letter/versions/1/restore",
|
||||
{"expectedVersion": 7},
|
||||
|
||||
Number of calls: 1
|
||||
|
||||
984 | fireEvent.click(within(await screen.findByRole('dialog')).getByRole('button', { name: copy('assetsRestoreConfirm') }));
|
||||
985 | await waitFor(() => expect(mockedApi.post).toHaveBeenCalledTimes(1));
|
||||
> 986 | expect(mockedApi.post).toHaveBeenCalledWith('/jobapplications/7/cover-letter/versions/1/restore', { expectedVersion: 7 });
|
||||
| ^
|
||||
987 | });
|
||||
988 |
|
||||
989 | test("keyed letter job changes discard the old preview and ignore its late save", async () => {
|
||||
|
||||
at toHaveBeenCalledWith (src/application-assets.test.tsx:986:26)
|
||||
|
||||
● pending letter history restore follows nb without losing text, design or revision
|
||||
|
||||
expect(jest.fn()).toHaveBeenCalledWith(...expected)
|
||||
|
||||
- Expected
|
||||
+ Received
|
||||
|
||||
- "/jobapplications/7/cover-letter/restore/1",
|
||||
+ "/jobapplications/7/cover-letter/versions/1/restore",
|
||||
{"expectedVersion": 7},
|
||||
|
||||
Number of calls: 1
|
||||
|
||||
984 | fireEvent.click(within(await screen.findByRole('dialog')).getByRole('button', { name: copy('assetsRestoreConfirm') }));
|
||||
985 | await waitFor(() => expect(mockedApi.post).toHaveBeenCalledTimes(1));
|
||||
> 986 | expect(mockedApi.post).toHaveBeenCalledWith('/jobapplications/7/cover-letter/versions/1/restore', { expectedVersion: 7 });
|
||||
| ^
|
||||
987 | });
|
||||
988 |
|
||||
989 | test("keyed letter job changes discard the old preview and ignore its late save", async () => {
|
||||
|
||||
at toHaveBeenCalledWith (src/application-assets.test.tsx:986:26)
|
||||
|
||||
|
||||
Test Suites: 1 failed, 1 passed, 2 total
|
||||
Tests: 2 failed, 71 passed, 73 total
|
||||
Snapshots: 0 total
|
||||
Time: 30.116 s
|
||||
Ran all test suites matching src/application-assets.test.tsx|src/cover-letter-document.test.tsx.
|
||||
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\letter-restore-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,485 @@
|
||||
FAIL src/application-assets.test.tsx
|
||||
● pending letter history restore follows en without losing text, design or revision
|
||||
|
||||
TestingLibraryElementError: Unable to find an accessible element with the role "dialog" and name "Gjenopprette lagret versjon?"
|
||||
|
||||
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 "Restore saved version?":
|
||||
<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 "Restore saved version?":
|
||||
<h2
|
||||
class="MuiTypography-root MuiTypography-h6 MuiDialogTitle-root css-rcehg8-MuiTypography-root-MuiDialogTitle-root"
|
||||
id="_r_1_"
|
||||
/>
|
||||
|
||||
--------------------------------------------------
|
||||
region:
|
||||
|
||||
Name "Restore saved version?":
|
||||
<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 "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 "Discard and restore":
|
||||
<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"
|
||||
>
|
||||
<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_"
|
||||
>
|
||||
Søknadsbrev
|
||||
</h3>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-pageDescription css-1sqgc3a-MuiTypography-root"
|
||||
>
|
||||
Hver lagring oppretter en versjon, slik at manuelt redigert tekst aldri overskrives uten gjennomgang.
|
||||
</p>
|
||||
</div>
|
||||
</header>
|
||||
<div
|
||||
class="MuiBox-root css-31l7gp"
|
||||
>
|
||||
<div
|
||||
aria-label="Søknadsbrev"
|
||||
class="MuiBox-root css-31l7gp"
|
||||
role="group"
|
||||
tabindex="-1"
|
||||
>
|
||||
<span
|
||||
aria-atomic="true"
|
||||
aria-live="polite"
|
||||
class="MuiBox-root css-ty8jgw"
|
||||
role="status"
|
||||
>
|
||||
Innhold lastet.
|
||||
</span>
|
||||
<div
|
||||
class="MuiStack-root css-1sazv7p-MuiStack-root"
|
||||
>
|
||||
<div
|
||||
class="MuiTabs-root css-jhczcq-MuiTabs-root"
|
||||
>
|
||||
<div
|
||||
class="MuiTabs-scroller MuiTabs-fixed css-s2t35c-MuiTabs-scroller"
|
||||
style="overflow: hidden; margin-bottom: 0px;"
|
||||
>
|
||||
<div
|
||||
aria-label="Søknadsbrev"
|
||||
class="MuiTabs-list MuiTabs-flexContainer css-hzcega-MuiTabs-list"
|
||||
role="tablist"
|
||||
>
|
||||
<button
|
||||
aria-controls="_r_2_-write-panel"
|
||||
aria-selected="true"
|
||||
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary MuiTab-fullWidth Mui-selected css-1yf2fw4-MuiButtonBase-root-MuiTab-root"
|
||||
id="_r_2_-write"
|
||||
role="tab"
|
||||
tabindex="0"
|
||||
type="button"
|
||||
>
|
||||
Skriv
|
||||
</button>
|
||||
<button
|
||||
aria-controls="_r_2_-preview-panel"
|
||||
aria-selected="false"
|
||||
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary MuiTab-fullWidth css-1yf2fw4-MuiButtonBase-root-MuiTab-root"
|
||||
id="_r_2_-preview"
|
||||
role="tab"
|
||||
tabindex="-1"
|
||||
type="button"
|
||||
>
|
||||
Forhåndsvisning
|
||||
</button>
|
||||
</div>
|
||||
<span
|
||||
class="MuiTabs-indicator css-1qltlow-MuiTabs-indicator"
|
||||
style="left: 0px; width: 0px;"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="MuiBox-root css-1fh8hog"
|
||||
data-letter-studio-layout="true"
|
||||
>
|
||||
<div
|
||||
aria-labelledby="_r_2_-write"
|
||||
class="MuiBox-root css-31l7gp"
|
||||
id="_r_2_-write-panel"
|
||||
role="tabpanel"
|
||||
>
|
||||
<div
|
||||
class="MuiStack-root css-1ad9fit-MuiStack-root"
|
||||
>
|
||||
<h4
|
||||
class="MuiTypography-root MuiTypography-subtitle2 css-1mb4twe-MuiTypography-root"
|
||||
>
|
||||
Dokumentdetaljer
|
||||
</h4>
|
||||
<div
|
||||
class="MuiStack-root css-pex525-MuiStack-root"
|
||||
>
|
||||
<button
|
||||
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary Mui-disabled MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1dn15bh-MuiButtonBase-root-MuiButton-root"
|
||||
disabled=""
|
||||
tabindex="-1"
|
||||
type="button"
|
||||
>
|
||||
Kopier kontakt fra CV
|
||||
</button>
|
||||
<button
|
||||
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary Mui-disabled MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1dn15bh-MuiButtonBase-root-MuiButton-root"
|
||||
disabled=""
|
||||
tabindex="-1"
|
||||
type="button"
|
||||
>
|
||||
Bruk CV-design
|
||||
...
|
||||
|
||||
972 | const reads = mockedApi.get.mock.calls.length;
|
||||
973 | changeLanguage(to);
|
||||
> 974 | expect(screen.getByRole('dialog', { name: copy('assetsRestoreDiscardTitle') })).toBe(dialog);
|
||||
| ^
|
||||
975 | expect(dialog).toHaveAccessibleDescription(copy('assetsRestoreDiscardMessage'));
|
||||
976 | expect(within(dialog).getByRole('button', { name: copy('assetsRestoreConfirm') })).toBeEnabled();
|
||||
977 | expect(mockedApi.post).not.toHaveBeenCalled(); expect(mockedApi.put).not.toHaveBeenCalled();
|
||||
|
||||
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/application-assets.test.tsx:974:17)
|
||||
|
||||
● pending letter history restore follows nb without losing text, design or revision
|
||||
|
||||
TestingLibraryElementError: Unable to find an accessible element with the role "dialog" and name "Restore saved version?"
|
||||
|
||||
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 "Gjenopprette lagret versjon?":
|
||||
<div
|
||||
aria-describedby="_r_1j_"
|
||||
aria-labelledby="_r_1k_"
|
||||
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 "Gjenopprette lagret versjon?":
|
||||
<h2
|
||||
class="MuiTypography-root MuiTypography-h6 MuiDialogTitle-root css-rcehg8-MuiTypography-root-MuiDialogTitle-root"
|
||||
id="_r_1k_"
|
||||
/>
|
||||
|
||||
--------------------------------------------------
|
||||
region:
|
||||
|
||||
Name "Gjenopprette lagret versjon?":
|
||||
<div
|
||||
aria-labelledby="_r_1k_"
|
||||
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_1j_"
|
||||
/>
|
||||
|
||||
--------------------------------------------------
|
||||
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 "Forkast og gjenopprett":
|
||||
<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"
|
||||
>
|
||||
<div
|
||||
class="MuiStack-root css-1sazv7p-MuiStack-root"
|
||||
>
|
||||
<section
|
||||
aria-labelledby="_r_1m_"
|
||||
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_1m_"
|
||||
>
|
||||
Cover Letter
|
||||
</h3>
|
||||
<p
|
||||
class="MuiTypography-root MuiTypography-pageDescription css-1sqgc3a-MuiTypography-root"
|
||||
>
|
||||
Every save creates a version, so manually edited text is never overwritten without review.
|
||||
</p>
|
||||
</div>
|
||||
</header>
|
||||
<div
|
||||
class="MuiBox-root css-31l7gp"
|
||||
>
|
||||
<div
|
||||
aria-label="Cover Letter"
|
||||
class="MuiBox-root css-31l7gp"
|
||||
role="group"
|
||||
tabindex="-1"
|
||||
>
|
||||
<span
|
||||
aria-atomic="true"
|
||||
aria-live="polite"
|
||||
class="MuiBox-root css-ty8jgw"
|
||||
role="status"
|
||||
>
|
||||
Content loaded.
|
||||
</span>
|
||||
<div
|
||||
class="MuiStack-root css-1sazv7p-MuiStack-root"
|
||||
>
|
||||
<div
|
||||
class="MuiTabs-root css-jhczcq-MuiTabs-root"
|
||||
>
|
||||
<div
|
||||
class="MuiTabs-scroller MuiTabs-fixed css-s2t35c-MuiTabs-scroller"
|
||||
style="overflow: hidden; margin-bottom: 0px;"
|
||||
>
|
||||
<div
|
||||
aria-label="Letter workspace"
|
||||
class="MuiTabs-list MuiTabs-flexContainer css-hzcega-MuiTabs-list"
|
||||
role="tablist"
|
||||
>
|
||||
<button
|
||||
aria-controls="_r_1l_-write-panel"
|
||||
aria-selected="true"
|
||||
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary MuiTab-fullWidth Mui-selected css-1yf2fw4-MuiButtonBase-root-MuiTab-root"
|
||||
id="_r_1l_-write"
|
||||
role="tab"
|
||||
tabindex="0"
|
||||
type="button"
|
||||
>
|
||||
Write
|
||||
</button>
|
||||
<button
|
||||
aria-controls="_r_1l_-preview-panel"
|
||||
aria-selected="false"
|
||||
class="MuiButtonBase-root MuiTab-root MuiTab-textColorPrimary MuiTab-fullWidth css-1yf2fw4-MuiButtonBase-root-MuiTab-root"
|
||||
id="_r_1l_-preview"
|
||||
role="tab"
|
||||
tabindex="-1"
|
||||
type="button"
|
||||
>
|
||||
Preview
|
||||
</button>
|
||||
</div>
|
||||
<span
|
||||
class="MuiTabs-indicator css-1qltlow-MuiTabs-indicator"
|
||||
style="left: 0px; width: 0px;"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="MuiBox-root css-1fh8hog"
|
||||
data-letter-studio-layout="true"
|
||||
>
|
||||
<div
|
||||
aria-labelledby="_r_1l_-write"
|
||||
class="MuiBox-root css-31l7gp"
|
||||
id="_r_1l_-write-panel"
|
||||
role="tabpanel"
|
||||
>
|
||||
<div
|
||||
class="MuiStack-root css-1ad9fit-MuiStack-root"
|
||||
>
|
||||
<h4
|
||||
class="MuiTypography-root MuiTypography-subtitle2 css-1mb4twe-MuiTypography-root"
|
||||
>
|
||||
Document details
|
||||
</h4>
|
||||
<div
|
||||
class="MuiStack-root css-pex525-MuiStack-root"
|
||||
>
|
||||
<button
|
||||
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary Mui-disabled MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1dn15bh-MuiButtonBase-root-MuiButton-root"
|
||||
disabled=""
|
||||
tabindex="-1"
|
||||
type="button"
|
||||
>
|
||||
Copy contact from CV
|
||||
</button>
|
||||
<button
|
||||
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary Mui-disabled MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1dn15bh-MuiButtonBase-root-MuiButton-root"
|
||||
disabled=""
|
||||
tabindex="-1"
|
||||
type="button"
|
||||
>
|
||||
Match CV design
|
||||
...
|
||||
|
||||
972 | const reads = mockedApi.get.mock.calls.length;
|
||||
973 | changeLanguage(to);
|
||||
> 974 | expect(screen.getByRole('dialog', { name: copy('assetsRestoreDiscardTitle') })).toBe(dialog);
|
||||
| ^
|
||||
975 | expect(dialog).toHaveAccessibleDescription(copy('assetsRestoreDiscardMessage'));
|
||||
976 | expect(within(dialog).getByRole('button', { name: copy('assetsRestoreConfirm') })).toBeEnabled();
|
||||
977 | expect(mockedApi.post).not.toHaveBeenCalled(); expect(mockedApi.put).not.toHaveBeenCalled();
|
||||
|
||||
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/application-assets.test.tsx:974:17)
|
||||
|
||||
Test Suites: 1 failed, 1 total
|
||||
Tests: 2 failed, 56 skipped, 58 total
|
||||
Snapshots: 0 total
|
||||
Time: 5.529 s
|
||||
Ran all test suites matching src/application-assets.test.tsx with tests matching "pending letter history restore follows".
|
||||
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\letter-restore-dialog-red-corrected.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