feat(sanity): add release types #26257
Annotations
29 errors
src/structure/panes/document/documentPanel/banners/__tests__/DeletedDocumentBanners.test.tsx > DeletedDocumentBanners > shows the fallback document deleted banner when document was not in a bundle:
packages/sanity/src/core/store/_legacy/document/document-store.ts#L39
Error: editOpsOf does not expect a version id.
❯ getIdPairFromPublished src/core/store/_legacy/document/document-store.ts:39:11
❯ Object.editOperations src/core/store/_legacy/document/document-store.ts:174:36
❯ src/core/hooks/useDocumentOperation.ts:14:30
❯ mountMemo ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:16406:19
❯ Object.useMemo ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:16851:16
❯ Proxy.useMemo ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js:1650:21
❯ Module.useDocumentOperation src/core/hooks/useDocumentOperation.ts:13:22
❯ DeletedDocumentBanner src/structure/panes/document/documentPanel/banners/DeletedDocumentBanners.tsx:54:21
❯ renderWithHooks ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:20103:13
|
Test (ubuntu-latest / node 20)
Process completed with exit code 1.
|
src/structure/panes/document/documentPanel/banners/__tests__/DeletedDocumentBanners.test.tsx > DeletedDocumentBanners > shows the fallback document deleted banner when document was not in a bundle:
packages/sanity/src/core/store/_legacy/document/document-store.ts#L39
Error: editOpsOf does not expect a version id.
❯ getIdPairFromPublished src/core/store/_legacy/document/document-store.ts:39:11
❯ Object.editOperations src/core/store/_legacy/document/document-store.ts:174:36
❯ src/core/hooks/useDocumentOperation.ts:14:30
❯ mountMemo ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:16406:19
❯ Object.useMemo ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:16851:16
❯ Proxy.useMemo ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js:1650:21
❯ Module.useDocumentOperation src/core/hooks/useDocumentOperation.ts:13:22
❯ DeletedDocumentBanner src/structure/panes/document/documentPanel/banners/DeletedDocumentBanners.tsx:54:21
❯ renderWithHooks ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:15486:18
❯ mountIndeterminateComponent ../../node_modules/.pnpm/react-dom@18.3.1_react@18.3.1/node_modules/react-dom/cjs/react-dom.development.js:20103:13
|
Test (ubuntu-latest / node 18)
Process completed with exit code 1.
|
src/core/releases/tool/detail/__tests__/ReleaseDetail.test.tsx > ReleaseDetail > when loading bundles > should show a loading spinner:
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
|
src/core/releases/tool/detail/__tests__/ReleaseSummary.test.tsx > ReleaseSummary > lists the release title and description:
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 (ubuntu-latest / node 20)
Process completed with exit code 1.
|
Test (ubuntu-latest / node 18)
Process completed with exit code 1.
|
src/core/releases/tool/detail/__tests__/ReleaseDetail.test.tsx > ReleaseDetail > when loading bundles > should show a loading spinner:
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
|
src/core/releases/tool/detail/__tests__/ReleaseSummary.test.tsx > ReleaseSummary > lists the release title and description:
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 (ubuntu-latest / node 18)
Process completed with exit code 1.
|
Test (ubuntu-latest / node 20)
Process completed with exit code 1.
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should render without crashing:
packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L85
TestingLibraryElementError: Unable to find an element with the text: Untitled. 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>
New Test Schema
<div
class="sc-uYFMi exPSRJ sc-gFtjaa krTxyR"
data-ui="Layer"
style="z-index: 1;"
>
<div
class="sc-ikngxL jNHMFQ"
>
<div
class="sc-keTIit fMofb"
data-as="div"
data-ui="Box"
/>
</div>
</div>
</div>
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
New Test Schema
<div
class="sc-uYFMi exPSRJ sc-gFtjaa krTxyR"
data-ui="Layer"
style="z-index: 1;"
>
<div
class="sc-ikngxL jNHMFQ"
>
<div
class="sc-keTIit fMofb"
data-as="div"
data-ui="Box"
/>
</div>
</div>
</div>
</body>
</html>
❯ Proxy.waitForWrapper ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:85:11
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should render the header title when connectionState is not "connected" and editState has values:
packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L112
TestingLibraryElementError: Unable to find an element with the text: Test Value. 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 />
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
❯ Proxy.waitForWrapper ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:112:11
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should return the value.title if value is provided and no error occurred:
packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L152
TestingLibraryElementError: Unable to find an element with the text: Test Preview Value. 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>
New Test Schema
<div
class="sc-uYFMi exPSRJ sc-gFtjaa krTxyR"
data-ui="Layer"
style="z-index: 1;"
>
<div
class="sc-ikngxL jNHMFQ"
>
<div
class="sc-keTIit fMofb"
data-as="div"
data-ui="Box"
/>
</div>
</div>
</div>
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
New Test Schema
<div
class="sc-uYFMi exPSRJ sc-gFtjaa krTxyR"
data-ui="Layer"
style="z-index: 1;"
>
<div
class="sc-ikngxL jNHMFQ"
>
<div
class="sc-keTIit fMofb"
data-as="div"
data-ui="Box"
/>
</div>
</div>
</div>
</body>
</html>
❯ Proxy.waitForWrapper ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:152:11
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should return "Untitled" if value is not provided and no error occurred:
packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L162
TestingLibraryElementError: Unable to find an element with the text: Untitled. 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>
New Test Schema
<div
class="sc-uYFMi exPSRJ sc-gFtjaa krTxyR"
data-ui="Layer"
style="z-index: 1;"
>
<div
class="sc-ikngxL jNHMFQ"
>
<div
class="sc-keTIit fMofb"
data-as="div"
data-ui="Box"
/>
</div>
</div>
</div>
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
New Test Schema
<div
class="sc-uYFMi exPSRJ sc-gFtjaa krTxyR"
data-ui="Layer"
style="z-index: 1;"
>
<div
class="sc-ikngxL jNHMFQ"
>
<div
class="sc-keTIit fMofb"
data-as="div"
data-ui="Box"
/>
</div>
</div>
</div>
</body>
</html>
❯ Proxy.waitForWrapper ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:162:11
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should return "Error: {error.message}" if an error occurred while getting the preview value:
packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L176
TestingLibraryElementError: Unable to find an element with the text: Error: Test Error. 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>
New Test Schema
<div
class="sc-uYFMi exPSRJ sc-gFtjaa krTxyR"
data-ui="Layer"
style="z-index: 1;"
>
<div
class="sc-ikngxL jNHMFQ"
>
<div
class="sc-keTIit fMofb"
data-as="div"
data-ui="Box"
/>
</div>
</div>
</div>
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
New Test Schema
<div
class="sc-uYFMi exPSRJ sc-gFtjaa krTxyR"
data-ui="Layer"
style="z-index: 1;"
>
<div
class="sc-ikngxL jNHMFQ"
>
<div
class="sc-keTIit fMofb"
data-as="div"
data-ui="Box"
/>
</div>
</div>
</div>
</body>
</html>
❯ Proxy.waitForWrapper ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:176:11
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should call useValuePreview hook with the correct arguments:
packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L185
AssertionError: expected "spy" to be called with arguments: [ { enabled: true, …(2) } ]
Received:
1st spy call:
Array [
Object {
- "enabled": true,
+ "enabled": false,
"schemaType": Object {
"name": "testSchema",
"title": "Test Schema",
},
- "value": Object {
- "title": "Test Value",
- },
+ "value": undefined,
},
]
2nd spy call:
Array [
Object {
- "enabled": true,
+ "enabled": false,
"schemaType": Object {
"name": "testSchema",
"title": "Test Schema",
},
- "value": Object {
- "title": "Test Value",
- },
+ "value": undefined,
},
]
3rd spy call:
Array [
Object {
- "enabled": true,
+ "enabled": false,
"schemaType": Object {
"name": "testSchema",
"title": "Test Schema",
},
- "value": Object {
- "title": "Test Value",
- },
+ "value": undefined,
},
]
4th spy call:
Array [
Object {
- "enabled": true,
+ "enabled": false,
"schemaType": Object {
"name": "testSchema",
"title": "Test Schema",
},
- "value": Object {
- "title": "Test Value",
- },
+ "value": undefined,
},
]
5th spy call:
Array [
Object {
- "enabled": true,
+ "enabled": false,
"schemaType": Object {
"name": "testSchema",
"title": "Test Schema",
},
- "value": Object {
- "title": "Test Value",
- },
+ "value": undefined,
},
]
6th spy call:
Array [
Object {
- "enabled": true,
+ "enabled": false,
"schemaType": Object {
"name": "testSchema",
"title": "Test Schema",
},
- "value": Object {
- "title": "Test Value",
- },
+ "value": undefined,
},
]
7th spy call:
Array [
Object {
- "enabled": true,
+ "enabled": false,
"schemaType": Object {
"name": "testSchema",
"title": "Test Schema",
},
- "value": Object {
- "title": "Test Value",
- },
+ "value": undefined,
},
]
8th spy call:
Array [
Object {
- "enabled": true,
+ "enabled": false,
"schemaType": Object {
"name": "testSchema",
"title": "Test Schema",
},
- "value": Object {
- "title": "Test Value",
- },
+ "value": undefined,
},
]
9th spy call:
Array [
Object {
- "enabled": true,
+ "enabled": false,
"schemaType": Object {
"name": "testSchema",
"title": "Test Schema",
},
- "value": Object {
- "title": "Test Value",
- },
+ "value": undefined,
},
]
10th spy call:
Array [
Object {
- "enabled": true,
+ "enabled": false,
"schemaType": Object {
"name": "testSchema",
"title": "Test Schema",
},
- "value": Object {
- "title": "Test Value",
- },
+ "value": undefined,
},
]
Number of calls: 10
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
New Test Schema
<div
class="sc-uYFMi exPSRJ sc-gFtjaa krTxyR"
data-ui="Layer"
style="z-index: 1;"
>
<div
class="sc-ikngxL jNHMFQ"
>
<div
class="sc-keTIit fMofb"
data-as="div"
data-ui="Box"
/>
</div>
</div>
</div>
</body>
</html>
❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:185:35
❯ runWithExpensiveErrorDiagnosticsDisabled ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/wait-for.js:124:77
❯ Timeout.checkRealTimersCallback ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/wait-for.js:118:16
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should display the value returned by useValuePreview hook correctly when no error occurs:
packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L204
TestingLibraryElementError: Unable to find an element with the text: Test Preview Value. 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>
New Test Schema
<div
class="sc-uYFMi exPSRJ sc-gFtjaa krTxyR"
data-ui="Layer"
style="z-index: 1;"
>
<div
class="sc-ikngxL jNHMFQ"
>
<div
class="sc-keTIit fMofb"
data-as="div"
data-ui="Box"
/>
</div>
</div>
</div>
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
New Test Schema
<div
class="sc-uYFMi exPSRJ sc-gFtjaa krTxyR"
data-ui="Layer"
style="z-index: 1;"
>
<div
class="sc-ikngxL jNHMFQ"
>
<div
class="sc-keTIit fMofb"
data-as="div"
data-ui="Box"
/>
</div>
</div>
</div>
</body>
</html>
❯ Proxy.waitForWrapper ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:204:11
|
Test (ubuntu-latest / node 20)
Process completed with exit code 1.
|
src/core/releases/tool/components/ReleaseMenuButton/__tests__/ReleaseMenuButton.test.tsx > BundleMenuButton > will archive an unarchived bundle:
packages/sanity/src/core/releases/tool/components/ReleaseMenuButton/__tests__/ReleaseMenuButton.test.tsx#L64
TestingLibraryElementError: Unable to find an element by: [data-testid="release-menu-button"]
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/components/ReleaseMenuButton/__tests__/ReleaseMenuButton.test.tsx:64:28
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should render without crashing:
packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L85
TestingLibraryElementError: Unable to find an element with the text: Untitled. 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>
New Test Schema
<div
class="sc-uYFMi exPSRJ sc-gFtjaa krTxyR"
data-ui="Layer"
style="z-index: 1;"
>
<div
class="sc-ikngxL jNHMFQ"
>
<div
class="sc-keTIit fMofb"
data-as="div"
data-ui="Box"
/>
</div>
</div>
</div>
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
New Test Schema
<div
class="sc-uYFMi exPSRJ sc-gFtjaa krTxyR"
data-ui="Layer"
style="z-index: 1;"
>
<div
class="sc-ikngxL jNHMFQ"
>
<div
class="sc-keTIit fMofb"
data-as="div"
data-ui="Box"
/>
</div>
</div>
</div>
</body>
</html>
❯ Proxy.waitForWrapper ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:85:11
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should render the header title when connectionState is not "connected" and editState has values:
packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L112
TestingLibraryElementError: Unable to find an element with the text: Test Value. 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 />
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
</body>
</html>
❯ Proxy.waitForWrapper ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:112:11
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should return the value.title if value is provided and no error occurred:
packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L152
TestingLibraryElementError: Unable to find an element with the text: Test Preview Value. 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>
New Test Schema
<div
class="sc-uYFMi exPSRJ sc-gFtjaa krTxyR"
data-ui="Layer"
style="z-index: 1;"
>
<div
class="sc-ikngxL jNHMFQ"
>
<div
class="sc-keTIit fMofb"
data-as="div"
data-ui="Box"
/>
</div>
</div>
</div>
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
New Test Schema
<div
class="sc-uYFMi exPSRJ sc-gFtjaa krTxyR"
data-ui="Layer"
style="z-index: 1;"
>
<div
class="sc-ikngxL jNHMFQ"
>
<div
class="sc-keTIit fMofb"
data-as="div"
data-ui="Box"
/>
</div>
</div>
</div>
</body>
</html>
❯ Proxy.waitForWrapper ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:152:11
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should return "Untitled" if value is not provided and no error occurred:
packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L162
TestingLibraryElementError: Unable to find an element with the text: Untitled. 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>
New Test Schema
<div
class="sc-uYFMi exPSRJ sc-gFtjaa krTxyR"
data-ui="Layer"
style="z-index: 1;"
>
<div
class="sc-ikngxL jNHMFQ"
>
<div
class="sc-keTIit fMofb"
data-as="div"
data-ui="Box"
/>
</div>
</div>
</div>
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
New Test Schema
<div
class="sc-uYFMi exPSRJ sc-gFtjaa krTxyR"
data-ui="Layer"
style="z-index: 1;"
>
<div
class="sc-ikngxL jNHMFQ"
>
<div
class="sc-keTIit fMofb"
data-as="div"
data-ui="Box"
/>
</div>
</div>
</div>
</body>
</html>
❯ Proxy.waitForWrapper ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:162:11
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should return "Error: {error.message}" if an error occurred while getting the preview value:
packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L176
TestingLibraryElementError: Unable to find an element with the text: Error: Test Error. 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>
New Test Schema
<div
class="sc-uYFMi exPSRJ sc-gFtjaa krTxyR"
data-ui="Layer"
style="z-index: 1;"
>
<div
class="sc-ikngxL jNHMFQ"
>
<div
class="sc-keTIit fMofb"
data-as="div"
data-ui="Box"
/>
</div>
</div>
</div>
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
New Test Schema
<div
class="sc-uYFMi exPSRJ sc-gFtjaa krTxyR"
data-ui="Layer"
style="z-index: 1;"
>
<div
class="sc-ikngxL jNHMFQ"
>
<div
class="sc-keTIit fMofb"
data-as="div"
data-ui="Box"
/>
</div>
</div>
</div>
</body>
</html>
❯ Proxy.waitForWrapper ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:176:11
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should call useValuePreview hook with the correct arguments:
packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L185
AssertionError: expected "spy" to be called with arguments: [ { enabled: true, …(2) } ]
Received:
1st spy call:
Array [
Object {
- "enabled": true,
+ "enabled": false,
"schemaType": Object {
"name": "testSchema",
"title": "Test Schema",
},
- "value": Object {
- "title": "Test Value",
- },
+ "value": undefined,
},
]
2nd spy call:
Array [
Object {
- "enabled": true,
+ "enabled": false,
"schemaType": Object {
"name": "testSchema",
"title": "Test Schema",
},
- "value": Object {
- "title": "Test Value",
- },
+ "value": undefined,
},
]
3rd spy call:
Array [
Object {
- "enabled": true,
+ "enabled": false,
"schemaType": Object {
"name": "testSchema",
"title": "Test Schema",
},
- "value": Object {
- "title": "Test Value",
- },
+ "value": undefined,
},
]
4th spy call:
Array [
Object {
- "enabled": true,
+ "enabled": false,
"schemaType": Object {
"name": "testSchema",
"title": "Test Schema",
},
- "value": Object {
- "title": "Test Value",
- },
+ "value": undefined,
},
]
5th spy call:
Array [
Object {
- "enabled": true,
+ "enabled": false,
"schemaType": Object {
"name": "testSchema",
"title": "Test Schema",
},
- "value": Object {
- "title": "Test Value",
- },
+ "value": undefined,
},
]
6th spy call:
Array [
Object {
- "enabled": true,
+ "enabled": false,
"schemaType": Object {
"name": "testSchema",
"title": "Test Schema",
},
- "value": Object {
- "title": "Test Value",
- },
+ "value": undefined,
},
]
7th spy call:
Array [
Object {
- "enabled": true,
+ "enabled": false,
"schemaType": Object {
"name": "testSchema",
"title": "Test Schema",
},
- "value": Object {
- "title": "Test Value",
- },
+ "value": undefined,
},
]
8th spy call:
Array [
Object {
- "enabled": true,
+ "enabled": false,
"schemaType": Object {
"name": "testSchema",
"title": "Test Schema",
},
- "value": Object {
- "title": "Test Value",
- },
+ "value": undefined,
},
]
9th spy call:
Array [
Object {
- "enabled": true,
+ "enabled": false,
"schemaType": Object {
"name": "testSchema",
"title": "Test Schema",
},
- "value": Object {
- "title": "Test Value",
- },
+ "value": undefined,
},
]
10th spy call:
Array [
Object {
- "enabled": true,
+ "enabled": false,
"schemaType": Object {
"name": "testSchema",
"title": "Test Schema",
},
- "value": Object {
- "title": "Test Value",
- },
+ "value": undefined,
},
]
Number of calls: 10
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
New Test Schema
<div
class="sc-uYFMi exPSRJ sc-gFtjaa krTxyR"
data-ui="Layer"
style="z-index: 1;"
>
<div
class="sc-ikngxL jNHMFQ"
>
<div
class="sc-keTIit fMofb"
data-as="div"
data-ui="Box"
/>
</div>
</div>
</div>
</body>
</html>
❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:185:35
❯ runWithExpensiveErrorDiagnosticsDisabled ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/wait-for.js:124:77
❯ Timeout.checkRealTimersCallback ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/wait-for.js:118:16
|
src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx > DocumentHeaderTitle > should display the value returned by useValuePreview hook correctly when no error occurs:
packages/sanity/src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx#L204
TestingLibraryElementError: Unable to find an element with the text: Test Preview Value. 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>
New Test Schema
<div
class="sc-uYFMi exPSRJ sc-gFtjaa krTxyR"
data-ui="Layer"
style="z-index: 1;"
>
<div
class="sc-ikngxL jNHMFQ"
>
<div
class="sc-keTIit fMofb"
data-as="div"
data-ui="Box"
/>
</div>
</div>
</div>
</body>
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div>
New Test Schema
<div
class="sc-uYFMi exPSRJ sc-gFtjaa krTxyR"
data-ui="Layer"
style="z-index: 1;"
>
<div
class="sc-ikngxL jNHMFQ"
>
<div
class="sc-keTIit fMofb"
data-as="div"
data-ui="Box"
/>
</div>
</div>
</div>
</body>
</html>
❯ Proxy.waitForWrapper ../../node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/wait-for.js:163:27
❯ src/structure/panes/document/documentPanel/header/perspective/__tests__/DocumentHeaderTitle.test.tsx:204:11
|
Test (ubuntu-latest / node 18)
Process completed with exit code 1.
|