feat(images): Re-use Site Manager Image design MAASENG-4200 #14727
Annotations
2 errors
src/app/images/components/GenericTable/GenericTable.test.tsx > GenericTable > displays "No data" when the data array is empty:
src/app/images/components/GenericTable/GenericTable.test.tsx#L100
TestingLibraryElementError: Unable to find an element with the text: No data. 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="p-table-dynamic p-table-dynamic--with-select generic-table is-full-height"
>
<thead>
<tr>
<th
class="release"
>
<button
class="p-button--link p-button--table-header"
type="button"
>
Release title
</button>
</th>
<th
class="architecture"
>
Architecture
</th>
<th
class="size"
>
Size
</th>
</tr>
</thead>
<caption>
<div
class="p-strip"
>
<div
class="row"
>
<div
class="col-start-large-4 u-align--left col-8 col-medium-4"
>
<p
class="p-heading--4 u-no-margin--bottom"
>
No images
</p>
</div>
</div>
<div
class="row"
>
<div
class="u-align--left col-start-large-4 col-8 col-medium-4"
>
<p>
There are no images stored in Site Manager at the moment. You can either upload images, or connect to an upstream image source to download images from.
</p>
</div>
</div>
</div>
</caption>
</table>
</div>
</body>
❯ Object.getElementError node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/config.js:37:19
❯ node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ node_modules/@testing-library/react/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/app/images/components/GenericTable/GenericTable.test.tsx:100:19
|
Test
Process completed with exit code 1.
|