feat(sanity): add release types #26257
Annotations
9 errors
Test:
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
|
Test:
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
|
Test:
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
|
Test:
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
|
Test:
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
|
Test:
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
|
Test:
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
|
Test:
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
Process completed with exit code 1.
|
Loading