import * as a11yAddonAnnotations from "@storybook/addon-a11y/preview";
import { setProjectAnnotations } from "@storybook/react-vite";
import * as projectAnnotations from "../../.storybook/preview";

// Calling `setProjectAnnotations` here ensures any `composeStories(...)` invocation
// inside the e2e suite gets the same Mantine provider, theme, font links, and a11y
// decorators that real Storybook stories receive in the iframe. The storybook
// vitest plugin does this for in-story `play` tests; the e2e project does it
// here so cross-feature browser tests can mount existing stories verbatim.
setProjectAnnotations([a11yAddonAnnotations, projectAnnotations]);
