1004 lines
40 KiB
Plaintext
1004 lines
40 KiB
Plaintext
FAIL src/cv-builder-page.test.tsx
|
|
● pending CV rename follows en to nb while preserving its decision and draft
|
|
|
|
TestingLibraryElementError: Unable to find an accessible element with the role "dialog" and name "Gi CV-en nytt navn"
|
|
|
|
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 "Rename CV":
|
|
<div
|
|
aria-describedby="_r_2_"
|
|
aria-labelledby="_r_5_"
|
|
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 "Rename CV":
|
|
<h2
|
|
class="MuiTypography-root MuiTypography-h6 MuiDialogTitle-root css-rcehg8-MuiTypography-root-MuiDialogTitle-root"
|
|
id="_r_5_"
|
|
/>
|
|
|
|
--------------------------------------------------
|
|
paragraph:
|
|
|
|
Name "":
|
|
<p
|
|
class="MuiTypography-root MuiTypography-body1 css-1pasqkq-MuiTypography-root"
|
|
id="_r_2_"
|
|
/>
|
|
|
|
Name "":
|
|
<p
|
|
class="MuiFormHelperText-root MuiFormHelperText-sizeMedium MuiFormHelperText-contained Mui-focused MuiFormHelperText-filled css-1h0qynx-MuiFormHelperText-root"
|
|
id="_r_8_-helper-text"
|
|
/>
|
|
|
|
--------------------------------------------------
|
|
textbox:
|
|
|
|
Name "Give this CV a clear name.":
|
|
<input
|
|
aria-describedby="_r_8_-helper-text"
|
|
aria-invalid="false"
|
|
aria-labelledby="_r_2_"
|
|
class="MuiInputBase-input MuiOutlinedInput-input css-hafeiy-MuiInputBase-input-MuiOutlinedInput-input"
|
|
id="_r_8_"
|
|
maxlength="180"
|
|
type="text"
|
|
value="Søknad 東京 <draft>"
|
|
/>
|
|
|
|
--------------------------------------------------
|
|
button:
|
|
|
|
Name "Avbryt":
|
|
<button
|
|
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1dn15bh-MuiButtonBase-root-MuiButton-root"
|
|
tabindex="0"
|
|
type="button"
|
|
/>
|
|
|
|
Name "Rename":
|
|
<button
|
|
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary css-83fk99-MuiButtonBase-root-MuiButton-root"
|
|
tabindex="0"
|
|
type="button"
|
|
/>
|
|
|
|
--------------------------------------------------
|
|
|
|
Ignored nodes: comments, script, style
|
|
<body
|
|
style="padding-right: 1024px; overflow: hidden;"
|
|
>
|
|
<div
|
|
aria-hidden="true"
|
|
>
|
|
<div
|
|
aria-label="CV-bygger"
|
|
class="MuiBox-root css-1t5ilcs"
|
|
role="region"
|
|
tabindex="-1"
|
|
>
|
|
<header
|
|
class="MuiBox-root css-163u82n"
|
|
>
|
|
<div
|
|
class="MuiBox-root css-14m33b5"
|
|
>
|
|
<h2
|
|
class="MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"
|
|
>
|
|
Dine CV-er
|
|
</h2>
|
|
<p
|
|
class="MuiTypography-root MuiTypography-pageDescription css-1sqgc3a-MuiTypography-root"
|
|
>
|
|
Lag profesjonelle, jobbtilpassede CV-er fra én pålitelig karriereprofil. Hver versjon beholder sin egen mal, sine innholdsvalg og sin historikk.
|
|
</p>
|
|
</div>
|
|
<div
|
|
class="MuiBox-root css-li2ax9"
|
|
>
|
|
<button
|
|
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary css-83fk99-MuiButtonBase-root-MuiButton-root"
|
|
tabindex="0"
|
|
type="button"
|
|
>
|
|
<span
|
|
class="MuiButton-icon MuiButton-startIcon MuiButton-iconSizeMedium css-1sh91j5-MuiButton-startIcon"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1umw9bq-MuiSvgIcon-root"
|
|
data-testid="AddIcon"
|
|
focusable="false"
|
|
viewBox="0 0 24 24"
|
|
>
|
|
<path
|
|
d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"
|
|
/>
|
|
</svg>
|
|
</span>
|
|
Ny CV
|
|
</button>
|
|
</div>
|
|
</header>
|
|
<span
|
|
aria-atomic="true"
|
|
aria-live="polite"
|
|
class="MuiBox-root css-ty8jgw"
|
|
role="status"
|
|
>
|
|
Innhold lastet.
|
|
</span>
|
|
<div
|
|
class="MuiBox-root css-1hvvpy2"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-label="Åpne Frontend CV"
|
|
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation1 css-1l1dho7-MuiPaper-root"
|
|
role="link"
|
|
style="--Paper-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12);"
|
|
tabindex="0"
|
|
>
|
|
<div
|
|
aria-hidden="true"
|
|
class="MuiBox-root css-icegri"
|
|
>
|
|
<span
|
|
class="MuiTypography-root MuiTypography-caption css-1q9sz8n-MuiTypography-root"
|
|
>
|
|
Forhåndsvisning utilgjengelig
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="MuiStack-root css-1kfnso-MuiStack-root"
|
|
>
|
|
<h3
|
|
class="MuiTypography-root MuiTypography-sectionTitle css-1dqyl8x-MuiTypography-root"
|
|
>
|
|
Frontend CV
|
|
</h3>
|
|
<button
|
|
aria-haspopup="menu"
|
|
aria-label="Handlinger for Frontend CV"
|
|
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeSmall css-155wbr6-MuiButtonBase-root-MuiIconButton-root"
|
|
tabindex="0"
|
|
type="button"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-120dh41-MuiSvgIcon-root"
|
|
data-testid="MoreVertIcon"
|
|
focusable="false"
|
|
viewBox="0 0 24 24"
|
|
>
|
|
<path
|
|
d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"
|
|
/>
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
<div
|
|
class="MuiStack-root css-plbfmu-MuiStack-root"
|
|
>
|
|
<div
|
|
class="MuiChip-root MuiChip-filled MuiChip-sizeSmall MuiChip-colorDefault MuiChip-filledDefault css-in90na-MuiChip-root"
|
|
>
|
|
<span
|
|
class="MuiChip-label MuiChip-labelSmall css-eccknh-MuiChip-label"
|
|
>
|
|
Moderne
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"
|
|
>
|
|
<span
|
|
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
|
|
>
|
|
EN
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="MuiChip-root MuiChip-filled MuiChip-sizeSmall MuiChip-colorPrimary MuiChip-filledPrimary css-k63g1y-MuiChip-root"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiChip-i...
|
|
|
|
125 | const reads = mockedApi.get.mock.calls.length;
|
|
126 | await act(async () => { window.dispatchEvent(new StorageEvent('storage', { key: 'uiLanguage', newValue: to })); });
|
|
> 127 | expect(screen.getByRole('dialog', { name: translations[to][titleKey] })).toBe(opened);
|
|
| ^
|
|
128 | expect(opened).toHaveAccessibleDescription(action === 'rename' ? translations[to].cvDashboardRenameMessage : translations[to].cvDashboardDeleteMessage.replace('{name}', existingCv.name));
|
|
129 | expect(within(opened).getByRole('button', { name: translations[to][labelKey] })).toBeVisible();
|
|
130 | if (input) {
|
|
|
|
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-builder-page.test.tsx:127:17)
|
|
|
|
● pending CV rename follows nb to en while preserving its decision and draft
|
|
|
|
TestingLibraryElementError: Unable to find an accessible element with the role "dialog" and name "Rename CV"
|
|
|
|
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 "Gi CV-en nytt navn":
|
|
<div
|
|
aria-describedby="_r_d_"
|
|
aria-labelledby="_r_g_"
|
|
aria-modal="true"
|
|
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation24 MuiDialog-paper MuiDialog-paperScrollPaper MuiDialog-paperWidthXs MuiDialog-paperFullWidth css-n24a7g-MuiPaper-root-MuiDialog-paper"
|
|
role="dialog"
|
|
style="--Paper-shadow: 0px 11px 15px -7px rgba(0,0,0,0.2),0px 24px 38px 3px rgba(0,0,0,0.14),0px 9px 46px 8px rgba(0,0,0,0.12);"
|
|
/>
|
|
|
|
--------------------------------------------------
|
|
heading:
|
|
|
|
Name "Gi CV-en nytt navn":
|
|
<h2
|
|
class="MuiTypography-root MuiTypography-h6 MuiDialogTitle-root css-rcehg8-MuiTypography-root-MuiDialogTitle-root"
|
|
id="_r_g_"
|
|
/>
|
|
|
|
--------------------------------------------------
|
|
paragraph:
|
|
|
|
Name "":
|
|
<p
|
|
class="MuiTypography-root MuiTypography-body1 css-1pasqkq-MuiTypography-root"
|
|
id="_r_d_"
|
|
/>
|
|
|
|
Name "":
|
|
<p
|
|
class="MuiFormHelperText-root MuiFormHelperText-sizeMedium MuiFormHelperText-contained Mui-focused MuiFormHelperText-filled css-1h0qynx-MuiFormHelperText-root"
|
|
id="_r_j_-helper-text"
|
|
/>
|
|
|
|
--------------------------------------------------
|
|
textbox:
|
|
|
|
Name "Gi denne CV-en et tydelig navn.":
|
|
<input
|
|
aria-describedby="_r_j_-helper-text"
|
|
aria-invalid="false"
|
|
aria-labelledby="_r_d_"
|
|
class="MuiInputBase-input MuiOutlinedInput-input css-hafeiy-MuiInputBase-input-MuiOutlinedInput-input"
|
|
id="_r_j_"
|
|
maxlength="180"
|
|
type="text"
|
|
value="Søknad 東京 <draft>"
|
|
/>
|
|
|
|
--------------------------------------------------
|
|
button:
|
|
|
|
Name "Cancel":
|
|
<button
|
|
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1dn15bh-MuiButtonBase-root-MuiButton-root"
|
|
tabindex="0"
|
|
type="button"
|
|
/>
|
|
|
|
Name "Gi nytt navn":
|
|
<button
|
|
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary css-83fk99-MuiButtonBase-root-MuiButton-root"
|
|
tabindex="0"
|
|
type="button"
|
|
/>
|
|
|
|
--------------------------------------------------
|
|
|
|
Ignored nodes: comments, script, style
|
|
<body
|
|
style="padding-right: 1024px; overflow: hidden;"
|
|
>
|
|
<div
|
|
aria-hidden="true"
|
|
>
|
|
<div
|
|
aria-label="CV Builder"
|
|
class="MuiBox-root css-1t5ilcs"
|
|
role="region"
|
|
tabindex="-1"
|
|
>
|
|
<header
|
|
class="MuiBox-root css-163u82n"
|
|
>
|
|
<div
|
|
class="MuiBox-root css-14m33b5"
|
|
>
|
|
<h2
|
|
class="MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"
|
|
>
|
|
Your CVs
|
|
</h2>
|
|
<p
|
|
class="MuiTypography-root MuiTypography-pageDescription css-1sqgc3a-MuiTypography-root"
|
|
>
|
|
Build polished, job-specific resumes from one trusted career profile. Every version keeps its own template, content choices and history.
|
|
</p>
|
|
</div>
|
|
<div
|
|
class="MuiBox-root css-li2ax9"
|
|
>
|
|
<button
|
|
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary css-83fk99-MuiButtonBase-root-MuiButton-root"
|
|
tabindex="0"
|
|
type="button"
|
|
>
|
|
<span
|
|
class="MuiButton-icon MuiButton-startIcon MuiButton-iconSizeMedium css-1sh91j5-MuiButton-startIcon"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1umw9bq-MuiSvgIcon-root"
|
|
data-testid="AddIcon"
|
|
focusable="false"
|
|
viewBox="0 0 24 24"
|
|
>
|
|
<path
|
|
d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"
|
|
/>
|
|
</svg>
|
|
</span>
|
|
New CV
|
|
</button>
|
|
</div>
|
|
</header>
|
|
<span
|
|
aria-atomic="true"
|
|
aria-live="polite"
|
|
class="MuiBox-root css-ty8jgw"
|
|
role="status"
|
|
>
|
|
Content loaded.
|
|
</span>
|
|
<div
|
|
class="MuiBox-root css-1hvvpy2"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-label="Open Frontend CV"
|
|
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation1 css-1l1dho7-MuiPaper-root"
|
|
role="link"
|
|
style="--Paper-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12);"
|
|
tabindex="0"
|
|
>
|
|
<div
|
|
aria-hidden="true"
|
|
class="MuiBox-root css-icegri"
|
|
>
|
|
<span
|
|
class="MuiTypography-root MuiTypography-caption css-1q9sz8n-MuiTypography-root"
|
|
>
|
|
Preview unavailable
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="MuiStack-root css-1kfnso-MuiStack-root"
|
|
>
|
|
<h3
|
|
class="MuiTypography-root MuiTypography-sectionTitle css-1dqyl8x-MuiTypography-root"
|
|
>
|
|
Frontend CV
|
|
</h3>
|
|
<button
|
|
aria-haspopup="menu"
|
|
aria-label="Actions for Frontend CV"
|
|
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeSmall css-155wbr6-MuiButtonBase-root-MuiIconButton-root"
|
|
tabindex="0"
|
|
type="button"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-120dh41-MuiSvgIcon-root"
|
|
data-testid="MoreVertIcon"
|
|
focusable="false"
|
|
viewBox="0 0 24 24"
|
|
>
|
|
<path
|
|
d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"
|
|
/>
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
<div
|
|
class="MuiStack-root css-plbfmu-MuiStack-root"
|
|
>
|
|
<div
|
|
class="MuiChip-root MuiChip-filled MuiChip-sizeSmall MuiChip-colorDefault MuiChip-filledDefault css-in90na-MuiChip-root"
|
|
>
|
|
<span
|
|
class="MuiChip-label MuiChip-labelSmall css-eccknh-MuiChip-label"
|
|
>
|
|
Modern
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"
|
|
>
|
|
<span
|
|
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
|
|
>
|
|
EN
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="MuiChip-root MuiChip-filled MuiChip-sizeSmall MuiChip-colorPrimary MuiChip-filledPrimary css-k63g1y-MuiChip-root"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiChip-icon MuiChip-iconSmall ...
|
|
|
|
125 | const reads = mockedApi.get.mock.calls.length;
|
|
126 | await act(async () => { window.dispatchEvent(new StorageEvent('storage', { key: 'uiLanguage', newValue: to })); });
|
|
> 127 | expect(screen.getByRole('dialog', { name: translations[to][titleKey] })).toBe(opened);
|
|
| ^
|
|
128 | expect(opened).toHaveAccessibleDescription(action === 'rename' ? translations[to].cvDashboardRenameMessage : translations[to].cvDashboardDeleteMessage.replace('{name}', existingCv.name));
|
|
129 | expect(within(opened).getByRole('button', { name: translations[to][labelKey] })).toBeVisible();
|
|
130 | if (input) {
|
|
|
|
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-builder-page.test.tsx:127:17)
|
|
|
|
● pending CV delete follows en to nb while preserving its decision and draft
|
|
|
|
TestingLibraryElementError: Unable to find an accessible element with the role "dialog" and name "Slett CV"
|
|
|
|
Here are the accessible roles:
|
|
|
|
presentation:
|
|
|
|
Name "":
|
|
<div
|
|
class="MuiDialog-root MuiModal-root css-1oaxuzu-MuiModal-root-MuiDialog-root"
|
|
role="presentation"
|
|
/>
|
|
|
|
Name "":
|
|
<div
|
|
class="MuiDialog-container MuiDialog-scrollPaper css-19do60a-MuiDialog-container"
|
|
role="presentation"
|
|
style="opacity: 1; transition: opacity 225ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;"
|
|
tabindex="-1"
|
|
/>
|
|
|
|
--------------------------------------------------
|
|
dialog:
|
|
|
|
Name "Delete CV":
|
|
<div
|
|
aria-describedby="_r_m_"
|
|
aria-labelledby="_r_n_"
|
|
aria-modal="true"
|
|
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation24 MuiDialog-paper MuiDialog-paperScrollPaper MuiDialog-paperWidthXs MuiDialog-paperFullWidth css-n24a7g-MuiPaper-root-MuiDialog-paper"
|
|
role="dialog"
|
|
style="--Paper-shadow: 0px 11px 15px -7px rgba(0,0,0,0.2),0px 24px 38px 3px rgba(0,0,0,0.14),0px 9px 46px 8px rgba(0,0,0,0.12);"
|
|
/>
|
|
|
|
--------------------------------------------------
|
|
heading:
|
|
|
|
Name "Delete CV":
|
|
<h2
|
|
class="MuiTypography-root MuiTypography-h6 MuiDialogTitle-root css-rcehg8-MuiTypography-root-MuiDialogTitle-root"
|
|
id="_r_n_"
|
|
/>
|
|
|
|
--------------------------------------------------
|
|
region:
|
|
|
|
Name "Delete CV":
|
|
<div
|
|
aria-labelledby="_r_n_"
|
|
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_m_"
|
|
/>
|
|
|
|
--------------------------------------------------
|
|
button:
|
|
|
|
Name "Avbryt":
|
|
<button
|
|
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary Mui-focusVisible MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1dn15bh-MuiButtonBase-root-MuiButton-root"
|
|
tabindex="0"
|
|
type="button"
|
|
/>
|
|
|
|
Name "Delete CV":
|
|
<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
|
|
aria-label="CV-bygger"
|
|
class="MuiBox-root css-1t5ilcs"
|
|
role="region"
|
|
tabindex="-1"
|
|
>
|
|
<header
|
|
class="MuiBox-root css-163u82n"
|
|
>
|
|
<div
|
|
class="MuiBox-root css-14m33b5"
|
|
>
|
|
<h2
|
|
class="MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"
|
|
>
|
|
Dine CV-er
|
|
</h2>
|
|
<p
|
|
class="MuiTypography-root MuiTypography-pageDescription css-1sqgc3a-MuiTypography-root"
|
|
>
|
|
Lag profesjonelle, jobbtilpassede CV-er fra én pålitelig karriereprofil. Hver versjon beholder sin egen mal, sine innholdsvalg og sin historikk.
|
|
</p>
|
|
</div>
|
|
<div
|
|
class="MuiBox-root css-li2ax9"
|
|
>
|
|
<button
|
|
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary css-83fk99-MuiButtonBase-root-MuiButton-root"
|
|
tabindex="0"
|
|
type="button"
|
|
>
|
|
<span
|
|
class="MuiButton-icon MuiButton-startIcon MuiButton-iconSizeMedium css-1sh91j5-MuiButton-startIcon"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1umw9bq-MuiSvgIcon-root"
|
|
data-testid="AddIcon"
|
|
focusable="false"
|
|
viewBox="0 0 24 24"
|
|
>
|
|
<path
|
|
d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"
|
|
/>
|
|
</svg>
|
|
</span>
|
|
Ny CV
|
|
</button>
|
|
</div>
|
|
</header>
|
|
<span
|
|
aria-atomic="true"
|
|
aria-live="polite"
|
|
class="MuiBox-root css-ty8jgw"
|
|
role="status"
|
|
>
|
|
Innhold lastet.
|
|
</span>
|
|
<div
|
|
class="MuiBox-root css-1hvvpy2"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-label="Åpne Frontend CV"
|
|
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation1 css-1l1dho7-MuiPaper-root"
|
|
role="link"
|
|
style="--Paper-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12);"
|
|
tabindex="0"
|
|
>
|
|
<div
|
|
aria-hidden="true"
|
|
class="MuiBox-root css-icegri"
|
|
>
|
|
<span
|
|
class="MuiTypography-root MuiTypography-caption css-1q9sz8n-MuiTypography-root"
|
|
>
|
|
Forhåndsvisning utilgjengelig
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="MuiStack-root css-1kfnso-MuiStack-root"
|
|
>
|
|
<h3
|
|
class="MuiTypography-root MuiTypography-sectionTitle css-1dqyl8x-MuiTypography-root"
|
|
>
|
|
Frontend CV
|
|
</h3>
|
|
<button
|
|
aria-haspopup="menu"
|
|
aria-label="Handlinger for Frontend CV"
|
|
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeSmall css-155wbr6-MuiButtonBase-root-MuiIconButton-root"
|
|
tabindex="0"
|
|
type="button"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-120dh41-MuiSvgIcon-root"
|
|
data-testid="MoreVertIcon"
|
|
focusable="false"
|
|
viewBox="0 0 24 24"
|
|
>
|
|
<path
|
|
d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"
|
|
/>
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
<div
|
|
class="MuiStack-root css-plbfmu-MuiStack-root"
|
|
>
|
|
<div
|
|
class="MuiChip-root MuiChip-filled MuiChip-sizeSmall MuiChip-colorDefault MuiChip-filledDefault css-in90na-MuiChip-root"
|
|
>
|
|
<span
|
|
class="MuiChip-label MuiChip-labelSmall css-eccknh-MuiChip-label"
|
|
>
|
|
Moderne
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"
|
|
>
|
|
<span
|
|
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
|
|
>
|
|
EN
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="MuiChip-root MuiChip-filled MuiChip-sizeSmall MuiChip-colorPrimary MuiChip-filledPrimary css-k63g1y-MuiChip-root"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiChip-i...
|
|
|
|
125 | const reads = mockedApi.get.mock.calls.length;
|
|
126 | await act(async () => { window.dispatchEvent(new StorageEvent('storage', { key: 'uiLanguage', newValue: to })); });
|
|
> 127 | expect(screen.getByRole('dialog', { name: translations[to][titleKey] })).toBe(opened);
|
|
| ^
|
|
128 | expect(opened).toHaveAccessibleDescription(action === 'rename' ? translations[to].cvDashboardRenameMessage : translations[to].cvDashboardDeleteMessage.replace('{name}', existingCv.name));
|
|
129 | expect(within(opened).getByRole('button', { name: translations[to][labelKey] })).toBeVisible();
|
|
130 | if (input) {
|
|
|
|
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-builder-page.test.tsx:127:17)
|
|
|
|
● pending CV delete follows nb to en while preserving its decision and draft
|
|
|
|
TestingLibraryElementError: Unable to find an accessible element with the role "dialog" and name "Delete CV"
|
|
|
|
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 "Slett CV":
|
|
<div
|
|
aria-describedby="_r_10_"
|
|
aria-labelledby="_r_11_"
|
|
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 "Slett CV":
|
|
<h2
|
|
class="MuiTypography-root MuiTypography-h6 MuiDialogTitle-root css-rcehg8-MuiTypography-root-MuiDialogTitle-root"
|
|
id="_r_11_"
|
|
/>
|
|
|
|
--------------------------------------------------
|
|
region:
|
|
|
|
Name "Slett CV":
|
|
<div
|
|
aria-labelledby="_r_11_"
|
|
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_10_"
|
|
/>
|
|
|
|
--------------------------------------------------
|
|
button:
|
|
|
|
Name "Cancel":
|
|
<button
|
|
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary Mui-focusVisible MuiButton-root MuiButton-text MuiButton-textPrimary MuiButton-sizeMedium MuiButton-textSizeMedium MuiButton-colorPrimary css-1dn15bh-MuiButtonBase-root-MuiButton-root"
|
|
tabindex="0"
|
|
type="button"
|
|
/>
|
|
|
|
Name "Slett CV":
|
|
<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
|
|
aria-label="CV Builder"
|
|
class="MuiBox-root css-1t5ilcs"
|
|
role="region"
|
|
tabindex="-1"
|
|
>
|
|
<header
|
|
class="MuiBox-root css-163u82n"
|
|
>
|
|
<div
|
|
class="MuiBox-root css-14m33b5"
|
|
>
|
|
<h2
|
|
class="MuiTypography-root MuiTypography-sectionTitle css-uf4832-MuiTypography-root"
|
|
>
|
|
Your CVs
|
|
</h2>
|
|
<p
|
|
class="MuiTypography-root MuiTypography-pageDescription css-1sqgc3a-MuiTypography-root"
|
|
>
|
|
Build polished, job-specific resumes from one trusted career profile. Every version keeps its own template, content choices and history.
|
|
</p>
|
|
</div>
|
|
<div
|
|
class="MuiBox-root css-li2ax9"
|
|
>
|
|
<button
|
|
class="MuiButtonBase-root MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-contained MuiButton-containedPrimary MuiButton-sizeMedium MuiButton-containedSizeMedium MuiButton-colorPrimary css-83fk99-MuiButtonBase-root-MuiButton-root"
|
|
tabindex="0"
|
|
type="button"
|
|
>
|
|
<span
|
|
class="MuiButton-icon MuiButton-startIcon MuiButton-iconSizeMedium css-1sh91j5-MuiButton-startIcon"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-1umw9bq-MuiSvgIcon-root"
|
|
data-testid="AddIcon"
|
|
focusable="false"
|
|
viewBox="0 0 24 24"
|
|
>
|
|
<path
|
|
d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"
|
|
/>
|
|
</svg>
|
|
</span>
|
|
New CV
|
|
</button>
|
|
</div>
|
|
</header>
|
|
<span
|
|
aria-atomic="true"
|
|
aria-live="polite"
|
|
class="MuiBox-root css-ty8jgw"
|
|
role="status"
|
|
>
|
|
Content loaded.
|
|
</span>
|
|
<div
|
|
class="MuiBox-root css-1hvvpy2"
|
|
>
|
|
<div
|
|
aria-disabled="false"
|
|
aria-label="Open Frontend CV"
|
|
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation1 css-1l1dho7-MuiPaper-root"
|
|
role="link"
|
|
style="--Paper-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12);"
|
|
tabindex="0"
|
|
>
|
|
<div
|
|
aria-hidden="true"
|
|
class="MuiBox-root css-icegri"
|
|
>
|
|
<span
|
|
class="MuiTypography-root MuiTypography-caption css-1q9sz8n-MuiTypography-root"
|
|
>
|
|
Preview unavailable
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="MuiStack-root css-1kfnso-MuiStack-root"
|
|
>
|
|
<h3
|
|
class="MuiTypography-root MuiTypography-sectionTitle css-1dqyl8x-MuiTypography-root"
|
|
>
|
|
Frontend CV
|
|
</h3>
|
|
<button
|
|
aria-haspopup="menu"
|
|
aria-label="Actions for Frontend CV"
|
|
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeSmall css-155wbr6-MuiButtonBase-root-MuiIconButton-root"
|
|
tabindex="0"
|
|
type="button"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class="MuiSvgIcon-root MuiSvgIcon-fontSizeSmall css-120dh41-MuiSvgIcon-root"
|
|
data-testid="MoreVertIcon"
|
|
focusable="false"
|
|
viewBox="0 0 24 24"
|
|
>
|
|
<path
|
|
d="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"
|
|
/>
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
<div
|
|
class="MuiStack-root css-plbfmu-MuiStack-root"
|
|
>
|
|
<div
|
|
class="MuiChip-root MuiChip-filled MuiChip-sizeSmall MuiChip-colorDefault MuiChip-filledDefault css-in90na-MuiChip-root"
|
|
>
|
|
<span
|
|
class="MuiChip-label MuiChip-labelSmall css-eccknh-MuiChip-label"
|
|
>
|
|
Modern
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="MuiChip-root MuiChip-outlined MuiChip-sizeSmall MuiChip-colorDefault MuiChip-outlinedDefault css-1w2bku1-MuiChip-root"
|
|
>
|
|
<span
|
|
class="MuiChip-label MuiChip-labelSmall css-19m61dl-MuiChip-label"
|
|
>
|
|
EN
|
|
</span>
|
|
</div>
|
|
<div
|
|
class="MuiChip-root MuiChip-filled MuiChip-sizeSmall MuiChip-colorPrimary MuiChip-filledPrimary css-k63g1y-MuiChip-root"
|
|
>
|
|
<svg
|
|
aria-hidden="true"
|
|
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium MuiChip-icon MuiChip-iconSmall ...
|
|
|
|
125 | const reads = mockedApi.get.mock.calls.length;
|
|
126 | await act(async () => { window.dispatchEvent(new StorageEvent('storage', { key: 'uiLanguage', newValue: to })); });
|
|
> 127 | expect(screen.getByRole('dialog', { name: translations[to][titleKey] })).toBe(opened);
|
|
| ^
|
|
128 | expect(opened).toHaveAccessibleDescription(action === 'rename' ? translations[to].cvDashboardRenameMessage : translations[to].cvDashboardDeleteMessage.replace('{name}', existingCv.name));
|
|
129 | expect(within(opened).getByRole('button', { name: translations[to][labelKey] })).toBeVisible();
|
|
130 | if (input) {
|
|
|
|
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-builder-page.test.tsx:127:17)
|
|
|
|
Test Suites: 1 failed, 1 total
|
|
Tests: 4 failed, 35 skipped, 39 total
|
|
Snapshots: 0 total
|
|
Time: 4.742 s
|
|
Ran all test suites matching src/cv-builder-page.test.tsx with tests matching "pending CV".
|
|
Test results written to: E:\Storage\Projects\Active\temp docs\jobjakt-local-build\cv-dialog-red.json
|