Skip to content

Commit 8e18ad6

Browse files
committed
Docs: Intro Storybook minor updates
1 parent e0a2d2b commit 8e18ad6

File tree

9 files changed

+19
-18
lines changed

9 files changed

+19
-18
lines changed

content/intro-to-storybook/angular/en/deploy.md

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ jobs:
108108
with:
109109
#👇 Chromatic projectToken, see https://storybook.js.org/tutorials/intro-to-storybook/angular/en/deploy/ to obtain it
110110
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
111+
token: ${{ secrets.GITHUB_TOKEN }}
111112
```
112113

113114
<div class="aside">

content/intro-to-storybook/angular/en/screen.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ Can't we automate this workflow and test our component interactions automaticall
362362

363363
### Write a component test using the play function
364364

365-
Storybook's [`play`](https://storybook.js.org/docs/angular/writing-stories/play-function) and [`@storybook/addon-interactions`](https://storybook.js.org/docs/writing-tests/component-testing) help us with that. A play function includes small snippets of code that run after the story renders.
365+
Storybook's [`play`](https://storybook.js.org/docs/writing-stories/play-function) and [`@storybook/addon-interactions`](https://storybook.js.org/docs/writing-tests/component-testing) help us with that. A play function includes small snippets of code that run after the story renders.
366366

367367
The play function helps us verify what happens to the UI when tasks are updated. It uses framework-agnostic DOM APIs, which means we can write stories with the play function to interact with the UI and simulate human behavior no matter the frontend framework.
368368

content/intro-to-storybook/react/en/screen.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -330,15 +330,15 @@ Check your Storybook, and you'll see that the `error` story is now working as in
330330
/>
331331
</video>
332332

333-
## Interaction tests
333+
## Component tests
334334

335335
So far, we've been able to build a fully functional application from the ground up, starting from a simple component up to a screen and continuously testing each change using our stories. But each new story also requires a manual check on all the other stories to ensure the UI doesn't break. That's a lot of extra work.
336336

337337
Can't we automate this workflow and test our component interactions automatically?
338338

339-
### Write an interaction test using the play function
339+
### Write a component test using the play function
340340

341-
Storybook's [`play`](https://storybook.js.org/docs/writing-stories/play-function) and [`@storybook/addon-interactions`](https://storybook.js.org/docs/writing-tests/interaction-testing) help us with that. A play function includes small snippets of code that run after the story renders.
341+
Storybook's [`play`](https://storybook.js.org/docs/writing-stories/play-function) and [`@storybook/addon-interactions`](https://storybook.js.org/docs/writing-tests/component-testing) help us with that. A play function includes small snippets of code that run after the story renders.
342342

343343
The play function helps us verify what happens to the UI when tasks are updated. It uses framework-agnostic DOM APIs, which means we can write stories with the play function to interact with the UI and simulate human behavior no matter the frontend framework.
344344

@@ -457,7 +457,7 @@ yarn test-storybook --watch
457457

458458
<div class="aside">
459459

460-
💡 Interaction testing with the play function is a fantastic way to test your UI components. It can do much more than we've seen here; we recommend reading the [official documentation](https://storybook.js.org/docs/writing-tests/interaction-testing) to learn more about it.
460+
💡 Component testing with the play function is a fantastic way to test your UI components. It can do much more than we've seen here; we recommend reading the [official documentation](https://storybook.js.org/docs/writing-tests/component-testing) to learn more about it.
461461

462462
For an even deeper dive into testing, check out the [Testing Handbook](/ui-testing-handbook). It covers testing strategies used by scaled-front-end teams to supercharge your development workflow.
463463

content/intro-to-storybook/react/en/test.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ No Storybook tutorial would be complete without testing. Testing is essential to
1010

1111
- **Accessibility tests** with a11y addon verify that the component is accessible to everyone. They're great for allowing us to collect information about how people with certain types of disabilities use our components.
1212

13-
- **Interaction tests** with the play function verify that the component behaves as expected when interacting with it. They're great for testing the behavior of a component when it's in use.
13+
- **Component tests** with the play function verify that the component behaves as expected when interacting with it. They're great for testing the behavior of a component when it's in use.
1414

1515
## “But does it look right?”
1616

content/intro-to-storybook/svelte/en/screen.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,13 @@ Cycling through states in Storybook makes it easy to test we’ve done this corr
161161
/>
162162
</video>
163163

164-
## Interaction tests
164+
## Component tests
165165

166166
So far, we've been able to build a fully functional application from the ground up, starting from a simple component up to a screen and continuously testing each change using our stories. But each new story also requires a manual check on all the other stories to ensure the UI doesn't break. That's a lot of extra work.
167167

168168
Can't we automate this workflow and test our component interactions automatically?
169169

170-
### Write an interaction test using the play function
170+
### Write a component test using the play function
171171

172172
Storybook's [`play`](https://storybook.js.org/docs/writing-stories/play-function) and [`@storybook/addon-interactions`](https://storybook.js.org/docs/writing-tests/interaction-testing) help us with that. A play function includes small snippets of code that run after the story renders.
173173

@@ -252,7 +252,7 @@ yarn test-storybook --watch
252252

253253
<div class="aside">
254254

255-
💡 Interaction testing with the play function is a fantastic way to test your UI components. It can do much more than we've seen here; we recommend reading the [official documentation](https://storybook.js.org/docs/writing-tests/interaction-testing) to learn more about it.
255+
💡 Component testing with the play function is a fantastic way to test your UI components. It can do much more than we've seen here; we recommend reading the [official documentation](https://storybook.js.org/docs/writing-tests/component-testing) to learn more about it.
256256

257257
For an even deeper dive into testing, check out the [Testing Handbook](/ui-testing-handbook). It covers testing strategies used by scaled-front-end teams to supercharge your development workflow.
258258

content/intro-to-storybook/svelte/en/test.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ No Storybook tutorial would be complete without testing. Testing is essential to
1010

1111
- **Accessibility tests** with a11y addon verify that the component is accessible to everyone. They're great for allowing us to collect information about how people with certain types of disabilities use our components.
1212

13-
- **Interaction tests** with the play function verify that the component behaves as expected when interacting with it. They're great for testing the behavior of a component when it's in use.
13+
- **Component tests** with the play function verify that the component behaves as expected when interacting with it. They're great for testing the behavior of a component when it's in use.
1414

1515
## “But does it look right?”
1616

content/intro-to-storybook/vue/en/screen.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,15 @@ Cycling through states in Storybook makes it easy to test we’ve done this corr
188188
/>
189189
</video>
190190

191-
## Interaction tests
191+
## Component tests
192192

193193
So far, we've been able to build a fully functional application from the ground up, starting from a simple component up to a screen and continuously testing each change using our stories. But each new story also requires a manual check on all the other stories to ensure the UI doesn't break. That's a lot of extra work.
194194

195195
Can't we automate this workflow and test our component interactions automatically?
196196

197-
### Write an interaction test using the play function
197+
### Write a component test using the play function
198198

199-
Storybook's [`play`](https://storybook.js.org/docs/writing-stories/play-function) and [`@storybook/addon-interactions`](https://storybook.js.org/docs/writing-tests/interaction-testing) help us with that. A play function includes small snippets of code that run after the story renders.
199+
Storybook's [`play`](https://storybook.js.org/docs/writing-stories/play-function) and [`@storybook/addon-interactions`](https://storybook.js.org/docs/writing-tests/component-testing) help us with that. A play function includes small snippets of code that run after the story renders.
200200

201201
The play function helps us verify what happens to the UI when tasks are updated. It uses framework-agnostic DOM APIs, which means we can write stories with the play function to interact with the UI and simulate human behavior no matter the frontend framework.
202202

@@ -279,7 +279,7 @@ yarn test-storybook --watch
279279

280280
<div class="aside">
281281

282-
💡 Interaction testing with the play function is a fantastic way to test your UI components. It can do much more than we've seen here; we recommend reading the [official documentation](https://storybook.js.org/docs/writing-tests/interaction-testing) to learn more about it.
282+
💡 Component testing with the play function is a fantastic way to test your UI components. It can do much more than we've seen here; we recommend reading the [official documentation](https://storybook.js.org/docs/writing-tests/component-testing) to learn more about it.
283283

284284
For an even deeper dive into testing, check out the [Testing Handbook](/ui-testing-handbook). It covers testing strategies used by scaled-front-end teams to supercharge your development workflow.
285285

content/intro-to-storybook/vue/en/test.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ No Storybook tutorial would be complete without testing. Testing is essential to
1010

1111
- **Accessibility tests** with a11y addon verify that the component is accessible to everyone. They're great for allowing us to collect information about how people with certain types of disabilities use our components.
1212

13-
- **Interaction tests** with the play function verify that the component behaves as expected when interacting with it. They're great for testing the behavior of a component when it's in use.
13+
- **Component tests** with the play function verify that the component behaves as expected when interacting with it. They're great for testing the behavior of a component when it's in use.
1414

1515
## “But does it look right?”
1616

gatsby-config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = {
2020
'intro-to-storybook': {
2121
react: {
2222
de: 5.3,
23-
en: 8.1,
23+
en: 8.3,
2424
es: 6.5,
2525
fr: 6.5,
2626
it: 7.6,
@@ -38,7 +38,7 @@ module.exports = {
3838
pt: 7.6,
3939
},
4040
vue: {
41-
en: 8.1,
41+
en: 8.3,
4242
es: 6.1,
4343
fr: 5.3,
4444
pt: 5.3,
@@ -52,7 +52,7 @@ module.exports = {
5252
pt: 5.3,
5353
},
5454
svelte: {
55-
en: 8.1,
55+
en: 8.3,
5656
es: 5.3,
5757
},
5858
ember: {

0 commit comments

Comments
 (0)