Skip to content
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

Test: Bump version of @testing-library/user-event #30758

Open
wants to merge 9 commits into
base: next
Choose a base branch
from

Conversation

sjwilczynski
Copy link
Contributor

@sjwilczynski sjwilczynski commented Mar 5, 2025

What I did

The newer version of @testing-library/user-event contains a bunch of fixes:
image
Particularly interesting one for my team is testing-library/user-event#1049, which will allow us to remove a patch file we had for @storybook/test, which kept the proper keyboard navigation for radio groups.

Checklist for Contributors

Testing

The changes in this PR are covered in the following automated tests:

  • stories
  • unit tests
  • integration tests
  • end-to-end tests

Manual testing

This section is mandatory for all contributions. If you believe no manual test is necessary, please state so explicitly. Thanks!

I opened the default template after yarn start but let me know if you think I should add the radio group scenario and if so, where would be a good place

TODO

Documentation

Not needed, just a version bump

Checklist for Maintainers

  • When this PR is ready for testing, make sure to add ci:normal, ci:merged or ci:daily GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found in code/lib/cli-storybook/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>

name before after diff z %
createSize 0 B 0 B 0 B - -
generateSize 79.9 MB 79.9 MB 0 B 0.32 0%
initSize 79.9 MB 79.9 MB 0 B 0.32 0%
diffSize 97 B 97 B 0 B - 0%
buildSize 7.47 MB 7.48 MB 3.14 kB -0.54 0%
buildSbAddonsSize 1.98 MB 1.98 MB 0 B 0.9 0%
buildSbCommonSize 195 kB 195 kB 0 B - 0%
buildSbManagerSize 1.88 MB 1.88 MB 0 B - 0%
buildSbPreviewSize 0 B 0 B 0 B - -
buildStaticSize 0 B 0 B 0 B - -
buildPrebuildSize 4.06 MB 4.06 MB 0 B 0.9 0%
buildPreviewSize 3.42 MB 3.42 MB 3.14 kB -2.76 0.1%
testBuildSize 0 B 0 B 0 B - -
testBuildSbAddonsSize 0 B 0 B 0 B - -
testBuildSbCommonSize 0 B 0 B 0 B - -
testBuildSbManagerSize 0 B 0 B 0 B - -
testBuildSbPreviewSize 0 B 0 B 0 B - -
testBuildStaticSize 0 B 0 B 0 B - -
testBuildPrebuildSize 0 B 0 B 0 B - -
testBuildPreviewSize 0 B 0 B 0 B - -
name before after diff z %
createTime 11.5s 20.6s 9s 0.49 44%
generateTime 20.2s 20.8s 613ms 0.97 2.9%
initTime 4.9s 4.6s -349ms -0.28 -7.6%
buildTime 9.1s 8.2s -986ms -1.39 🔰-12%
testBuildTime 0ms 0ms 0ms - -
devPreviewResponsive 4.6s 6.6s 2s 2.11 🔺30.2%
devManagerResponsive 4.4s 6.3s 1.9s 2.19 🔺30%
devManagerHeaderVisible 782ms 1s 288ms 1.68 🔺26.9%
devManagerIndexVisible 793ms 1s 300ms 1.54 🔺27.4%
devStoryVisibleUncached 2.7s 2.9s 252ms 1.21 8.5%
devStoryVisible 1.2s 1.6s 441ms 1.61 🔺26.8%
devAutodocsVisible 1.1s 1.5s 475ms 2.73 🔺29.7%
devMDXVisible 1.1s 1.7s 615ms 3.25 🔺35.2%
buildManagerHeaderVisible 880ms 961ms 81ms 0.81 8.4%
buildManagerIndexVisible 885ms 970ms 85ms 0.73 8.8%
buildStoryVisible 869ms 949ms 80ms 0.81 8.4%
buildAutodocsVisible 618ms 791ms 173ms -0.06 21.9%
buildMDXVisible 666ms 747ms 81ms -0.16 10.8%

Greptile Summary

Updates @testing-library/user-event from 14.5.2 to 14.6.1 across multiple package.json files to incorporate bug fixes, particularly for keyboard navigation in radio groups.

  • Version bump in code/lib/test/package.json will enable removal of an existing patch file for radio group keyboard navigation
  • Updated version in code/package.json and scripts/package.json to maintain consistency
  • Modified scripts/utils/yarn.ts to update package resolutions to 14.6.1
  • Integration and e2e tests are covered, but manual testing steps need documentation

💡 (1/5) You can manually trigger the bot by mentioning @greptileai in a comment!

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

4 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

Copy link

nx-cloud bot commented Mar 5, 2025

View your CI Pipeline Execution ↗ for commit 0c960a5.

Command Status Duration Result
nx run-many -t build --parallel=3 ✅ Succeeded 1m 54s View ↗

☁️ Nx Cloud last updated this comment at 2025-03-11 17:33:07 UTC

@kasperpeulen kasperpeulen changed the title bump version of @testing-library/user-event Test: Bump version of @testing-library/user-event Mar 6, 2025
@kasperpeulen kasperpeulen self-assigned this Mar 6, 2025
@kasperpeulen kasperpeulen added ci:daily Run the CI jobs that normally run in the daily job. bug labels Mar 6, 2025
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

4 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@kasperpeulen kasperpeulen added the patch:yes Bugfix & documentation PR that need to be picked to main branch label Mar 6, 2025
@storybook-pr-benchmarking
Copy link

storybook-pr-benchmarking bot commented Mar 6, 2025

Package Benchmarks

Commit: 0c960a5, ran on 11 March 2025 at 17:45:59 UTC

The following packages have significant changes to their size or dependencies:

sb

Before After Difference
Dependency count 99 99 0
Self size 1 KB 1 KB 0 B
Dependency size 43.24 MB 43.25 MB 🚨 +11 KB 🚨
Bundle Size Analyzer Link Link

@storybook/cli

Before After Difference
Dependency count 388 388 0
Self size 284 KB 284 KB 0 B
Dependency size 93.38 MB 93.39 MB 🚨 +11 KB 🚨
Bundle Size Analyzer Link Link

@storybook/codemod

Before After Difference
Dependency count 309 309 0
Self size 614 KB 614 KB 0 B
Dependency size 74.99 MB 75.00 MB 🚨 +11 KB 🚨
Bundle Size Analyzer Link Link

@kasperpeulen kasperpeulen added ci:merged Run the CI jobs that normally run when merged. and removed ci:daily Run the CI jobs that normally run in the daily job. labels Mar 6, 2025
@kasperpeulen kasperpeulen added ci:normal and removed ci:merged Run the CI jobs that normally run when merged. labels Mar 6, 2025
@sjwilczynski
Copy link
Contributor Author

@kasperpeulen I am not sure if I am reading the output correctly but it seems there are some unexpected failures in svelte tests:
image
Any insights on how should I go about these?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ci:normal patch:yes Bugfix & documentation PR that need to be picked to main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants