import { expect, userEvent, waitFor, within } from "storybook/test"; import type { Meta, StoryObj } from "@storybook/react-vite"; import { type ReactNode, useState } from "react"; import type { Accent } from "../../core/AlouetteConfig"; import { Button } from "../actions/Button"; import { Text } from "../primitives/Text"; import { View } from "../primitives/View"; import { Story } from "../story-components/Story"; import { StoryGrid } from "../story-components/StoryGrid"; import { Box } from "./Box"; type ThisStory = StoryObj; /** A surface whose accent a button switches, to watch its ground fade. */ function AccentChangeSurface(): ReactNode { const [accent, setAccent] = useState("info"); return (