fix: release dateTime picker bugs #29527
Annotations
10 errors and 8 warnings
src/core/releases/components/dialog/__tests__/CreateReleaseDialog.test.tsx > CreateReleaseDialog > when creating a new release > should render the dialog:
packages/sanity/src/core/releases/components/dialog/__tests__/CreateReleaseDialog.test.tsx#L28
TestingLibraryElementError: Unable to find an accessible element with the role "dialog"
There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole
Ignored nodes: comments, script, style
<body>
<div>
<div
class="sc-efgocT gddDFb"
data-testid="loading-block"
>
<div
class="StyledText-sc-11ov82j-0 ivlrmW StyledSpinner-sc-124hnd0-0 dlxwXj sc-ffiKcS doCHgh"
data-ui="Spinner"
>
<span>
<svg
data-sanity-icon="spinner"
fill="none"
height="1em"
viewBox="0 0 25 25"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M4.5 12.5C4.5 16.9183 8.08172 20.5 12.5 20.5C16.9183 20.5 20.5 16.9183 20.5 12.5C20.5 8.08172 16.9183 4.5 12.5 4.5"
stroke="currentColor"
stroke-linejoin="round"
stroke-width="1.2"
/>
</svg>
</span>
</div>
</div>
</div>
</body>
❯ Object.getElementError ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:37:19
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ getByRole ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/core/releases/components/dialog/__tests__/CreateReleaseDialog.test.tsx:28:21
|
src/core/releases/components/dialog/__tests__/CreateReleaseDialog.test.tsx > CreateReleaseDialog > when creating a new release > should call onCancel when dialog is closed:
packages/sanity/src/core/releases/components/dialog/__tests__/CreateReleaseDialog.test.tsx#L32
TestingLibraryElementError: Unable to find an accessible element with the role "button" and name `/close/i`
There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole
Ignored nodes: comments, script, style
<body>
<div>
<div
class="sc-efgocT gddDFb"
data-testid="loading-block"
>
<div
class="StyledText-sc-11ov82j-0 ivlrmW StyledSpinner-sc-124hnd0-0 dlxwXj sc-ffiKcS doCHgh"
data-ui="Spinner"
>
<span>
<svg
data-sanity-icon="spinner"
fill="none"
height="1em"
viewBox="0 0 25 25"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M4.5 12.5C4.5 16.9183 8.08172 20.5 12.5 20.5C16.9183 20.5 20.5 16.9183 20.5 12.5C20.5 8.08172 16.9183 4.5 12.5 4.5"
stroke="currentColor"
stroke-linejoin="round"
stroke-width="1.2"
/>
</svg>
</span>
</div>
</div>
</div>
</body>
❯ Object.getElementError ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:37:19
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ getByRole ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/core/releases/components/dialog/__tests__/CreateReleaseDialog.test.tsx:32:30
|
src/core/releases/tool/detail/__tests__/ReleaseTypePicker.test.tsx > ReleaseTypePicker > interacting with the popup content > sets the release type to undecided when undecided is selected:
packages/sanity/src/core/releases/tool/detail/__tests__/ReleaseTypePicker.test.tsx#L179
AssertionError: expected "spy" to be called 1 times, but got 0 times
❯ src/core/releases/tool/detail/__tests__/ReleaseTypePicker.test.tsx:179:33
|
src/core/releases/tool/detail/__tests__/ReleaseTypePicker.test.tsx > ReleaseTypePicker > picker behavior based on release state > shows a spinner when updating the release:
packages/sanity/src/core/releases/tool/detail/__tests__/ReleaseTypePicker.test.tsx#L221
TestingLibraryElementError: Unable to find an element by: [data-testid="updating-release-spinner"]
Ignored nodes: comments, script, style
<body>
<div
data-portal=""
/>
<div>
<div
class="StyledBox-sc-1hhky9f-0 fVdNLf StyledCard-sc-osnro2-0 biplee MotionCard-sc-ihg31s-0 hyfGBc"
data-as="div"
data-placement="bottom-start"
data-scheme="light"
data-tone="default"
data-ui="Popover"
style="left: 0px; position: absolute; top: 0px; z-index: 400; will-change: transform; --motion-content-opacity: 0; opacity: 0.5; transform: scale(0.97); transform-origin: 50% 50% 0;"
>
<div
class="StyledBox-sc-1hhky9f-0 ZgQAC StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Popover__wrapper"
>
<div
class="StyledBox-sc-1hhky9f-0 yWRwy StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Flex"
>
<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 StyledInline-sc-1pkiy6j-0 jFPncZ CustomInline-sc-5cm04m-0 iKkXTu"
data-as="div"
data-ui="TabList"
role="tablist"
>
<div>
<button
aria-controls="release-timing-asap"
aria-selected="false"
class="StyledButton-sc-aaekt4-0 izLyRv CustomButton-sc-1kns779-0 fqdfGR"
data-disabled="false"
data-ui="Tab"
id="release-timing-asap-tab"
role="tab"
tabindex="-1"
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 kLMbRc"
data-as="span"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC"
data-as="div"
data-ui="Box"
>
<div
class="StyledText-sc-11ov82j-0 fUDNof"
data-ui="Text"
>
<span>
<span
class="SpanWithTextOverflow-sc-ol2i3b-0 DGyqG"
>
ASAP
</span>
</span>
</div>
</div>
</span>
</span>
</button>
</div>
<div>
<button
aria-controls="release-timing-at-time"
aria-selected="false"
class="StyledButton-sc-aaekt4-0 izLyRv CustomButton-sc-1kns779-0 fqdfGR"
data-disabled="false"
data-ui="Tab"
id="release-timing-at-time-tab"
role="tab"
tabindex="-1"
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 kLMbRc"
data-as="span"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC"
data-as="div"
data-ui="Box"
>
<div
class="StyledText-sc-11ov82j-0 fUDNof"
|
Test (ubuntu-latest / node 20)
Process completed with exit code 1.
|
src/core/releases/components/dialog/__tests__/CreateReleaseDialog.test.tsx > CreateReleaseDialog > when creating a new release > should render the dialog:
packages/sanity/src/core/releases/components/dialog/__tests__/CreateReleaseDialog.test.tsx#L28
TestingLibraryElementError: Unable to find an accessible element with the role "dialog"
There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole
Ignored nodes: comments, script, style
<body>
<div>
<div
class="sc-efgocT gddDFb"
data-testid="loading-block"
>
<div
class="StyledText-sc-11ov82j-0 ivlrmW StyledSpinner-sc-124hnd0-0 dlxwXj sc-ffiKcS doCHgh"
data-ui="Spinner"
>
<span>
<svg
data-sanity-icon="spinner"
fill="none"
height="1em"
viewBox="0 0 25 25"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M4.5 12.5C4.5 16.9183 8.08172 20.5 12.5 20.5C16.9183 20.5 20.5 16.9183 20.5 12.5C20.5 8.08172 16.9183 4.5 12.5 4.5"
stroke="currentColor"
stroke-linejoin="round"
stroke-width="1.2"
/>
</svg>
</span>
</div>
</div>
</div>
</body>
❯ Object.getElementError ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:37:19
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ getByRole ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/core/releases/components/dialog/__tests__/CreateReleaseDialog.test.tsx:28:21
|
src/core/releases/components/dialog/__tests__/CreateReleaseDialog.test.tsx > CreateReleaseDialog > when creating a new release > should call onCancel when dialog is closed:
packages/sanity/src/core/releases/components/dialog/__tests__/CreateReleaseDialog.test.tsx#L32
TestingLibraryElementError: Unable to find an accessible element with the role "button" and name `/close/i`
There are no accessible roles. But there might be some inaccessible roles. If you wish to access them, then set the `hidden` option to `true`. Learn more about this here: https://testing-library.com/docs/dom-testing-library/api-queries#byrole
Ignored nodes: comments, script, style
<body>
<div>
<div
class="sc-efgocT gddDFb"
data-testid="loading-block"
>
<div
class="StyledText-sc-11ov82j-0 ivlrmW StyledSpinner-sc-124hnd0-0 dlxwXj sc-ffiKcS doCHgh"
data-ui="Spinner"
>
<span>
<svg
data-sanity-icon="spinner"
fill="none"
height="1em"
viewBox="0 0 25 25"
width="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M4.5 12.5C4.5 16.9183 8.08172 20.5 12.5 20.5C16.9183 20.5 20.5 16.9183 20.5 12.5C20.5 8.08172 16.9183 4.5 12.5 4.5"
stroke="currentColor"
stroke-linejoin="round"
stroke-width="1.2"
/>
</svg>
</span>
</div>
</div>
</div>
</body>
❯ Object.getElementError ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:37:19
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:76:38
❯ ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:52:17
❯ getByRole ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/query-helpers.js:95:19
❯ src/core/releases/components/dialog/__tests__/CreateReleaseDialog.test.tsx:32:30
|
src/core/releases/tool/detail/__tests__/ReleaseTypePicker.test.tsx > ReleaseTypePicker > interacting with the popup content > sets the release type to undecided when undecided is selected:
packages/sanity/src/core/releases/tool/detail/__tests__/ReleaseTypePicker.test.tsx#L179
AssertionError: expected "spy" to be called 1 times, but got 0 times
❯ src/core/releases/tool/detail/__tests__/ReleaseTypePicker.test.tsx:179:33
|
src/core/releases/tool/detail/__tests__/ReleaseTypePicker.test.tsx > ReleaseTypePicker > picker behavior based on release state > shows a spinner when updating the release:
packages/sanity/src/core/releases/tool/detail/__tests__/ReleaseTypePicker.test.tsx#L221
TestingLibraryElementError: Unable to find an element by: [data-testid="updating-release-spinner"]
Ignored nodes: comments, script, style
<body>
<div
data-portal=""
/>
<div>
<div
class="StyledBox-sc-1hhky9f-0 fVdNLf StyledCard-sc-osnro2-0 biplee MotionCard-sc-ihg31s-0 hyfGBc"
data-as="div"
data-placement="bottom-start"
data-scheme="light"
data-tone="default"
data-ui="Popover"
style="left: 0px; position: absolute; top: 0px; z-index: 400; will-change: transform; --motion-content-opacity: 0; opacity: 0.5; transform: scale(0.97); transform-origin: 50% 50% 0;"
>
<div
class="StyledBox-sc-1hhky9f-0 ZgQAC StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Popover__wrapper"
>
<div
class="StyledBox-sc-1hhky9f-0 yWRwy StyledFlex-sc-oxesg3-0 kPMPfV"
data-as="div"
data-ui="Flex"
>
<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 StyledInline-sc-1pkiy6j-0 jFPncZ CustomInline-sc-5cm04m-0 iKkXTu"
data-as="div"
data-ui="TabList"
role="tablist"
>
<div>
<button
aria-controls="release-timing-asap"
aria-selected="false"
class="StyledButton-sc-aaekt4-0 izLyRv CustomButton-sc-1kns779-0 fqdfGR"
data-disabled="false"
data-ui="Tab"
id="release-timing-asap-tab"
role="tab"
tabindex="-1"
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 kLMbRc"
data-as="span"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC"
data-as="div"
data-ui="Box"
>
<div
class="StyledText-sc-11ov82j-0 fUDNof"
data-ui="Text"
>
<span>
<span
class="SpanWithTextOverflow-sc-ol2i3b-0 DGyqG"
>
ASAP
</span>
</span>
</div>
</div>
</span>
</span>
</button>
</div>
<div>
<button
aria-controls="release-timing-at-time"
aria-selected="false"
class="StyledButton-sc-aaekt4-0 izLyRv CustomButton-sc-1kns779-0 fqdfGR"
data-disabled="false"
data-ui="Tab"
id="release-timing-at-time-tab"
role="tab"
tabindex="-1"
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 kLMbRc"
data-as="span"
data-ui="Flex"
>
<div
class="StyledBox-sc-1hhky9f-0 fFvGUC"
data-as="div"
data-ui="Box"
>
<div
class="StyledText-sc-11ov82j-0 fUDNof"
|
Test (ubuntu-latest / node 18)
Process completed with exit code 1.
|
Test (ubuntu-latest / node 20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Test (ubuntu-latest / node 20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Test (ubuntu-latest / node 18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Test (ubuntu-latest / node 20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Test (ubuntu-latest / node 18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Test (ubuntu-latest / node 18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Test (ubuntu-latest / node 20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Test (ubuntu-latest / node 18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|