fix(ui-byline): remove figure and figcaption #4592
pr-validation.yml
on: pull_request
Lint commit msg + code
4m 19s
Vitest unit tests
6m 27s
Cypress component tests
8m 10s
Legacy unit tests
4m 30s
Annotations
2 errors
|
packages/ui-byline/src/Byline/__new-tests__/Byline.test.tsx > <Byline /> > should render a figure by default:
packages/ui-byline/src/Byline/__new-tests__/Byline.test.tsx#L133
TestingLibraryElementError: Unable to find an accessible element with the role "figure"
Here are the accessible roles:
presentation:
Name "":
<img
alt=""
src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
/>
--------------------------------------------------
Ignored nodes: comments, script, style
<body>
<div>
<span
class="css-kqa2br-byline css-h34iz2-view"
dir="ltr"
>
<div
class="css-38jyso-byline__figure"
>
<img
alt=""
src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
/>
</div>
<div
class="css-1waojem-byline__caption"
>
<span
class="css-14ypku3-byline__title"
>
Test-title
</span>
<div
class="css-1d60gjd-byline__description"
>
Test-description
</div>
</div>
</span>
</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
❯ node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ packages/ui-byline/src/Byline/__new-tests__/Byline.test.tsx:133:34
|
|
Vitest unit tests
Process completed with exit code 1.
|