Skip to content

fix: release dateTime picker bugs #29531

fix: release dateTime picker bugs

fix: release dateTime picker bugs #29531

Triggered via pull request January 24, 2025 19:40
Status Failure
Total duration 3m 30s
Artifacts

test.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

3 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#L27
Error: expect(element).not.toBeInTheDocument() expected document not to contain element, found <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> instead Ignored nodes: comments, script, style <html> <head /> <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> <div data-portal="" /> </body> </html>... ❯ src/core/releases/components/dialog/__tests__/CreateReleaseDialog.test.tsx:27:59 ❯ runWithExpensiveErrorDiagnosticsDisabled ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12 ❯ checkCallback ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:124:77 ❯ Timeout.checkRealTimersCallback ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:118:16
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#L27
Error: expect(element).not.toBeInTheDocument() expected document not to contain element, found <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> instead Ignored nodes: comments, script, style <html> <head /> <body> <div data-portal="" /> <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> </html>... ❯ src/core/releases/components/dialog/__tests__/CreateReleaseDialog.test.tsx:27:59 ❯ runWithExpensiveErrorDiagnosticsDisabled ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/config.js:47:12 ❯ checkCallback ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:124:77 ❯ Timeout.checkRealTimersCallback ../../node_modules/.pnpm/@testing-library[email protected]/node_modules/@testing-library/dom/dist/wait-for.js:118:16
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