chore(deps): update patch #680
Annotations
2 errors and 1 warning
src/components/ui/drawer.test.tsx > Drawer components > closes the drawer when DrawerClose is clicked:
src/components/ui/drawer.test.tsx#L98
Error: expect(element).not.toBeInTheDocument()
expected document not to contain element, found <h2
class="text-lg font-semibold leading-none tracking-tight"
id="radix-:r4:"
>
Drawer Title
</h2> instead
Ignored nodes: comments, script, style
<html
style="scroll-behavior: auto;"
>
<head />
<body
data-scroll-locked="1"
style="pointer-events: none;"
>
<span
aria-hidden="true"
data-aria-hidden="true"
data-radix-focus-guard=""
style="outline: none; opacity: 0; position: fixed; pointer-events: none;"
tabindex="0"
/>
<div
aria-hidden="true"
data-aria-hidden="true"
>
<button
aria-controls="radix-:r3:"
aria-expanded="true"
aria-haspopup="dialog"
data-state="open"
type="button"
>
Open Drawer
</button>
</div>
<div
aria-hidden="true"
class="fixed inset-0 z-50 bg-black/80"
data-aria-hidden="true"
data-state="open"
data-vaul-overlay=""
data-vaul-snap-points="false"
data-vaul-snap-points-overlay="true"
style="pointer-events: auto;"
/>
<div
aria-describedby="radix-:r5:"
aria-labelledby="radix-:r4:"
class="fixed inset-x-0 bottom-0 z-50 flex h-full flex-col rounded-t-[10px] border bg-background"
data-state="open"
data-vaul-custom-container="false"
data-vaul-delayed-snap-points="false"
data-vaul-drawer=""
data-vaul-drawer-direction="bottom"
data-vaul-snap-points="false"
id="radix-:r3:"
role="dialog"
style="pointer-events: auto;"
tabindex="-1"
>
<div
class="grid gap-1.5 p-4 text-center sm:text-left"
>
<h2
class="text-lg font-semibold leading-none tracking-tight"
id="radix-:r4:"
>
Drawer Title
</h2>
<p
class="text-sm text-muted-foreground"
id="radix-:r5:"
>
Drawer Description
</p>
</div>
<div
class="mt-auto flex flex-col gap-2 p-4"
>
<button
type="button"
>
Close
</button>
</div>
</div>
<span
aria-hidden="true"
data-aria-hidden="true"
data-radix-focus-guard=""
style="outline: none; opacity: 0; position: fixed; pointer-events: none;"
tabindex="0"
/>
</body>
</html>...
❯ src/components/ui/drawer.test.tsx:98:22
❯ 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
|
build
Process completed with exit code 1.
|
build
The following actions use a deprecated Node.js version and will be forced to run on node20: pnpm/action-setup@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|