fix(releases): blocking UI elements that allow for adding documents to inactive releases #27283
Annotations
2 errors
src/core/releases/tool/overview/__tests__/ReleasesOverview.test.tsx > ReleasesOverview > when loading releases > does not allow for switching between history modes:
packages/sanity/src/core/releases/tool/overview/__tests__/ReleasesOverview.test.tsx#L102
TestingLibraryElementError: Unable to find an element with the text: Open. 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-etPtWW jFVRoR"
data-testid="loading-block"
>
<div
class="sc-dpBQxM koegQW sc-cEzcPc iBCSov sc-iPHsxv jXHsCg"
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>
<div
data-portal=""
/>
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
<div
class="sc-etPtWW jFVRoR"
data-testid="loading-block"
>
<div
class="sc-dpBQxM koegQW sc-cEzcPc iBCSov sc-iPHsxv jXHsCg"
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>
<div
data-portal=""
/>
</body>
</html>...
❯ Proxy.waitFor ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/core/releases/tool/overview/__tests__/ReleasesOverview.test.tsx:102:13
|
Test (ubuntu-latest / node 18)
Process completed with exit code 1.
|