import { expect, userEvent, within } from "storybook/test"; import type { Meta, StoryObj } from "@storybook/react-vite"; import { type ReactNode, useState } from "react"; import { Box } from "../containers/Box"; import { Badge } from "../data/Badge"; import { Text } from "../primitives/Text"; import { View } from "../primitives/View"; import { Story } from "../story-components/Story"; import { Button } from "./Button"; import { PressableListItem } from "./PressableListItem"; type ThisStory = StoryObj; export default { title: "alouette/Actions/PressableListItem", component: PressableListItem, parameters: { componentSubtitle: "An interactive list item component for building menus, navigation, and selection interfaces", }, } satisfies Meta; export const PreviewListStory: ThisStory = { parameters: { layout: "padded", chromatic: { disableSnapshot: true }, }, args: { onPress: () => {}, children: List Item, }, render: (args) => , }; function PressLog({ value }: { value: string }): ReactNode { return {value}; } function PullRequestRow(): ReactNode { const [pressed, setPressed] = useState("nothing"); return (