import { composeStories, composeStory, } from "@storybook/react" import { expect, userEvent, waitFor, within, } from "storybook/test" import { test } from "vitest" import { userEvent as browserUserEvent } from "vitest/browser" import { expectNoAxeViolations } from "../expectNoAxeViolations.testHelpers.ts" import { mountStory } from "../mountStory.testHelpers.ts" import { expectAgentDrivable } from "../testing/index.ts" import meta, * as stories from "./GroupedList.stories.tsx" const { AllStates, AllVariants, ColorSchemes, Empty, Interactive, LongText, NarrowView, Playground, Responsive, RowStates, SelectableRows, StickyHeadings, } = composeStories(stories) test("a group's heading names its list", async () => { const { canvas, canvasElement } = await mountStory(Playground) // The heading labels the `