Docs: Fix typo in package name in interaction testing#35103
Conversation
Fixed a typo in the /docs/writing-tests/interaction-testing.mdx file line 57. The error : ...We (and [Testing Libary](https://testing-library... changes the word Libary to Library
📝 WalkthroughWalkthroughThis PR corrects a typo in the interaction testing documentation ("Testing Libary" → "Testing Library") and adds a clarifying sentence about following the query priority order when using Testing Library utilities. ChangesInteraction Testing Documentation
🎯 1 (Trivial) | ⏱️ ~2 minutes Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/writing-tests/interaction-testing.mdx`:
- Line 57: Replace the awkward fragment about `data-testid` with a direct
recommendation: update the sentence that begins with "While using `data-testid`
should be a last resort…" to read clearly and assertively (for example: "Use
`data-testid` only as a last resort, after trying every other query approach.").
Ensure the revised sentence sits after the Testing Library reference and keeps
the original emphasis on preferring accessible queries (e.g., role-based
queries) before `data-testid`.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: a1089467-69b1-4761-a377-a81a42fe5969
📒 Files selected for processing (1)
docs/writing-tests/interaction-testing.mdx
jonniebigodes
left a comment
There was a problem hiding this comment.
@Juicy1011 thanks for taking the time to put together this pull request and helping us improve the documentation by catching this small typo. We appreciate it 🙏
I've checked and all looks good on my end.
Will gladly merge this once the checklist clears.
Hope you have an amazing day.
Stay safe
Fixed a typo in the /docs/writing-tests/interaction-testing.mdx file line 57. The error : ...We (and [Testing Libary](https://testing-library... changes the word Libary to Library
Closes #
What I did
Checklist for Contributors
Testing
The changes in this PR are covered in the following automated tests:
Manual testing
Not applicable; this is a simple documentation contribution that fixes a typo in the text.
Caution
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:mergedorci:dailyGH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found incode/lib/cli-storybook/src/sandbox-templates.tsDeclare whether manual QA will be needed for this PR during the next release, through
qa:neededorqa:skipMake 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/coreteam here.core team members can create a canary release here or locally with
gh workflow run --repo storybookjs/storybook publish.yml --field pr=<PR_NUMBER>Summary by CodeRabbit