feat(sanity): add release types #26257
Annotations
3 errors
Test:
packages/sanity/src/core/releases/tool/detail/__tests__/ReleaseDetail.test.tsx#L104
TestingLibraryElementError: Unable to find an element by: [data-testid="mocked-loading-block"]
Ignored nodes: comments, script, style
<body>
<div>
<div
class="sc-iPHsxv jlrHoI"
>
<div
class="sc-dpBQxM igUUXU sc-cEzcPc iBCSov sc-txhaY kZUdIU"
data-ui="Spinner"
>
<span>
<svg
data-sanity-icon="spinner"
fill="none"
height="1em"
viewBox="0 0 25 25"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M4.5 12.5C4.5 16.9183 8.08172 20.5 12.5 20.5C16.9183 20.5 20.5 16.9183 20.5 12.5C20.5 8.08172 16.9183 4.5 12.5 4.5"
stroke="currentColor"
stroke-linejoin="round"
stroke-width="1.2"
/>
</svg>
</span>
</div>
</div>
</div>
</body>
❯ Object.getElementError ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/config.js:37:19
❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/core/releases/tool/detail/__tests__/ReleaseDetail.test.tsx:104:14
|
Test:
packages/sanity/src/core/releases/tool/detail/__tests__/ReleaseSummary.test.tsx#L156
TestingLibraryElementError: Unable to find an element with the text: Release title. 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>
<div
class="sc-iPHsxv jlrHoI"
>
<div
class="sc-dpBQxM igUUXU sc-cEzcPc iBCSov sc-txhaY kZUdIU"
data-ui="Spinner"
>
<span>
<svg
data-sanity-icon="spinner"
fill="none"
height="1em"
viewBox="0 0 25 25"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M4.5 12.5C4.5 16.9183 8.08172 20.5 12.5 20.5C16.9183 20.5 20.5 16.9183 20.5 12.5C20.5 8.08172 16.9183 4.5 12.5 4.5"
stroke="currentColor"
stroke-linejoin="round"
stroke-width="1.2"
/>
</svg>
</span>
</div>
</div>
</div>
</body>
❯ Object.getElementError ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/config.js:37:19
❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/core/releases/tool/detail/__tests__/ReleaseSummary.test.tsx:156:12
|
Test
Process completed with exit code 1.
|
Loading