Добавить
Уведомления

Component testing in Storybook with play functions

Component testing in Storybook let’s you describe stories with user interactions!. In this video you’ll learn how to write component tests with play functions — Storybook’s way of describing stories thru user events and interactions. With play functions you can describe UI — not only as a function of props and state — but as the result of clicks and key-presses. Learn from chantastic to use the Interactions Addon, write play functions with testing-library, and assert states with Jest… ▬ Follow us! ▬▬▬▬▬▬▬▬▬▬ Discord: https://discord.com/invite/storybook Twitter: https://twitter.com/storybookjs Instagram: https://www.instagram.com/storybookjs/ GitHub: https://github.com/storybookjs/storybook Follow @chantastic on: - twitter: https://twitter.com/chantastic - youtube: @chantastic ▬ Learn more ▬▬▬▬▬▬▬▬▬▬ - Storybook Interactions Addon: https://storybook.js.org/addons/@storybook/addon-interactions - Storybook Test Runner Addon: https://storybook.js.org/addons/@storybook/test-runner - Writing interaction tests documentation: https://storybook.js.org/docs/react/writing-tests/interaction-testing#write-an-interaction-test - Storybook 6.5 Announcement: https://storybook.js.org/blog/storybook-6-5/ - Interaction testing with Storybook post: https://storybook.js.org/blog/interaction-testing-with-storybook/ - Testing component interactions with Storybook: https://storybook.js.org/blog/test-component-interactions-with-storybook/ - Automate accessibility tests with Storybook: https://storybook.js.org/blog/automate-accessibility-tests-with-storybook/ - Thinking in React (classes): https://reactjs.org/docs/thinking-in-react.html#gatsby-focus-wrapper - Thinking in React (hooks): https://beta.reactjs.org/learn/thinking-in-react - Storybook at https://learnstorybook.com/ - Storybook addons at https://storybook.js.org/addons - Component driven UI development at https://www.componentdriven.org/ ▬ Free Storybook hosting ▬▬▬▬▬▬▬▬▬▬ Chromatic is made by Storybook maintainers and sets up in just 2 minutes. Claim free Storybook hosting at https://www.chromatic.com/!

Иконка канала Все о CSS
20 подписчиков
12+
16 просмотров
2 года назад
27 ноября 2023 г.
12+
16 просмотров
2 года назад
27 ноября 2023 г.

Component testing in Storybook let’s you describe stories with user interactions!. In this video you’ll learn how to write component tests with play functions — Storybook’s way of describing stories thru user events and interactions. With play functions you can describe UI — not only as a function of props and state — but as the result of clicks and key-presses. Learn from chantastic to use the Interactions Addon, write play functions with testing-library, and assert states with Jest… ▬ Follow us! ▬▬▬▬▬▬▬▬▬▬ Discord: https://discord.com/invite/storybook Twitter: https://twitter.com/storybookjs Instagram: https://www.instagram.com/storybookjs/ GitHub: https://github.com/storybookjs/storybook Follow @chantastic on: - twitter: https://twitter.com/chantastic - youtube: @chantastic ▬ Learn more ▬▬▬▬▬▬▬▬▬▬ - Storybook Interactions Addon: https://storybook.js.org/addons/@storybook/addon-interactions - Storybook Test Runner Addon: https://storybook.js.org/addons/@storybook/test-runner - Writing interaction tests documentation: https://storybook.js.org/docs/react/writing-tests/interaction-testing#write-an-interaction-test - Storybook 6.5 Announcement: https://storybook.js.org/blog/storybook-6-5/ - Interaction testing with Storybook post: https://storybook.js.org/blog/interaction-testing-with-storybook/ - Testing component interactions with Storybook: https://storybook.js.org/blog/test-component-interactions-with-storybook/ - Automate accessibility tests with Storybook: https://storybook.js.org/blog/automate-accessibility-tests-with-storybook/ - Thinking in React (classes): https://reactjs.org/docs/thinking-in-react.html#gatsby-focus-wrapper - Thinking in React (hooks): https://beta.reactjs.org/learn/thinking-in-react - Storybook at https://learnstorybook.com/ - Storybook addons at https://storybook.js.org/addons - Component driven UI development at https://www.componentdriven.org/ ▬ Free Storybook hosting ▬▬▬▬▬▬▬▬▬▬ Chromatic is made by Storybook maintainers and sets up in just 2 minutes. Claim free Storybook hosting at https://www.chromatic.com/!

, чтобы оставлять комментарии