The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import { expect, it } from "vite-plus/test"; |
| 2 | import { page } from "vite-plus/test/browser"; |
| 3 | |
| 4 | import { render } from "../../test/render"; |
| 5 | import { RightPanelSheet } from "./RightPanelSheet"; |
| 6 | |
| 7 | it("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 | }); |