Created
January 10, 2023 18:04
-
-
Save ludicast/e287ee6b0e3c05aac6afb7636cc73d66 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Story | |
name="Filled Form" | |
play={ async ({ canvasElement }) => { | |
const canvas = within(canvasElement); | |
await userEvent.type(canvas.getByTestId('email'), '[email protected]'); | |
… | |
await userEvent.click(canvas.getByRole('button')); | |
await expect( | |
canvas.getByText( | |
'Everything is perfect. Your account is ready and we should probably get you started!' | |
) | |
).toBeInTheDocument(); | |
}}> | |
{Template.bind({})} | |
</Story> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment