play function is 何 Storybook 6.4 では、CSF 3.0 や new Story Store など、いくつかの新機能が導入されましたが、その目玉機能の 1 つが play function です。 // RegistrationForm.stories.ts|tsx import React from "react"; import { ComponentStory, ComponentMeta } from "@storybook/react"; import { screen, userEvent } from "@storybook/testing-library"; import { RegistrationForm } from "./RegistrationForm"; export default { /* 👇 The title prop i
![Storybook の play function と VRT - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/23fb9f99bab36fa83c097deee75aa04138a87e22/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Fadvent-calendar-ogp-background-7940cd1c8db80a7ec40711d90f43539e.jpg%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTk3MiZoPTM3OCZ0eHQ9U3Rvcnlib29rJTIwJUUzJTgxJUFFJTIwcGxheSUyMGZ1bmN0aW9uJTIwJUUzJTgxJUE4JTIwVlJUJnR4dC1jb2xvcj0lMjMzQTNDM0MmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9NTYmdHh0LWFsaWduPWxlZnQlMkN0b3Amcz04NTY2YWFiMTJiZjFmMDQ0MTdlMzU3MGQ4YzZmYzlmMw%26mark-x%3D142%26mark-y%3D100%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZoPTc2Jnc9OTcyJnR4dD0lNDBRdXJhbXkmdHh0LWNvbG9yPSUyMzNBM0MzQyZ0eHQtZm9udD1IaXJhZ2lubyUyMFNhbnMlMjBXNiZ0eHQtc2l6ZT0zNiZ0eHQtYWxpZ249bGVmdCUyQ3RvcCZzPWFmMzI5YTgwNGYyNzE2YTllYjU3MTE5ZDNmNDkwNGYz%26blend-x%3D142%26blend-y%3D504%26blend-mode%3Dnormal%26s%3D47ec0b58c3353df0b63a1841387a1d3d)