Components: Add Badge text overflow e2e story#78589
Conversation
|
Size Change: 0 B Total Size: 8.04 MB ℹ️ View Unchanged
|
|
Only tangential to this particular PR, but: @WordPress/gutenberg-components @WordPress/gutenberg-design As we can see in the screenshot, the legacy Before we roll out the new |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Flaky tests detected in d69c0eb. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/26304453285
|
ciampo
left a comment
There was a problem hiding this comment.
The textOverflowContainers abstraction works great 🚀
What?
Part of the testing infra for #76135
Adds a
@wordpress/componentsBadge text overflow story to the components E2E Storybook build, matching the existing@wordpress/uiBadge story.Why?
The E2E Storybook setup is useful for visually testing text overflow behavior in constrained containers. Badge already truncates with ellipsis, but it was missing from the components E2E stories added in #78256.
How?
Adds
packages/components/src/badge/stories/e2e/index.story.tsxwith aTextOverflowstory that uses thetextOverflowContainersdecorator parameter.Testing Instructions
npm run storybook:e2e:dev.Screenshots