refactor(sanity): translation cleanup #26949
Annotations
6 errors
Test:
packages/sanity/src/core/releases/components/documentHeader/contextMenu/__tests__/VersionContextMenu.test.tsx#L62
TestingLibraryElementError: Unable to find an element with the text: Copy version to. 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"
>
<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>
</body>
❯ Object.getElementError ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:37:19
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/core/releases/components/documentHeader/contextMenu/__tests__/VersionContextMenu.test.tsx:62:19
|
Test:
packages/sanity/src/core/releases/components/documentHeader/contextMenu/__tests__/VersionContextMenu.test.tsx#L76
TestingLibraryElementError: Unable to find an element with the text: Copy version to. 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"
>
<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>
</body>
❯ Object.getElementError ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:37:19
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/core/releases/components/documentHeader/contextMenu/__tests__/VersionContextMenu.test.tsx:76:28
|
Test:
packages/sanity/src/core/releases/components/documentHeader/contextMenu/__tests__/VersionContextMenu.test.tsx#L104
TestingLibraryElementError: Unable to find an element with the text: Discard version. 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-keTIit cgPgAC sc-fkJXLl dtpxWb"
data-as="div"
data-ui="Menu"
role="menu"
tabindex="-1"
>
<div
class="sc-keTIit gxoNzZ sc-eWPXlR gyYmAo"
data-as="div"
data-ui="Stack"
>
<div>
<button
class="sc-keTIit gxoNzZ sc-irPVuy ciFIju"
data-as="button"
data-ui="MenuItem"
role="menuitem"
tabindex="-1"
type="button"
>
<span
class="sc-keTIit iPjqJc"
data-as="span"
data-ui="Box"
>
<div
class="sc-keTIit gxoNzZ sc-jtQUzJ TBgXL"
data-as="div"
data-ui="Flex"
>
<div
class="sc-keTIit drMYQb"
data-as="div"
data-ui="Box"
>
<div
class="sc-dpBQxM bmiEuK"
data-ui="Text"
>
<span>
<svg
data-sanity-icon="calendar"
fill="none"
height="1em"
viewBox="0 0 25 25"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M5.5 18.5H19.5V6.5H5.5V18.5Z"
stroke="currentColor"
stroke-linejoin="round"
stroke-width="1.2"
/>
<path
d="M16.5 8V4M8.5 8V4M8 12.5H10M8 15.5H10M11.5 12.5H13.5M11.5 15.5H13.5M15 12.5H17M15 15.5H17M12.5 8V4M5.5 9.5H19.5"
stroke="currentColor"
stroke-linejoin="round"
stroke-width="1.2"
/>
</svg>
</span>
</div>
</div>
<div
class="sc-keTIit jgrUsE sc-eWPXlR cyxDhi"
data-as="div"
data-ui="Stack"
>
<div
class="sc-dpBQxM kPPfgn"
data-ui="Text"
>
<span
class="sc-jwIPbr fqkJzH"
>
action.view-release
</span>
</div>
</div>
</div>
</span>
</button>
</div>
<button
aria-pressed="false"
class="sc-keTIit gxoNzZ sc-irPVuy ciFIju"
data-as="button"
data-ui="MenuGroup"
tabindex="-1"
type="button"
>
<div
class="sc-keTIit eOXwdL sc-jtQUzJ jnxrmI"
data-as="div"
data-ui="Flex"
>
<div
class="sc-dpBQxM bmiEuK"
data-ui="Text"
>
<span>
<svg
data-sanity-icon="copy"
fill="none"
height="1em"
viewBox="0 0 25 25"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M8.5 8.5H5.5V20.5H16.5V16.5M19.5 4.5H8.5V16.5H19.5V4.5Z"
stroke="currentColor"
stroke-linejoin="round"
stroke-width="1.2"
/>
</svg>
</span>
</div>
<div
class="sc-keTIit bgfEHC"
data-
|
Test:
packages/sanity/src/core/releases/components/documentHeader/contextMenu/__tests__/VersionContextMenu.test.tsx#L115
TestingLibraryElementError: Unable to find an element with the text: Copy version to. 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"
>
<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>
</body>
❯ Object.getElementError ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:37:19
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/core/releases/components/documentHeader/contextMenu/__tests__/VersionContextMenu.test.tsx:115:28
|
Test:
packages/sanity/src/core/releases/components/documentHeader/contextMenu/__tests__/VersionContextMenu.test.tsx#L127
TestingLibraryElementError: Unable to find an element with the text: Copy version to. 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"
>
<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>
</body>
❯ Object.getElementError ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:37:19
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/core/releases/components/documentHeader/contextMenu/__tests__/VersionContextMenu.test.tsx:127:28
|
Test
Process completed with exit code 1.
|
Loading