import { buildHtml, OrganismStory, } from '@amazeelabs/react-framework-bridge/storybook'; import { Meta } from '@storybook/react'; import { within } from '@storybook/testing-library'; import Prose from './Prose'; export default { component: Prose, } as Meta; export const ExampleProse: OrganismStory = { args: { Content: buildHtml(`

A simple text paragraph that is hopefully long enough, so it wraps the line at some point. It also contains emphasized, strongly emphasized and linked words.

`), }, play: async ({ canvasElement }) => { const canvas = within(canvasElement); await canvas.findByText(/a simple text paragraph/i); }, };