import { composeStories } from "@storybook/react" import { expect, waitFor } 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 "./Field.stories.tsx" const { AdoptsChildId, AdoptsOverlayTriggerId, AllStates, AllVariants, Playground, ForwardsRestProps, Group, Nested, } = composeStories(stories) test("a control's own id is adopted, not overwritten", async () => { const { canvas, canvasElement } = await mountStory(AdoptsChildId) // The child was written ``. The Field // must keep that id — overwriting it with a minted `-control` id is // what broke the outside-in references the id exists for — and the // `