Files
jobtrackingapp/docs/ui-modernisation/visual-correction/evidence/mail-review-counts/RED-native.txt
T

178 lines
18 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

> job-tracker-ui@0.1.0 test
> jest --runInBand gmail-review-page.test.tsx -t correct review counts
node.exe : FAIL src/gmail-review-page.test.tsx (6.736 s)
At line:1 char:1
+ & "C:\Program Files\nodejs/node.exe" "C:\Program Files\nodejs/node_mo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (FAIL src/gmail-...t.tsx (6.736 s):String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
● GmailReviewPage › uses the correct review counts for 1 on a live language switch
Unable to find an element with the text: 1 candidate thread. This could be because the text is broken up by
multiple elements. In this case, you can provide a function for your text matcher to make your matcher more flexible.
Ignored nodes: comments, script, style
<body>
<div>
<section
aria-labelledby="_r_b_"
class="MuiBox-root css-17o4ohi"
>
<header
class="MuiBox-root css-163u82n"
>
<div
class="MuiBox-root css-14m33b5"
>
<h1
class="MuiTypography-root MuiTypography-pageTitle css-uf4832-MuiTypography-root"
id="_r_b_"
>
Gmail review queue
</h1>
<p
class="MuiTypography-root MuiTypography-pageDescription
css-1sqgc3a-MuiTypography-root"
>
Manual sync, high-confidence auto-linking, medium-confidence review, and suggested jobs from
unmatched Gmail threads.
</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"
>
Run manual sync
</button>
<button
class="MuiButtonBase-root MuiButton-root MuiButton-outlined MuiButton-outlinedPrimary
MuiButton-sizeMedium MuiButton-outlinedSizeMedium MuiButton-colorPrimary MuiButton-root MuiButton-outlined
MuiButton-outlinedPrimary MuiButton-sizeMedium MuiButton-outlinedSizeMedium MuiButton-colorPrimary
css-1g6yn02-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
Refresh
</button>
<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"
>
Back to inbox
</button>
</div>
</header>
<div
aria-label="Gmail review queue"
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="MuiBox-root css-1prrn6n"
>
<div
class="MuiChip-root MuiChip-outlined MuiChip-sizeMedium MuiChip-colorDefault
MuiChip-outlinedDefault css-1jinvff-MuiChip-root"
>
<span
class="MuiChip-label MuiChip-labelMedium css-16cgrcw-MuiChip-label"
>
Filter: All
</span>
</div>
<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"
>
All
</button>
<button
aria-pressed="false"
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary
MuiButton-sizeSmall MuiButton-textSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary
MuiButton-sizeSmall MuiButton-textSizeSmall MuiButton-colorPrimary css-3defe9-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
Auto-link
</button>
<button
aria-pressed="false"
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary
MuiButton-sizeSmall MuiButton-textSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary
MuiButton-sizeSmall MuiButton-textSizeSmall MuiButton-colorPrimary css-3defe9-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
Review
</button>
<button
aria-pressed="false"
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary
MuiButton-sizeSmall MuiButton-textSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary
MuiButton-sizeSmall MuiButton-textSizeSmall MuiButton-colorPrimary css-3defe9-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
Unmatched
</button>
<button
aria-pressed="false"
class="MuiButtonBase-root MuiButton-root MuiButton-text MuiButton-textPrimary
MuiButton-sizeSmall MuiButton-textSizeSmall MuiButton-colorPrimary MuiButton-root MuiButton-text MuiButton-textPrimary
MuiButton-sizeSmall MuiButton-textSizeSmall MuiButton-colorPrimary css-3defe9-MuiButtonBase-root-MuiButton-root"
tabindex="0"
type="button"
>
Suggested
</button>
<button...
236 | mockedApi.get.mockImplementation((url: string) => Promise.resolve({ data: url ===
'/gmail/review-candidates' ? reviewQueue(threads) : { count, items } } as any));
237 | renderPage();
> 238 | await screen.findByText(candidatesEn);
| ^
239 | if (count) {
240 | expect(screen.getByText(jobsEn)).toBeVisible();
241 | expect(threadRow('Synthetic review 0').getByText(`${messagesEn} ·
${copy('gmailReviewRouteReview')}`)).toBeVisible();
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 findByText (src/gmail-review-page.test.tsx:238:18)
Test Suites: 1 failed, 1 total
Tests: 1 failed, 7 skipped, 2 passed, 10 total
Snapshots: 0 total
Time: 7.649 s
Ran all test suites matching gmail-review-page.test.tsx with tests matching "correct review counts".