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 "./NavBar.stories.tsx" const { AllStates, AllVariants, Playground, InAppShell, Interactive, } = composeStories(stories) test("the nav is named, and its destinations are links", async () => { const { canvas } = await mountStory(Playground) const nav = expectAgentDrivable(canvas, { name: "Main", role: "navigation", }) const board = expectAgentDrivable(within(nav), { name: "Board", role: "link", }) // A `