import { Meta } from '@storybook/react'; import { MoleculeStory } from '@amazeelabs/react-framework-bridge/storybook'; import { within } from '@storybook/testing-library'; import MOLECULE from './MOLECULE'; export default { component: MOLECULE, } as Meta; export const ExampleMOLECULE: MoleculeStory = { name: 'MOLECULE', args: { content: 'My awesome molecule.', }, play: async (context) => { const canvas = within(context.canvasElement); await canvas.findByText('My awesome molecule.'); }, };