import { composeStories } from "@storybook/react" import { expect, userEvent } from "storybook/test" import { test } from "vitest" import { mountStory } from "../mountStory.testHelpers.ts" import { expectAgentDrivable } from "../testing/index.ts" import * as stories from "./EmptyState.stories.tsx" const { Playground, DeeplyNested, Interactive } = composeStories(stories) test("the heading is the handle", async () => { const { canvas } = await mountStory(Playground) expectAgentDrivable(canvas, { name: "No discs queued", role: "heading", }) }) test("the heading level is the caller's, and Tab reaches the way out", async () => { const { canvas } = await mountStory(Interactive) // `headingLevel` is a prop rather than a guess, because an empty // state nested in a card is not an `