feat(sanity): make Content Releases opt-in #29742
Annotations
26 errors
src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > should have link to releases tool:
packages/sanity/src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx#L62
TestingLibraryElementError: Unable to find an accessible element with the role "link"
Here are the accessible roles:
button:
Name "":
<button
aria-expanded="false"
aria-haspopup="true"
class="StyledButton-sc-aaekt4-0 bhxbNA"
data-disabled="false"
data-testid="global-perspective-menu-button"
data-ui="MenuButton"
id="releases-menu"
type="button"
/>
--------------------------------------------------
Ignored nodes: comments, script, style
<body>
<div>
<div
class="StyledBox-sc-1hhky9f-0 exXHgr StyledCard-sc-osnro2-0 eeHYlY"
data-as="div"
data-scheme="light"
data-tone="default"
data-ui="Card"
style="margin: -1px;"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 cPyFdt"
data-as="div"
data-ui="Flex"
>
<div
style="width: 0px; opacity: 0;"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledCard-sc-osnro2-0 jQaPBc"
data-as="div"
data-scheme="light"
data-tone="default"
data-ui="Card"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 cXHylM"
data-as="div"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 eJSLdC"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 bGghzf"
data-as="div"
data-ui="Box"
style="border-radius: 3px;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<svg
data-sanity-icon="dot"
data-testid="release-avatar-default"
fill="none"
height="1em"
style="--card-icon-color: var(--card-badge-default-icon-color);"
viewBox="0 0 25 25"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<circle
cx="12.5"
cy="12.5"
fill="currentColor"
r="2.5"
stroke="currentColor"
stroke-width="1.2"
/>
</svg>
</span>
</div>
</div>
</div>
<div
class="StyledBox-sc-1hhky9f-0 ikRPOR StyledStack-sc-8dpfq2-0 eTRCsB"
data-as="div"
data-ui="Stack"
>
<div
class="StyledText-sc-11ov82j-0 gsJnDj"
data-ui="Text"
>
<span>
<span
class="SpanWithTextOverflow-sc-ol2i3b-0 DGyqG"
>
Drafts
</span>
</span>
</div>
</div>
</div>
</div>
</div>
<button
aria-expanded="false"
aria-haspopup="true"
class="StyledButton-sc-aaekt4-0 bhxbNA"
data-disabled="false"
data-testid="global-perspective-menu-button"
data-ui="MenuButton"
id="releases-menu"
type="button"
>
<span
class="StyledBox-sc-1hhky9f-0 kUdApj"
data-as="span"
data-ui="Box"
>
<span
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 cZoSSP"
data-as="span"
data-ui="Flex"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
|
src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > global perspective menu > when menu is ready > should list all the releases:
packages/sanity/src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx#L149
TestingLibraryElementError: Unable to find an element with the text: ASAP. 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
<div
aria-labelledby="releases-menu"
class="StyledBox-sc-1hhky9f-0 bFUsLJ StyledMenu-sc-xt0tnv-0 ckFANx sc-eVISfE hdXrSN"
data-as="div"
data-testid="release-menu"
data-ui="Menu"
role="menu"
tabindex="-1"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledStack-sc-8dpfq2-0 cyneTn"
data-as="div"
data-ui="Stack"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-DZDDv ilTvtL"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-ePOEzu CRwsV"
data-as="div"
data-ui="Box"
>
<div
class="sc-cDGbcm XgnXv"
>
<button
aria-pressed="false"
class="StyledBox-sc-1hhky9f-0 fFvGUC Selectable-sc-1w01ang-0 lzRFu"
data-as="button"
data-testid="release-published"
data-ui="MenuItem"
role="menuitem"
tabindex="-1"
type="button"
>
<span
class="StyledBox-sc-1hhky9f-0 bFUsLJ"
data-as="span"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 fLZREU"
data-as="div"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 eJSLdC"
data-as="div"
data-ui="Box"
style="position: relative; z-index: 1;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<div
class="StyledBox-sc-1hhky9f-0 bLtIhs"
data-as="div"
data-ui="Box"
style="border-radius: 3px;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<svg
data-sanity-icon="dot"
data-testid="release-avatar-positive"
fill="none"
height="1em"
style="--card-icon-color: var(--card-badge-positive-icon-color);"
viewBox="0 0 25 25"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<circle
cx="12.5"
cy="12.5"
fill="currentColor"
r="2.5"
stroke="currentColor"
stroke-width="1.2"
/>
</svg>
</span>
</div>
</div>
</span>
</div>
</div>
<div
class="StyledBox-sc-1hhky9f-0 ikRPOR StyledStack-sc-8dpfq2-0 eTRCsB"
data-as="div"
data-ui="Stack"
>
<div
class="StyledText-sc-11ov82j-0 gsJnDj"
data-ui="Text"
>
<span>
|
src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > global perspective menu > when menu is ready > should show the intended release date for intended schedule releases:
packages/sanity/src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx#L162
TestingLibraryElementError: Unable to find an element with the text: active Scheduled 2. 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
<div
aria-labelledby="releases-menu"
class="StyledBox-sc-1hhky9f-0 bFUsLJ StyledMenu-sc-xt0tnv-0 ckFANx sc-eVISfE hdXrSN"
data-as="div"
data-testid="release-menu"
data-ui="Menu"
role="menu"
tabindex="-1"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledStack-sc-8dpfq2-0 cyneTn"
data-as="div"
data-ui="Stack"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-DZDDv ilTvtL"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-ePOEzu CRwsV"
data-as="div"
data-ui="Box"
>
<div
class="sc-cDGbcm XgnXv"
>
<button
aria-pressed="false"
class="StyledBox-sc-1hhky9f-0 fFvGUC Selectable-sc-1w01ang-0 lzRFu"
data-as="button"
data-testid="release-published"
data-ui="MenuItem"
role="menuitem"
tabindex="-1"
type="button"
>
<span
class="StyledBox-sc-1hhky9f-0 bFUsLJ"
data-as="span"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 fLZREU"
data-as="div"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 eJSLdC"
data-as="div"
data-ui="Box"
style="position: relative; z-index: 1;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<div
class="StyledBox-sc-1hhky9f-0 bLtIhs"
data-as="div"
data-ui="Box"
style="border-radius: 3px;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<svg
data-sanity-icon="dot"
data-testid="release-avatar-positive"
fill="none"
height="1em"
style="--card-icon-color: var(--card-badge-positive-icon-color);"
viewBox="0 0 25 25"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<circle
cx="12.5"
cy="12.5"
fill="currentColor"
r="2.5"
stroke="currentColor"
stroke-width="1.2"
/>
</svg>
</span>
</div>
</div>
</span>
</div>
</div>
<div
class="StyledBox-sc-1hhky9f-0 ikRPOR StyledStack-sc-8dpfq2-0 eTRCsB"
data-as="div"
data-ui="Stack"
>
<div
class="StyledText-sc-11ov82j-0 gsJnDj"
data-ui="Text"
>
|
src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > global perspective menu > when menu is ready > should show the actual release date for a scheduled release:
packages/sanity/src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx#L171
TestingLibraryElementError: Unable to find an element with the text: scheduled Release. 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
<div
aria-labelledby="releases-menu"
class="StyledBox-sc-1hhky9f-0 bFUsLJ StyledMenu-sc-xt0tnv-0 ckFANx sc-eVISfE hdXrSN"
data-as="div"
data-testid="release-menu"
data-ui="Menu"
role="menu"
tabindex="-1"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledStack-sc-8dpfq2-0 cyneTn"
data-as="div"
data-ui="Stack"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-DZDDv ilTvtL"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-ePOEzu CRwsV"
data-as="div"
data-ui="Box"
>
<div
class="sc-cDGbcm XgnXv"
>
<button
aria-pressed="false"
class="StyledBox-sc-1hhky9f-0 fFvGUC Selectable-sc-1w01ang-0 lzRFu"
data-as="button"
data-testid="release-published"
data-ui="MenuItem"
role="menuitem"
tabindex="-1"
type="button"
>
<span
class="StyledBox-sc-1hhky9f-0 bFUsLJ"
data-as="span"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 fLZREU"
data-as="div"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 eJSLdC"
data-as="div"
data-ui="Box"
style="position: relative; z-index: 1;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<div
class="StyledBox-sc-1hhky9f-0 bLtIhs"
data-as="div"
data-ui="Box"
style="border-radius: 3px;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<svg
data-sanity-icon="dot"
data-testid="release-avatar-positive"
fill="none"
height="1em"
style="--card-icon-color: var(--card-badge-positive-icon-color);"
viewBox="0 0 25 25"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<circle
cx="12.5"
cy="12.5"
fill="currentColor"
r="2.5"
stroke="currentColor"
stroke-width="1.2"
/>
</svg>
</span>
</div>
</div>
</span>
</div>
</div>
<div
class="StyledBox-sc-1hhky9f-0 ikRPOR StyledStack-sc-8dpfq2-0 eTRCsB"
data-as="div"
data-ui="Stack"
>
<div
class="StyledText-sc-11ov82j-0 gsJnDj"
data-ui="Text"
>
|
src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > global perspective menu > when menu is ready > allows for new release to be created:
packages/sanity/src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx#L180
TestingLibraryElementError: Unable to find an element with the text: New release. 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
data-portal=""
>
<div
class="StyledBox-sc-1hhky9f-0 fVdNLf StyledCard-sc-osnro2-0 biplee MotionCard-sc-ihg31s-0 hyfGBc"
data-as="div"
data-placement="bottom-end"
data-scheme="light"
data-tone="default"
data-ui="MenuButton__popover"
hidden=""
style="left: 4px; position: absolute; top: 4px; z-index: 3000; will-change: transform; --motion-content-opacity: 0.1501395387208735; opacity: 0.5750697693604367; transform: scale(0.9745041861616262); transform-origin: 50% 50% 0; max-width: -8px; max-height: -8px; --motion-content-opacity: 0.1501395387208735; --motion-content-opacity: 0.1501395387208735;"
>
<div
class="StyledBox-sc-1hhky9f-0 hhDYPT StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Popover__wrapper"
>
<div
class="StyledBox-sc-1hhky9f-0 iUkGyZ StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Flex"
>
<div
aria-labelledby="releases-menu"
class="StyledBox-sc-1hhky9f-0 bFUsLJ StyledMenu-sc-xt0tnv-0 ckFANx sc-eVISfE hdXrSN"
data-as="div"
data-testid="release-menu"
data-ui="Menu"
role="menu"
tabindex="-1"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledStack-sc-8dpfq2-0 cyneTn"
data-as="div"
data-ui="Stack"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-DZDDv ilTvtL"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-ePOEzu CRwsV"
data-as="div"
data-ui="Box"
>
<div
class="sc-cDGbcm XgnXv"
>
<button
aria-pressed="false"
class="StyledBox-sc-1hhky9f-0 fFvGUC Selectable-sc-1w01ang-0 lzRFu"
data-as="button"
data-testid="release-published"
data-ui="MenuItem"
role="menuitem"
tabindex="-1"
type="button"
>
<span
class="StyledBox-sc-1hhky9f-0 bFUsLJ"
data-as="span"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 fLZREU"
data-as="div"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 eJSLdC"
data-as="div"
data-ui="Box"
style="position: relative; z-index: 1;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<div
class="StyledBox-sc-1hhky9f-0 bLtIhs"
data-as="div"
data-ui="Box"
style="border-radius: 3px;"
>
|
src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > global perspective menu > release layering > when a release is clicked > should set a given perspective from the menu:
packages/sanity/src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx#L212
TestingLibraryElementError: Unable to find an element with the text: active Scheduled 2. 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
data-portal=""
>
<div
class="StyledBox-sc-1hhky9f-0 fVdNLf StyledCard-sc-osnro2-0 biplee MotionCard-sc-ihg31s-0 hyfGBc"
data-as="div"
data-placement="bottom-end"
data-scheme="light"
data-tone="default"
data-ui="MenuButton__popover"
hidden=""
style="left: 4px; position: absolute; top: 4px; z-index: 3000; will-change: transform; --motion-content-opacity: 0.15993639421163575; opacity: 0.5799681971058179; transform: scale(0.974798091826349); transform-origin: 50% 50% 0; max-width: -8px; max-height: -8px; --motion-content-opacity: 0.15993639421163575; --motion-content-opacity: 0.15993639421163575;"
>
<div
class="StyledBox-sc-1hhky9f-0 hhDYPT StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Popover__wrapper"
>
<div
class="StyledBox-sc-1hhky9f-0 iUkGyZ StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Flex"
>
<div
aria-labelledby="releases-menu"
class="StyledBox-sc-1hhky9f-0 bFUsLJ StyledMenu-sc-xt0tnv-0 ckFANx sc-eVISfE hdXrSN"
data-as="div"
data-testid="release-menu"
data-ui="Menu"
role="menu"
tabindex="-1"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledStack-sc-8dpfq2-0 cyneTn"
data-as="div"
data-ui="Stack"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-DZDDv ilTvtL"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-ePOEzu CRwsV"
data-as="div"
data-ui="Box"
>
<div
class="sc-cDGbcm XgnXv"
>
<button
aria-pressed="false"
class="StyledBox-sc-1hhky9f-0 fFvGUC Selectable-sc-1w01ang-0 lzRFu"
data-as="button"
data-testid="release-published"
data-ui="MenuItem"
role="menuitem"
tabindex="-1"
type="button"
>
<span
class="StyledBox-sc-1hhky9f-0 bFUsLJ"
data-as="span"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 fLZREU"
data-as="div"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 eJSLdC"
data-as="div"
data-ui="Box"
style="position: relative; z-index: 1;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<div
class="StyledBox-sc-1hhky9f-0 bLtIhs"
data-as="div"
data-ui="Box"
style="border-radius: 3px;"
>
|
src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > global perspective menu > release layering > when a release is clicked > should allow for hiding of any deeper layered releases:
packages/sanity/src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx#L212
TestingLibraryElementError: Unable to find an element with the text: active Scheduled 2. 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
data-portal=""
>
<div
class="StyledBox-sc-1hhky9f-0 fVdNLf StyledCard-sc-osnro2-0 biplee MotionCard-sc-ihg31s-0 hyfGBc"
data-as="div"
data-placement="bottom-end"
data-scheme="light"
data-tone="default"
data-ui="MenuButton__popover"
hidden=""
style="left: 4px; position: absolute; top: 4px; z-index: 3000; will-change: transform; --motion-content-opacity: 0.15993639421163575; opacity: 0.5799681971058179; transform: scale(0.974798091826349); transform-origin: 50% 50% 0; max-width: -8px; max-height: -8px; --motion-content-opacity: 0.15993639421163575; --motion-content-opacity: 0.15993639421163575;"
>
<div
class="StyledBox-sc-1hhky9f-0 hhDYPT StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Popover__wrapper"
>
<div
class="StyledBox-sc-1hhky9f-0 iUkGyZ StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Flex"
>
<div
aria-labelledby="releases-menu"
class="StyledBox-sc-1hhky9f-0 bFUsLJ StyledMenu-sc-xt0tnv-0 ckFANx sc-eVISfE hdXrSN"
data-as="div"
data-testid="release-menu"
data-ui="Menu"
role="menu"
tabindex="-1"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledStack-sc-8dpfq2-0 cyneTn"
data-as="div"
data-ui="Stack"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-DZDDv ilTvtL"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-ePOEzu CRwsV"
data-as="div"
data-ui="Box"
>
<div
class="sc-cDGbcm XgnXv"
>
<button
aria-pressed="false"
class="StyledBox-sc-1hhky9f-0 fFvGUC Selectable-sc-1w01ang-0 lzRFu"
data-as="button"
data-testid="release-published"
data-ui="MenuItem"
role="menuitem"
tabindex="-1"
type="button"
>
<span
class="StyledBox-sc-1hhky9f-0 bFUsLJ"
data-as="span"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 fLZREU"
data-as="div"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 eJSLdC"
data-as="div"
data-ui="Box"
style="position: relative; z-index: 1;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<div
class="StyledBox-sc-1hhky9f-0 bLtIhs"
data-as="div"
data-ui="Box"
style="border-radius: 3px;"
>
|
src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > global perspective menu > release layering > when a release is clicked > should not allow for hiding of published perspective:
packages/sanity/src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx#L212
TestingLibraryElementError: Unable to find an element with the text: active Scheduled 2. 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
data-portal=""
>
<div
class="StyledBox-sc-1hhky9f-0 fVdNLf StyledCard-sc-osnro2-0 biplee MotionCard-sc-ihg31s-0 hyfGBc"
data-as="div"
data-placement="bottom-end"
data-scheme="light"
data-tone="default"
data-ui="MenuButton__popover"
hidden=""
style="left: 4px; position: absolute; top: 4px; z-index: 3000; will-change: transform; --motion-content-opacity: 0.16990125923470045; opacity: 0.5849506296173502; transform: scale(0.975097037777041); transform-origin: 50% 50% 0; max-width: -8px; max-height: -8px; --motion-content-opacity: 0.16990125923470045; --motion-content-opacity: 0.16990125923470045;"
>
<div
class="StyledBox-sc-1hhky9f-0 hhDYPT StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Popover__wrapper"
>
<div
class="StyledBox-sc-1hhky9f-0 iUkGyZ StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Flex"
>
<div
aria-labelledby="releases-menu"
class="StyledBox-sc-1hhky9f-0 bFUsLJ StyledMenu-sc-xt0tnv-0 ckFANx sc-eVISfE hdXrSN"
data-as="div"
data-testid="release-menu"
data-ui="Menu"
role="menu"
tabindex="-1"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledStack-sc-8dpfq2-0 cyneTn"
data-as="div"
data-ui="Stack"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-DZDDv ilTvtL"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-ePOEzu CRwsV"
data-as="div"
data-ui="Box"
>
<div
class="sc-cDGbcm XgnXv"
>
<button
aria-pressed="false"
class="StyledBox-sc-1hhky9f-0 fFvGUC Selectable-sc-1w01ang-0 lzRFu"
data-as="button"
data-testid="release-published"
data-ui="MenuItem"
role="menuitem"
tabindex="-1"
type="button"
>
<span
class="StyledBox-sc-1hhky9f-0 bFUsLJ"
data-as="span"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 fLZREU"
data-as="div"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 eJSLdC"
data-as="div"
data-ui="Box"
style="position: relative; z-index: 1;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<div
class="StyledBox-sc-1hhky9f-0 bLtIhs"
data-as="div"
data-ui="Box"
style="border-radius: 3px;"
>
|
src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > global perspective menu > release layering > when a release is clicked > should allow for hiding of draft perspective:
packages/sanity/src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx#L212
TestingLibraryElementError: Unable to find an element with the text: active Scheduled 2. 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
data-portal=""
>
<div
class="StyledBox-sc-1hhky9f-0 fVdNLf StyledCard-sc-osnro2-0 biplee MotionCard-sc-ihg31s-0 hyfGBc"
data-as="div"
data-placement="bottom-end"
data-scheme="light"
data-tone="default"
data-ui="MenuButton__popover"
hidden=""
style="left: 4px; position: absolute; top: 4px; z-index: 3000; will-change: transform; --motion-content-opacity: 0.09557567129125422; opacity: 0.5477878356456272; transform: scale(0.9728672701387376); transform-origin: 50% 50% 0; max-width: -8px; max-height: -8px; --motion-content-opacity: 0.09557567129125422; --motion-content-opacity: 0.09557567129125422;"
>
<div
class="StyledBox-sc-1hhky9f-0 hhDYPT StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Popover__wrapper"
>
<div
class="StyledBox-sc-1hhky9f-0 iUkGyZ StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Flex"
>
<div
aria-labelledby="releases-menu"
class="StyledBox-sc-1hhky9f-0 bFUsLJ StyledMenu-sc-xt0tnv-0 ckFANx sc-eVISfE hdXrSN"
data-as="div"
data-testid="release-menu"
data-ui="Menu"
role="menu"
tabindex="-1"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledStack-sc-8dpfq2-0 cyneTn"
data-as="div"
data-ui="Stack"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-DZDDv ilTvtL"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-ePOEzu CRwsV"
data-as="div"
data-ui="Box"
>
<div
class="sc-cDGbcm XgnXv"
>
<button
aria-pressed="false"
class="StyledBox-sc-1hhky9f-0 fFvGUC Selectable-sc-1w01ang-0 lzRFu"
data-as="button"
data-testid="release-published"
data-ui="MenuItem"
role="menuitem"
tabindex="-1"
type="button"
>
<span
class="StyledBox-sc-1hhky9f-0 bFUsLJ"
data-as="span"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 fLZREU"
data-as="div"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 eJSLdC"
data-as="div"
data-ui="Box"
style="position: relative; z-index: 1;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<div
class="StyledBox-sc-1hhky9f-0 bLtIhs"
data-as="div"
data-ui="Box"
style="border-radius: 3px;"
>
|
src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > global perspective menu > release layering > when a release is clicked > should not allow hiding of the current perspective:
packages/sanity/src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx#L212
TestingLibraryElementError: Unable to find an element with the text: active Scheduled 2. 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
data-portal=""
>
<div
class="StyledBox-sc-1hhky9f-0 fVdNLf StyledCard-sc-osnro2-0 biplee MotionCard-sc-ihg31s-0 hyfGBc"
data-as="div"
data-placement="bottom-end"
data-scheme="light"
data-tone="default"
data-ui="MenuButton__popover"
hidden=""
style="left: 4px; position: absolute; top: 4px; z-index: 3000; will-change: transform; --motion-content-opacity: 0.15993639421163575; opacity: 0.5799681971058179; transform: scale(0.974798091826349); transform-origin: 50% 50% 0; max-width: -8px; max-height: -8px; --motion-content-opacity: 0.15993639421163575; --motion-content-opacity: 0.15993639421163575;"
>
<div
class="StyledBox-sc-1hhky9f-0 hhDYPT StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Popover__wrapper"
>
<div
class="StyledBox-sc-1hhky9f-0 iUkGyZ StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Flex"
>
<div
aria-labelledby="releases-menu"
class="StyledBox-sc-1hhky9f-0 bFUsLJ StyledMenu-sc-xt0tnv-0 ckFANx sc-eVISfE hdXrSN"
data-as="div"
data-testid="release-menu"
data-ui="Menu"
role="menu"
tabindex="-1"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledStack-sc-8dpfq2-0 cyneTn"
data-as="div"
data-ui="Stack"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-DZDDv ilTvtL"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-ePOEzu CRwsV"
data-as="div"
data-ui="Box"
>
<div
class="sc-cDGbcm XgnXv"
>
<button
aria-pressed="false"
class="StyledBox-sc-1hhky9f-0 fFvGUC Selectable-sc-1w01ang-0 lzRFu"
data-as="button"
data-testid="release-published"
data-ui="MenuItem"
role="menuitem"
tabindex="-1"
type="button"
>
<span
class="StyledBox-sc-1hhky9f-0 bFUsLJ"
data-as="span"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 fLZREU"
data-as="div"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 eJSLdC"
data-as="div"
data-ui="Box"
style="position: relative; z-index: 1;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<div
class="StyledBox-sc-1hhky9f-0 bLtIhs"
data-as="div"
data-ui="Box"
style="border-radius: 3px;"
>
|
src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > should have link to releases tool:
packages/sanity/src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx#L62
TestingLibraryElementError: Unable to find an accessible element with the role "link"
Here are the accessible roles:
button:
Name "":
<button
aria-expanded="false"
aria-haspopup="true"
class="StyledButton-sc-aaekt4-0 bhxbNA"
data-disabled="false"
data-testid="global-perspective-menu-button"
data-ui="MenuButton"
id="releases-menu"
type="button"
/>
--------------------------------------------------
Ignored nodes: comments, script, style
<body>
<div>
<div
class="StyledBox-sc-1hhky9f-0 exXHgr StyledCard-sc-osnro2-0 eeHYlY"
data-as="div"
data-scheme="light"
data-tone="default"
data-ui="Card"
style="margin: -1px;"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 cPyFdt"
data-as="div"
data-ui="Flex"
>
<div
style="width: 0px; opacity: 0;"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledCard-sc-osnro2-0 jQaPBc"
data-as="div"
data-scheme="light"
data-tone="default"
data-ui="Card"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 cXHylM"
data-as="div"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 eJSLdC"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 bGghzf"
data-as="div"
data-ui="Box"
style="border-radius: 3px;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<svg
data-sanity-icon="dot"
data-testid="release-avatar-default"
fill="none"
height="1em"
style="--card-icon-color: var(--card-badge-default-icon-color);"
viewBox="0 0 25 25"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<circle
cx="12.5"
cy="12.5"
fill="currentColor"
r="2.5"
stroke="currentColor"
stroke-width="1.2"
/>
</svg>
</span>
</div>
</div>
</div>
<div
class="StyledBox-sc-1hhky9f-0 ikRPOR StyledStack-sc-8dpfq2-0 eTRCsB"
data-as="div"
data-ui="Stack"
>
<div
class="StyledText-sc-11ov82j-0 gsJnDj"
data-ui="Text"
>
<span>
<span
class="SpanWithTextOverflow-sc-ol2i3b-0 DGyqG"
>
Drafts
</span>
</span>
</div>
</div>
</div>
</div>
</div>
<button
aria-expanded="false"
aria-haspopup="true"
class="StyledButton-sc-aaekt4-0 bhxbNA"
data-disabled="false"
data-testid="global-perspective-menu-button"
data-ui="MenuButton"
id="releases-menu"
type="button"
>
<span
class="StyledBox-sc-1hhky9f-0 kUdApj"
data-as="span"
data-ui="Box"
>
<span
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 cZoSSP"
data-as="span"
data-ui="Flex"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
|
src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > global perspective menu > when menu is ready > should list all the releases:
packages/sanity/src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx#L149
TestingLibraryElementError: Unable to find an element with the text: ASAP. 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
<div
aria-labelledby="releases-menu"
class="StyledBox-sc-1hhky9f-0 bFUsLJ StyledMenu-sc-xt0tnv-0 ckFANx sc-eVISfE hdXrSN"
data-as="div"
data-testid="release-menu"
data-ui="Menu"
role="menu"
tabindex="-1"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledStack-sc-8dpfq2-0 cyneTn"
data-as="div"
data-ui="Stack"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-DZDDv ilTvtL"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-ePOEzu CRwsV"
data-as="div"
data-ui="Box"
>
<div
class="sc-cDGbcm XgnXv"
>
<button
aria-pressed="false"
class="StyledBox-sc-1hhky9f-0 fFvGUC Selectable-sc-1w01ang-0 lzRFu"
data-as="button"
data-testid="release-published"
data-ui="MenuItem"
role="menuitem"
tabindex="-1"
type="button"
>
<span
class="StyledBox-sc-1hhky9f-0 bFUsLJ"
data-as="span"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 fLZREU"
data-as="div"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 eJSLdC"
data-as="div"
data-ui="Box"
style="position: relative; z-index: 1;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<div
class="StyledBox-sc-1hhky9f-0 bLtIhs"
data-as="div"
data-ui="Box"
style="border-radius: 3px;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<svg
data-sanity-icon="dot"
data-testid="release-avatar-positive"
fill="none"
height="1em"
style="--card-icon-color: var(--card-badge-positive-icon-color);"
viewBox="0 0 25 25"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<circle
cx="12.5"
cy="12.5"
fill="currentColor"
r="2.5"
stroke="currentColor"
stroke-width="1.2"
/>
</svg>
</span>
</div>
</div>
</span>
</div>
</div>
<div
class="StyledBox-sc-1hhky9f-0 ikRPOR StyledStack-sc-8dpfq2-0 eTRCsB"
data-as="div"
data-ui="Stack"
>
<div
class="StyledText-sc-11ov82j-0 gsJnDj"
data-ui="Text"
>
<span>
|
src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > global perspective menu > when menu is ready > should show the intended release date for intended schedule releases:
packages/sanity/src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx#L162
TestingLibraryElementError: Unable to find an element with the text: active Scheduled 2. 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
<div
aria-labelledby="releases-menu"
class="StyledBox-sc-1hhky9f-0 bFUsLJ StyledMenu-sc-xt0tnv-0 ckFANx sc-eVISfE hdXrSN"
data-as="div"
data-testid="release-menu"
data-ui="Menu"
role="menu"
tabindex="-1"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledStack-sc-8dpfq2-0 cyneTn"
data-as="div"
data-ui="Stack"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-DZDDv ilTvtL"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-ePOEzu CRwsV"
data-as="div"
data-ui="Box"
>
<div
class="sc-cDGbcm XgnXv"
>
<button
aria-pressed="false"
class="StyledBox-sc-1hhky9f-0 fFvGUC Selectable-sc-1w01ang-0 lzRFu"
data-as="button"
data-testid="release-published"
data-ui="MenuItem"
role="menuitem"
tabindex="-1"
type="button"
>
<span
class="StyledBox-sc-1hhky9f-0 bFUsLJ"
data-as="span"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 fLZREU"
data-as="div"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 eJSLdC"
data-as="div"
data-ui="Box"
style="position: relative; z-index: 1;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<div
class="StyledBox-sc-1hhky9f-0 bLtIhs"
data-as="div"
data-ui="Box"
style="border-radius: 3px;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<svg
data-sanity-icon="dot"
data-testid="release-avatar-positive"
fill="none"
height="1em"
style="--card-icon-color: var(--card-badge-positive-icon-color);"
viewBox="0 0 25 25"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<circle
cx="12.5"
cy="12.5"
fill="currentColor"
r="2.5"
stroke="currentColor"
stroke-width="1.2"
/>
</svg>
</span>
</div>
</div>
</span>
</div>
</div>
<div
class="StyledBox-sc-1hhky9f-0 ikRPOR StyledStack-sc-8dpfq2-0 eTRCsB"
data-as="div"
data-ui="Stack"
>
<div
class="StyledText-sc-11ov82j-0 gsJnDj"
data-ui="Text"
>
|
src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > global perspective menu > when menu is ready > should show the actual release date for a scheduled release:
packages/sanity/src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx#L171
TestingLibraryElementError: Unable to find an element with the text: scheduled Release. 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
<div
aria-labelledby="releases-menu"
class="StyledBox-sc-1hhky9f-0 bFUsLJ StyledMenu-sc-xt0tnv-0 ckFANx sc-eVISfE hdXrSN"
data-as="div"
data-testid="release-menu"
data-ui="Menu"
role="menu"
tabindex="-1"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledStack-sc-8dpfq2-0 cyneTn"
data-as="div"
data-ui="Stack"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-DZDDv ilTvtL"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-ePOEzu CRwsV"
data-as="div"
data-ui="Box"
>
<div
class="sc-cDGbcm XgnXv"
>
<button
aria-pressed="false"
class="StyledBox-sc-1hhky9f-0 fFvGUC Selectable-sc-1w01ang-0 lzRFu"
data-as="button"
data-testid="release-published"
data-ui="MenuItem"
role="menuitem"
tabindex="-1"
type="button"
>
<span
class="StyledBox-sc-1hhky9f-0 bFUsLJ"
data-as="span"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 fLZREU"
data-as="div"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 eJSLdC"
data-as="div"
data-ui="Box"
style="position: relative; z-index: 1;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<div
class="StyledBox-sc-1hhky9f-0 bLtIhs"
data-as="div"
data-ui="Box"
style="border-radius: 3px;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<svg
data-sanity-icon="dot"
data-testid="release-avatar-positive"
fill="none"
height="1em"
style="--card-icon-color: var(--card-badge-positive-icon-color);"
viewBox="0 0 25 25"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<circle
cx="12.5"
cy="12.5"
fill="currentColor"
r="2.5"
stroke="currentColor"
stroke-width="1.2"
/>
</svg>
</span>
</div>
</div>
</span>
</div>
</div>
<div
class="StyledBox-sc-1hhky9f-0 ikRPOR StyledStack-sc-8dpfq2-0 eTRCsB"
data-as="div"
data-ui="Stack"
>
<div
class="StyledText-sc-11ov82j-0 gsJnDj"
data-ui="Text"
>
|
src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > global perspective menu > when menu is ready > allows for new release to be created:
packages/sanity/src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx#L180
TestingLibraryElementError: Unable to find an element with the text: New release. 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
data-portal=""
>
<div
class="StyledBox-sc-1hhky9f-0 fVdNLf StyledCard-sc-osnro2-0 biplee MotionCard-sc-ihg31s-0 hyfGBc"
data-as="div"
data-placement="bottom-end"
data-scheme="light"
data-tone="default"
data-ui="MenuButton__popover"
hidden=""
style="left: 4px; position: absolute; top: 4px; z-index: 3000; will-change: transform; --motion-content-opacity: 0.27638105213547204; opacity: 0.6381905260677361; transform: scale(0.9782914315640642); transform-origin: 50% 50% 0; max-width: -8px; max-height: -8px; --motion-content-opacity: 0.27638105213547204; --motion-content-opacity: 0.27638105213547204;"
>
<div
class="StyledBox-sc-1hhky9f-0 hhDYPT StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Popover__wrapper"
>
<div
class="StyledBox-sc-1hhky9f-0 iUkGyZ StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Flex"
>
<div
aria-labelledby="releases-menu"
class="StyledBox-sc-1hhky9f-0 bFUsLJ StyledMenu-sc-xt0tnv-0 ckFANx sc-eVISfE hdXrSN"
data-as="div"
data-testid="release-menu"
data-ui="Menu"
role="menu"
tabindex="-1"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledStack-sc-8dpfq2-0 cyneTn"
data-as="div"
data-ui="Stack"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-DZDDv ilTvtL"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-ePOEzu CRwsV"
data-as="div"
data-ui="Box"
>
<div
class="sc-cDGbcm XgnXv"
>
<button
aria-pressed="false"
class="StyledBox-sc-1hhky9f-0 fFvGUC Selectable-sc-1w01ang-0 lzRFu"
data-as="button"
data-testid="release-published"
data-ui="MenuItem"
role="menuitem"
tabindex="-1"
type="button"
>
<span
class="StyledBox-sc-1hhky9f-0 bFUsLJ"
data-as="span"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 fLZREU"
data-as="div"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 eJSLdC"
data-as="div"
data-ui="Box"
style="position: relative; z-index: 1;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<div
class="StyledBox-sc-1hhky9f-0 bLtIhs"
data-as="div"
data-ui="Box"
style="border-radius: 3px;"
>
|
src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > global perspective menu > release layering > when a release is clicked > should set a given perspective from the menu:
packages/sanity/src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx#L212
TestingLibraryElementError: Unable to find an element with the text: active Scheduled 2. 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
data-portal=""
>
<div
class="StyledBox-sc-1hhky9f-0 fVdNLf StyledCard-sc-osnro2-0 biplee MotionCard-sc-ihg31s-0 hyfGBc"
data-as="div"
data-placement="bottom-end"
data-scheme="light"
data-tone="default"
data-ui="MenuButton__popover"
hidden=""
style="left: 4px; position: absolute; top: 4px; z-index: 3000; will-change: transform; --motion-content-opacity: 0.2434213460768273; opacity: 0.6217106730384137; transform: scale(0.9773026403823049); transform-origin: 50% 50% 0; max-width: -8px; max-height: -8px; --motion-content-opacity: 0.2434213460768273; --motion-content-opacity: 0.2434213460768273;"
>
<div
class="StyledBox-sc-1hhky9f-0 hhDYPT StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Popover__wrapper"
>
<div
class="StyledBox-sc-1hhky9f-0 iUkGyZ StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Flex"
>
<div
aria-labelledby="releases-menu"
class="StyledBox-sc-1hhky9f-0 bFUsLJ StyledMenu-sc-xt0tnv-0 ckFANx sc-eVISfE hdXrSN"
data-as="div"
data-testid="release-menu"
data-ui="Menu"
role="menu"
tabindex="-1"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledStack-sc-8dpfq2-0 cyneTn"
data-as="div"
data-ui="Stack"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-DZDDv ilTvtL"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-ePOEzu CRwsV"
data-as="div"
data-ui="Box"
>
<div
class="sc-cDGbcm XgnXv"
>
<button
aria-pressed="false"
class="StyledBox-sc-1hhky9f-0 fFvGUC Selectable-sc-1w01ang-0 lzRFu"
data-as="button"
data-testid="release-published"
data-ui="MenuItem"
role="menuitem"
tabindex="-1"
type="button"
>
<span
class="StyledBox-sc-1hhky9f-0 bFUsLJ"
data-as="span"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 fLZREU"
data-as="div"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 eJSLdC"
data-as="div"
data-ui="Box"
style="position: relative; z-index: 1;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<div
class="StyledBox-sc-1hhky9f-0 bLtIhs"
data-as="div"
data-ui="Box"
style="border-radius: 3px;"
>
|
src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > global perspective menu > release layering > when a release is clicked > should allow for hiding of any deeper layered releases:
packages/sanity/src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx#L212
TestingLibraryElementError: Unable to find an element with the text: active Scheduled 2. 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
data-portal=""
>
<div
class="StyledBox-sc-1hhky9f-0 fVdNLf StyledCard-sc-osnro2-0 biplee MotionCard-sc-ihg31s-0 hyfGBc"
data-as="div"
data-placement="bottom-end"
data-scheme="light"
data-tone="default"
data-ui="MenuButton__popover"
hidden=""
style="left: 4px; position: absolute; top: 4px; z-index: 3000; will-change: transform; --motion-content-opacity: 0.25433693907902755; opacity: 0.6271684695395138; transform: scale(0.9776301081723708); transform-origin: 50% 50% 0; max-width: -8px; max-height: -8px; --motion-content-opacity: 0.25433693907902755; --motion-content-opacity: 0.25433693907902755;"
>
<div
class="StyledBox-sc-1hhky9f-0 hhDYPT StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Popover__wrapper"
>
<div
class="StyledBox-sc-1hhky9f-0 iUkGyZ StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Flex"
>
<div
aria-labelledby="releases-menu"
class="StyledBox-sc-1hhky9f-0 bFUsLJ StyledMenu-sc-xt0tnv-0 ckFANx sc-eVISfE hdXrSN"
data-as="div"
data-testid="release-menu"
data-ui="Menu"
role="menu"
tabindex="-1"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledStack-sc-8dpfq2-0 cyneTn"
data-as="div"
data-ui="Stack"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-DZDDv ilTvtL"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-ePOEzu CRwsV"
data-as="div"
data-ui="Box"
>
<div
class="sc-cDGbcm XgnXv"
>
<button
aria-pressed="false"
class="StyledBox-sc-1hhky9f-0 fFvGUC Selectable-sc-1w01ang-0 lzRFu"
data-as="button"
data-testid="release-published"
data-ui="MenuItem"
role="menuitem"
tabindex="-1"
type="button"
>
<span
class="StyledBox-sc-1hhky9f-0 bFUsLJ"
data-as="span"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 fLZREU"
data-as="div"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 eJSLdC"
data-as="div"
data-ui="Box"
style="position: relative; z-index: 1;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<div
class="StyledBox-sc-1hhky9f-0 bLtIhs"
data-as="div"
data-ui="Box"
style="border-radius: 3px;"
>
|
src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > global perspective menu > release layering > when a release is clicked > should not allow for hiding of published perspective:
packages/sanity/src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx#L212
TestingLibraryElementError: Unable to find an element with the text: active Scheduled 2. 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
data-portal=""
>
<div
class="StyledBox-sc-1hhky9f-0 fVdNLf StyledCard-sc-osnro2-0 biplee MotionCard-sc-ihg31s-0 hyfGBc"
data-as="div"
data-placement="bottom-end"
data-scheme="light"
data-tone="default"
data-ui="MenuButton__popover"
hidden=""
style="left: 4px; position: absolute; top: 4px; z-index: 3000; will-change: transform; --motion-content-opacity: 0.1902888600416901; opacity: 0.595144430020845; transform: scale(0.9757086658012507); transform-origin: 50% 50% 0; max-width: -8px; max-height: -8px; --motion-content-opacity: 0.1902888600416901; --motion-content-opacity: 0.1902888600416901;"
>
<div
class="StyledBox-sc-1hhky9f-0 hhDYPT StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Popover__wrapper"
>
<div
class="StyledBox-sc-1hhky9f-0 iUkGyZ StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Flex"
>
<div
aria-labelledby="releases-menu"
class="StyledBox-sc-1hhky9f-0 bFUsLJ StyledMenu-sc-xt0tnv-0 ckFANx sc-eVISfE hdXrSN"
data-as="div"
data-testid="release-menu"
data-ui="Menu"
role="menu"
tabindex="-1"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledStack-sc-8dpfq2-0 cyneTn"
data-as="div"
data-ui="Stack"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-DZDDv ilTvtL"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-ePOEzu CRwsV"
data-as="div"
data-ui="Box"
>
<div
class="sc-cDGbcm XgnXv"
>
<button
aria-pressed="false"
class="StyledBox-sc-1hhky9f-0 fFvGUC Selectable-sc-1w01ang-0 lzRFu"
data-as="button"
data-testid="release-published"
data-ui="MenuItem"
role="menuitem"
tabindex="-1"
type="button"
>
<span
class="StyledBox-sc-1hhky9f-0 bFUsLJ"
data-as="span"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 fLZREU"
data-as="div"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 eJSLdC"
data-as="div"
data-ui="Box"
style="position: relative; z-index: 1;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<div
class="StyledBox-sc-1hhky9f-0 bLtIhs"
data-as="div"
data-ui="Box"
style="border-radius: 3px;"
>
|
src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > global perspective menu > release layering > when a release is clicked > should allow for hiding of draft perspective:
packages/sanity/src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx#L212
TestingLibraryElementError: Unable to find an element with the text: active Scheduled 2. 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
data-portal=""
>
<div
class="StyledBox-sc-1hhky9f-0 fVdNLf StyledCard-sc-osnro2-0 biplee MotionCard-sc-ihg31s-0 hyfGBc"
data-as="div"
data-placement="bottom-end"
data-scheme="light"
data-tone="default"
data-ui="MenuButton__popover"
hidden=""
style="left: 4px; position: absolute; top: 4px; z-index: 3000; will-change: transform; --motion-content-opacity: 0.14052261078626793; opacity: 0.570261305393134; transform: scale(0.974215678323588); transform-origin: 50% 50% 0; max-width: -8px; max-height: -8px; --motion-content-opacity: 0.14052261078626793; --motion-content-opacity: 0.14052261078626793;"
>
<div
class="StyledBox-sc-1hhky9f-0 hhDYPT StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Popover__wrapper"
>
<div
class="StyledBox-sc-1hhky9f-0 iUkGyZ StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Flex"
>
<div
aria-labelledby="releases-menu"
class="StyledBox-sc-1hhky9f-0 bFUsLJ StyledMenu-sc-xt0tnv-0 ckFANx sc-eVISfE hdXrSN"
data-as="div"
data-testid="release-menu"
data-ui="Menu"
role="menu"
tabindex="-1"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledStack-sc-8dpfq2-0 cyneTn"
data-as="div"
data-ui="Stack"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-DZDDv ilTvtL"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-ePOEzu CRwsV"
data-as="div"
data-ui="Box"
>
<div
class="sc-cDGbcm XgnXv"
>
<button
aria-pressed="false"
class="StyledBox-sc-1hhky9f-0 fFvGUC Selectable-sc-1w01ang-0 lzRFu"
data-as="button"
data-testid="release-published"
data-ui="MenuItem"
role="menuitem"
tabindex="-1"
type="button"
>
<span
class="StyledBox-sc-1hhky9f-0 bFUsLJ"
data-as="span"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 fLZREU"
data-as="div"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 eJSLdC"
data-as="div"
data-ui="Box"
style="position: relative; z-index: 1;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<div
class="StyledBox-sc-1hhky9f-0 bLtIhs"
data-as="div"
data-ui="Box"
style="border-radius: 3px;"
>
|
src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx > ReleasesNav > global perspective menu > release layering > when a release is clicked > should not allow hiding of the current perspective:
packages/sanity/src/core/perspective/navbar/__tests__/ReleasesNav.test.tsx#L212
TestingLibraryElementError: Unable to find an element with the text: active Scheduled 2. 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
data-portal=""
>
<div
class="StyledBox-sc-1hhky9f-0 fVdNLf StyledCard-sc-osnro2-0 biplee MotionCard-sc-ihg31s-0 hyfGBc"
data-as="div"
data-placement="bottom-end"
data-scheme="light"
data-tone="default"
data-ui="MenuButton__popover"
hidden=""
style="left: 4px; position: absolute; top: 4px; z-index: 3000; will-change: transform; --motion-content-opacity: 0.25433693907902755; opacity: 0.6271684695395138; transform: scale(0.9776301081723708); transform-origin: 50% 50% 0; max-width: -8px; max-height: -8px; --motion-content-opacity: 0.25433693907902755; --motion-content-opacity: 0.25433693907902755;"
>
<div
class="StyledBox-sc-1hhky9f-0 hhDYPT StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Popover__wrapper"
>
<div
class="StyledBox-sc-1hhky9f-0 iUkGyZ StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Flex"
>
<div
aria-labelledby="releases-menu"
class="StyledBox-sc-1hhky9f-0 bFUsLJ StyledMenu-sc-xt0tnv-0 ckFANx sc-eVISfE hdXrSN"
data-as="div"
data-testid="release-menu"
data-ui="Menu"
role="menu"
tabindex="-1"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledStack-sc-8dpfq2-0 cyneTn"
data-as="div"
data-ui="Stack"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-DZDDv ilTvtL"
data-as="div"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC sc-ePOEzu CRwsV"
data-as="div"
data-ui="Box"
>
<div
class="sc-cDGbcm XgnXv"
>
<button
aria-pressed="false"
class="StyledBox-sc-1hhky9f-0 fFvGUC Selectable-sc-1w01ang-0 lzRFu"
data-as="button"
data-testid="release-published"
data-ui="MenuItem"
role="menuitem"
tabindex="-1"
type="button"
>
<span
class="StyledBox-sc-1hhky9f-0 bFUsLJ"
data-as="span"
data-ui="Box"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC StyledFlex-sc-oxesg3-0 fLZREU"
data-as="div"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 eJSLdC"
data-as="div"
data-ui="Box"
style="position: relative; z-index: 1;"
>
<div
class="StyledText-sc-11ov82j-0 xkMaC"
data-ui="Text"
>
<span>
<div
class="StyledBox-sc-1hhky9f-0 bLtIhs"
data-as="div"
data-ui="Box"
style="border-radius: 3px;"
>
|
src/core/config/__tests__/resolveConfig.test.ts > resolveConfig > includes all the default plugins:
packages/sanity/src/core/config/__tests__/resolveConfig.test.ts#L162
AssertionError: expected [ Array(5) ] to match object [ Array(6) ]
- Expected
+ Received
Array [
Object {
"name": "sanity/mock-plugin",
},
Object {
+ "document": Object {
+ "components": Object {
+ "unstable_layout": [Function CommentsDocumentLayout],
+ },
+ "inspectors": Array [
+ Object {
+ "component": [Function CommentsInspector],
+ "name": "sanity/comments",
+ "useMenuItem": [Function useMenuItem],
+ },
+ ],
+ },
+ "form": Object {
+ "components": Object {
+ "field": [Function CommentsField],
+ "input": [Function CommentsInput],
+ },
+ },
+ "i18n": Object {
+ "bundles": Array [
+ Object {
+ "locale": "en-US",
+ "namespace": "comments",
+ "resources": [Function resources],
+ },
+ ],
+ },
"name": "sanity/comments",
+ "studio": Object {
+ "components": Object {
+ "layout": [Function CommentsStudioLayout],
+ },
+ },
},
Object {
+ "__internal_tasks": Object {
+ "footerAction": <TasksFooterOpenTasks />,
+ },
+ "document": Object {
+ "actions": [Function actions],
+ },
+ "form": Object {
+ "components": Object {
+ "input": [Function input],
+ },
+ },
+ "i18n": Object {
+ "bundles": Array [
+ Object {
+ "locale": "en-US",
+ "namespace": "tasks",
+ "resources": [Function resources],
+ },
+ ],
+ },
"name": "sanity/tasks",
+ "studio": Object {
+ "components": Object {
+ "activeToolLayout": [Function TasksStudioActiveToolLayout],
+ "layout": [Function TasksStudioLayout],
+ "navbar": [Function TasksStudioNavbar],
},
+ },
+ },
Object {
+ "document": Object {
+ "actions": [Function actions],
+ "badges": [Function badges],
+ },
+ "form": Object {
+ "components": Object {
+ "input": [Function DocumentBannerInput],
+ },
+ },
"name": "sanity/scheduled-publishing",
+ "studio": Object {
+ "components": Object {
+ "layout": [Function SchedulePublishingStudioLayout],
+ },
+ },
+ "tools": [Function tools],
},
Object {
+ "i18n": Object {
+ "bundles": Array [
+ Object {
+ "locale": "en-US",
+ "namespace": "create",
+ "resources": [Function resources],
+ },
+ ],
+ },
"name": "sanity/create-integration",
+ "studio": Object {
+ "components": Object {
+ "layout": [Function CreateIntegrationWrapper],
},
- Object {
- "name": "sanity/releases",
+ },
},
]
❯ src/core/config/__tests__/resolveConfig.test.ts:162:50
|
src/core/config/__tests__/resolveConfig.test.ts > resolveConfig > wont include scheduled publishing default plugin:
packages/sanity/src/core/config/__tests__/resolveConfig.test.ts#L192
AssertionError: expected [ …(3) ] to match object [ { name: 'sanity/comments' }, …(3) ]
- Expected
+ Received
Array [
Object {
+ "document": Object {
+ "components": Object {
+ "unstable_layout": [Function CommentsDocumentLayout],
+ },
+ "inspectors": Array [
+ Object {
+ "component": [Function CommentsInspector],
"name": "sanity/comments",
+ "useMenuItem": [Function useMenuItem],
+ },
+ ],
+ },
+ "form": Object {
+ "components": Object {
+ "field": [Function CommentsField],
+ "input": [Function CommentsInput],
+ },
+ },
+ "i18n": Object {
+ "bundles": Array [
+ Object {
+ "locale": "en-US",
+ "namespace": "comments",
+ "resources": [Function resources],
+ },
+ ],
+ },
+ "name": "sanity/comments",
+ "studio": Object {
+ "components": Object {
+ "layout": [Function CommentsStudioLayout],
+ },
+ },
+ },
+ Object {
+ "__internal_tasks": Object {
+ "footerAction": <TasksFooterOpenTasks />,
+ },
+ "document": Object {
+ "actions": [Function actions],
},
+ "form": Object {
+ "components": Object {
+ "input": [Function input],
+ },
+ },
+ "i18n": Object {
+ "bundles": Array [
Object {
+ "locale": "en-US",
+ "namespace": "tasks",
+ "resources": [Function resources],
+ },
+ ],
+ },
"name": "sanity/tasks",
+ "studio": Object {
+ "components": Object {
+ "activeToolLayout": [Function TasksStudioActiveToolLayout],
+ "layout": [Function TasksStudioLayout],
+ "navbar": [Function TasksStudioNavbar],
},
+ },
+ },
+ Object {
+ "i18n": Object {
+ "bundles": Array [
Object {
+ "locale": "en-US",
+ "namespace": "create",
+ "resources": [Function resources],
+ },
+ ],
+ },
"name": "sanity/create-integration",
+ "studio": Object {
+ "components": Object {
+ "layout": [Function CreateIntegrationWrapper],
},
- Object {
- "name": "sanity/releases",
+ },
},
]
❯ src/core/config/__tests__/resolveConfig.test.ts:192:50
|
Test (ubuntu-latest / node 20)
Process completed with exit code 1.
|
src/core/config/__tests__/resolveConfig.test.ts > resolveConfig > includes all the default plugins:
packages/sanity/src/core/config/__tests__/resolveConfig.test.ts#L162
AssertionError: expected [ Array(5) ] to match object [ Array(6) ]
- Expected
+ Received
Array [
Object {
"name": "sanity/mock-plugin",
},
Object {
+ "document": Object {
+ "components": Object {
+ "unstable_layout": [Function CommentsDocumentLayout],
+ },
+ "inspectors": Array [
+ Object {
+ "component": [Function CommentsInspector],
+ "name": "sanity/comments",
+ "useMenuItem": [Function useMenuItem],
+ },
+ ],
+ },
+ "form": Object {
+ "components": Object {
+ "field": [Function CommentsField],
+ "input": [Function CommentsInput],
+ },
+ },
+ "i18n": Object {
+ "bundles": Array [
+ Object {
+ "locale": "en-US",
+ "namespace": "comments",
+ "resources": [Function resources],
+ },
+ ],
+ },
"name": "sanity/comments",
+ "studio": Object {
+ "components": Object {
+ "layout": [Function CommentsStudioLayout],
+ },
+ },
},
Object {
+ "__internal_tasks": Object {
+ "footerAction": <TasksFooterOpenTasks />,
+ },
+ "document": Object {
+ "actions": [Function actions],
+ },
+ "form": Object {
+ "components": Object {
+ "input": [Function input],
+ },
+ },
+ "i18n": Object {
+ "bundles": Array [
+ Object {
+ "locale": "en-US",
+ "namespace": "tasks",
+ "resources": [Function resources],
+ },
+ ],
+ },
"name": "sanity/tasks",
+ "studio": Object {
+ "components": Object {
+ "activeToolLayout": [Function TasksStudioActiveToolLayout],
+ "layout": [Function TasksStudioLayout],
+ "navbar": [Function TasksStudioNavbar],
},
+ },
+ },
Object {
+ "document": Object {
+ "actions": [Function actions],
+ "badges": [Function badges],
+ },
+ "form": Object {
+ "components": Object {
+ "input": [Function DocumentBannerInput],
+ },
+ },
"name": "sanity/scheduled-publishing",
+ "studio": Object {
+ "components": Object {
+ "layout": [Function SchedulePublishingStudioLayout],
+ },
+ },
+ "tools": [Function tools],
},
Object {
+ "i18n": Object {
+ "bundles": Array [
+ Object {
+ "locale": "en-US",
+ "namespace": "create",
+ "resources": [Function resources],
+ },
+ ],
+ },
"name": "sanity/create-integration",
+ "studio": Object {
+ "components": Object {
+ "layout": [Function CreateIntegrationWrapper],
},
- Object {
- "name": "sanity/releases",
+ },
},
]
❯ src/core/config/__tests__/resolveConfig.test.ts:162:50
|
src/core/config/__tests__/resolveConfig.test.ts > resolveConfig > wont include scheduled publishing default plugin:
packages/sanity/src/core/config/__tests__/resolveConfig.test.ts#L192
AssertionError: expected [ …(3) ] to match object [ { name: 'sanity/comments' }, …(3) ]
- Expected
+ Received
Array [
Object {
+ "document": Object {
+ "components": Object {
+ "unstable_layout": [Function CommentsDocumentLayout],
+ },
+ "inspectors": Array [
+ Object {
+ "component": [Function CommentsInspector],
"name": "sanity/comments",
+ "useMenuItem": [Function useMenuItem],
+ },
+ ],
+ },
+ "form": Object {
+ "components": Object {
+ "field": [Function CommentsField],
+ "input": [Function CommentsInput],
+ },
+ },
+ "i18n": Object {
+ "bundles": Array [
+ Object {
+ "locale": "en-US",
+ "namespace": "comments",
+ "resources": [Function resources],
+ },
+ ],
+ },
+ "name": "sanity/comments",
+ "studio": Object {
+ "components": Object {
+ "layout": [Function CommentsStudioLayout],
+ },
+ },
+ },
+ Object {
+ "__internal_tasks": Object {
+ "footerAction": <TasksFooterOpenTasks />,
+ },
+ "document": Object {
+ "actions": [Function actions],
},
+ "form": Object {
+ "components": Object {
+ "input": [Function input],
+ },
+ },
+ "i18n": Object {
+ "bundles": Array [
Object {
+ "locale": "en-US",
+ "namespace": "tasks",
+ "resources": [Function resources],
+ },
+ ],
+ },
"name": "sanity/tasks",
+ "studio": Object {
+ "components": Object {
+ "activeToolLayout": [Function TasksStudioActiveToolLayout],
+ "layout": [Function TasksStudioLayout],
+ "navbar": [Function TasksStudioNavbar],
},
+ },
+ },
+ Object {
+ "i18n": Object {
+ "bundles": Array [
Object {
+ "locale": "en-US",
+ "namespace": "create",
+ "resources": [Function resources],
+ },
+ ],
+ },
"name": "sanity/create-integration",
+ "studio": Object {
+ "components": Object {
+ "layout": [Function CreateIntegrationWrapper],
},
- Object {
- "name": "sanity/releases",
+ },
},
]
❯ src/core/config/__tests__/resolveConfig.test.ts:192:50
|
Test (ubuntu-latest / node 18)
Process completed with exit code 1.
|