Correctly format the measurement entity status end dates in the measu… #23132
Annotations
3 errors
|
npm install, build, and test:
components/frontend/src/source/SourceEntity.test.jsx#L87
TestingLibraryElementError: Unable to find an element with the text: /01\/01\/2000/. 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>
<table
class="MuiTable-root css-1xwxv7r-MuiTable-root"
>
<tbody
class="MuiTableBody-root css-gmh7jj-MuiTableBody-root"
>
<tr
class="MuiTableRow-root MuiTableRow-hover warning_status css-14s2h72-MuiTableRow-root"
style="max-height: 100px; overflow: auto;"
>
<td
class="MuiTableCell-root MuiTableCell-body MuiTableCell-alignCenter MuiTableCell-sizeMedium css-5uomc5-MuiTableCell-root"
>
<button
aria-label="Expand/collapse"
class="MuiButtonBase-root MuiIconButton-root MuiIconButton-sizeMedium css-53g0n7-MuiButtonBase-root-MuiIconButton-root"
tabindex="0"
type="button"
>
<svg
aria-hidden="true"
class="MuiSvgIcon-root MuiSvgIcon-fontSizeMedium css-2rvbj4-MuiSvgIcon-root"
data-testid="ArrowRightIcon"
focusable="false"
title="expand"
viewBox="0 0 24 24"
>
<path
d="m10 17 5-5-5-5z"
/>
</svg>
</button>
</td>
<td
class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-mbbdxc-MuiTableCell-root"
>
Fixed
</td>
<td
class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-mbbdxc-MuiTableCell-root"
>
1/1/00
(
<time
datetime="2000-01-01T00:00:00.000Z"
title="2000-01-01 00:00"
>
25 years ago
</time>
)
</td>
<td
class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-mbbdxc-MuiTableCell-root"
>
<div
class="with-html"
style="word-break: break-word; overflow: auto; min-height: 15px; height: 0px;"
>
Because
</div>
</td>
<td
class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-mbbdxc-MuiTableCell-root"
/>
<td
class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-mbbdxc-MuiTableCell-root"
>
<div
style="word-break: break-word;"
>
good
</div>
</td>
<td
class="MuiTableCell-root MuiTableCell-body MuiTableCell-sizeMedium css-mbbdxc-MuiTableCell-root"
>
<div
style="word-break: break-word;"
>
bad
</div>
</td>
</tr>
</tbody>
</table>
</div>
</body>
❯ Object.getElementError node_modules/@testing-library/dom/dist/config.js:37:19
❯ node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ getAllByText node_modules/@testing-library/dom/dist/query-helpers.js:109:15
❯ src/source/SourceEntity.test.jsx:87:19
|
npm install, build, and test
Process completed with exit code 1.
|
Loading