-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Component test: Fix wording #29487
base: next
Are you sure you want to change the base?
Component test: Fix wording #29487
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just wondering whether the old interactions addons should be updated as well. I would expect that to just remain the same.
@@ -46,19 +40,15 @@ export const Empty = () => { | |||
|
|||
return ( | |||
<EmptyTabContent | |||
title="Interaction testing" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this file be updated at all? I would expect the new terminology to only be used in the test addon, not the (legacy) interactions addon.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've changed the term everywhere, including the Interactions addon (except that name itself 🙃).
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 9fe5916. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
27 file(s) reviewed, 7 comment(s)
Edit PR Review Bot Settings | Greptile
@@ -126,7 +126,7 @@ export const babel = async (_: unknown, options: Options) => { | |||
...babelDefault, | |||
// This override makes sure that we will never transpile babel further down then the browsers that storybook supports. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
syntax: typo: 'down then' should be 'down than'
@@ -228,7 +228,7 @@ export class MountMustBeDestructuredError extends StorybookError { | |||
|
|||
Note that Angular is not supported. As async/await is transpiled to support the zone.js polyfill. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
syntax: sentence fragment: 'As async/await is transpiled' is incomplete and unclear
@@ -21,7 +21,7 @@ const meta: Meta<typeof MyPage> = { | |||
export default meta; | |||
type Story = StoryObj<typeof MyPage>; | |||
|
|||
// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing | |||
// More on component testing: https://storybook.js.org/docs/writing-tests/component-testing | |||
export const LoggedIn: Story = { | |||
play: async ({ canvasElement }: any) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: canvasElement should be properly typed rather than using 'any'
@@ -21,7 +21,7 @@ const meta = { | |||
export default meta; | |||
type Story = StoryObj<typeof meta>; | |||
|
|||
// More on interaction testing: https://storybook.js.org/docs/writing-tests/interaction-testing | |||
// More on component testing: https://storybook.js.org/docs/writing-tests/component-testing | |||
export const LoggedIn: Story = { | |||
play: async ({ canvasElement }: any) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
style: Type 'any' used for canvasElement - consider using a more specific type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JReinhold thanks for taking the time to put together this pull request and adjust the documentation. Appreciate it 🙏 ! Left one item for you to look into when you have a moment.
I've already approved this on my end to unblock you
@@ -49,7 +49,7 @@ The test itself is defined inside a `play` function connected to a story. Here's | |||
|
|||
{/* prettier-ignore-start */} | |||
|
|||
<CodeSnippets path="login-form-with-play-function.md" usesCsf3 csf2Path="writing-tests/interaction-testing#snippet-login-form-with-play-function" /> | |||
<CodeSnippets path="login-form-with-play-function.md" usesCsf3 csf2Path="writing-tests/component-testing#snippet-login-form-with-play-function" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JReinhold if you're ok with it, you can remove the usesCSF3
and csf2Path
props from the code snippets as they are no longer relevant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made a couple of wording updates to the empty states, but this otherwise looks great!
@@ -46,19 +40,15 @@ export const Empty = () => { | |||
|
|||
return ( | |||
<EmptyTabContent | |||
title="Interaction testing" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We've changed the term everywhere, including the Interactions addon (except that name itself 🙃).
Closes #
What I did
Checklist for Contributors
Testing
The changes in this PR are covered in the following automated tests:
Manual testing
This section is mandatory for all contributions. If you believe no manual test is necessary, please state so explicitly. Thanks!
Documentation
MIGRATION.MD
Checklist for Maintainers
When this PR is ready for testing, make sure to add
ci:normal
,ci:merged
orci:daily
GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found incode/lib/cli/src/sandbox-templates.ts
Make sure this PR contains one of the labels below:
Available labels
bug
: Internal changes that fixes incorrect behavior.maintenance
: User-facing maintenance tasks.dependencies
: Upgrading (sometimes downgrading) dependencies.build
: Internal-facing build tooling & test updates. Will not show up in release changelog.cleanup
: Minor cleanup style change. Will not show up in release changelog.documentation
: Documentation only changes. Will not show up in release changelog.feature request
: Introducing a new feature.BREAKING CHANGE
: Changes that break compatibility in some way with current major version.other
: Changes that don't fit in the above categories.🦋 Canary release
This PR does not have a canary release associated. You can request a canary release of this pull request by mentioning the
@storybookjs/core
team here.core team members can create a canary release here or locally with
gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=<PR_NUMBER>
Greptile Summary
Based on the provided information, I'll create a concise summary of the pull request changes:
Updates terminology from 'interaction testing' to 'component testing' across Storybook's codebase for better consistency and clarity.
EmptyState
components in interactions and test addons to use 'Component testing' title and description