1import { expect, it } from "vite-plus/test";
2import { page } from "vite-plus/test/browser";
3
4import { render } from "../../test/render";
5import { RightPanelSheet } from "./RightPanelSheet";
6
7it("names the open right-panel dialog", async () => {
8 await using _screen = await render(
9 <RightPanelSheet open animationDurationMs={0} onClose={() => {}}>
10 <div>Panel content</div>
11 </RightPanelSheet>,
12 );
13 const dialog = page.getByRole("dialog");
14 await expect.element(dialog).toBeVisible();
15 await expect.element(dialog).not.toHaveAccessibleName("");
16});