import { composeStories } from "@storybook/react" import { expect, userEvent, waitFor, within, } from "storybook/test" import { test } from "vitest" import { expectNoAxeViolations } from "../expectNoAxeViolations.testHelpers.ts" import { mountStory } from "../mountStory.testHelpers.ts" import { expectAgentDrivable } from "../testing/index.ts" import * as stories from "./Nav.stories.tsx" const { AllStates, AllVariants, Playground, Interactive } = composeStories(stories) test("the destinations are a named navigation landmark", async () => { const { canvas } = await mountStory(Playground) const nav = expectAgentDrivable(canvas, { name: "Main", role: "navigation", }) await expectNoAxeViolations(nav) }) /** * The whole reason this component exists rather than a row of * buttons. A `