Files
jobtrackingapp/docs/ui-modernisation/visual-correction/evidence/application-actions/FIRST-TESTS.txt
T

186 lines
18 KiB
Plaintext


> job-tracker-ui@0.1.0 test
> jest --runInBand job-table-density.test.tsx jobs-view-integration.test.tsx workflow-trust-signals.test.tsx
node.exe : FAIL src/workflow-trust-signals.test.tsx (6.79 s)
At line:1 char:1
+ & "C:\Program Files\nodejs/node.exe" "C:\Program Files\nodejs/node_mo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (FAIL src/workfl...st.tsx (6.79 s):String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
● package-work workflow signals route all overview surfaces to the shared tailored-cv workspace
Unable to find role="button" and name `/build package/i`
Ignored nodes: comments, script, style
<body>
<div>
<div
data-testid="location-indicator"
>
/dashboard
</div>
<div
class="MuiBox-root css-wnyqhk"
>
<div
class="MuiBox-root css-28qbjz"
>
<p
class="MuiTypography-root MuiTypography-body2 css-1qf9eb3-MuiTypography-root"
>
Your tracker today. Activity charts have a separate period.
</p>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary
MuiButton-sizeMedium MuiButton-outlinedSizeMedium MuiButton-colorPrimary Mui-disabled MuiButton-root
MuiButton-outlined MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium MuiButton-colorPrimary
css-1g6yn02-MuiButtonBase-root-MuiButton-root"
disabled=""
tabindex="-1"
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="TuneIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14
4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"
/>
</svg>
</span>
Customize dashboard
</button>
</div>
<div
class="MuiPaper-root MuiPaper-elevation MuiPaper-rounded MuiPaper-elevation0 MuiAlert-root
MuiAlert-colorWarning MuiAlert-standardWarning MuiAlert-standard css-1eljcyo-MuiPaper-root-MuiAlert-root"
role="alert"
style="--Paper-shadow: none;"
>
<div
class="MuiAlert-icon css-1wrdnka-MuiAlert-icon"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeInherit css-1ckov0h-MuiSvgIcon-root"
data-testid="ReportProblemOutlinedIcon"
focusable="false"
viewBox="0 0 24 24"
>
<path
d="M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1
14h-2v2h2v-2zm0-6h-2v4h2v-4z"
/>
</svg>
</div>
<div
class="MuiAlert-message css-zioonp-MuiAlert-message"
>
This layout was saved by a newer version. Reload or update the app before editing.
</div>
<div
class="MuiAlert-action css-rgppqo-MuiAlert-action"
>
<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"
>
Retry
</button>
</div>
</div>
<span
aria-atomic="true"
aria-live="polite"
class="MuiBox-root css-ty8jgw"
role="status"
>
Content loaded.
</span>
<span
aria-atomic="true"
aria-live="polite"
class="MuiBox-root css-ty8jgw"
role="status"
>
Content loaded.
</span>
<div
aria-label="Activity and tag-trend period"
class="MuiBox-root css-1qocved"
role="group"
>
<p
class="MuiTypography-root MuiTypography-body2 css-4olied-MuiTypography-root"
>
Activity and tag-trend period
</p>
<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"
>
6 mo
</button>
<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"
>
12 mo
</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"
>
24 mo
</button>
</div>
<div...
199 | </>);
200 |
> 201 | fireEvent.click(await screen.findByRole('button', { name: /build package/i }));
| ^
202 | await waitFor(() =>
expect(screen.getByTestId('location-indicator')).toHaveTextContent('/jobs/43?section=cv'));
203 | dashboardRender.unmount();
204 |
at waitForWrapper (node_modules/@testing-library/dom/dist/wait-for.js:163:27)
at node_modules/@testing-library/dom/dist/query-helpers.js:86:33
at Object.findByRole (src/workflow-trust-signals.test.tsx:201:32)
Test Suites: 1 failed, 2 passed, 3 total
Tests: 1 failed, 38 passed, 39 total
Snapshots: 0 total
Time: 28.675 s
Ran all test suites matching job-table-density.test.tsx|jobs-view-integration.test.tsx|workflow-trust-signals.test.tsx.