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

A11y Addon: Adjust default behaviour when using with experimental-addon-test #30162

Draft
wants to merge 12 commits into
base: next
Choose a base branch
from

Conversation

valentinpalkovic
Copy link
Contributor

@valentinpalkovic valentinpalkovic commented Jan 2, 2025

Closes #

What I did

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!

Documentation

  • Add or update documentation reflecting your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

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 pull request has been released as version 0.0.0-pr-30162-sha-e7b81bcf. Try it out in a new sandbox by running npx [email protected] sandbox or in an existing project with npx [email protected] upgrade.

More information
Published version 0.0.0-pr-30162-sha-e7b81bcf
Triggered by @valentinpalkovic
Repository storybookjs/storybook
Branch valentin/a11y-refactorings
Commit e7b81bcf
Datetime Thu Jan 2 13:32:01 UTC 2025 (1735824721)
Workflow run 12583227563

To request a new release of this pull request, mention the @storybookjs/core team.

core team members can create a new canary release here or locally with gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=30162

name before after diff z %
createSize 0 B 0 B 0 B - -
generateSize 77.8 MB 77.8 MB 0 B 1.47 0%
initSize 131 MB 131 MB 0 B -1 0%
diffSize 53 MB 53 MB 0 B -1 0%
buildSize 7.19 MB 7.19 MB 0 B -0.79 0%
buildSbAddonsSize 1.85 MB 1.85 MB 0 B -0.79 0%
buildSbCommonSize 195 kB 195 kB 0 B - 0%
buildSbManagerSize 1.87 MB 1.87 MB 0 B 0.55 0%
buildSbPreviewSize 0 B 0 B 0 B - -
buildStaticSize 0 B 0 B 0 B - -
buildPrebuildSize 3.91 MB 3.91 MB 0 B -0.79 0%
buildPreviewSize 3.28 MB 3.28 MB 0 B - 0%
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 18s 7.7s -10s -251ms -0.6 -132%
generateTime 19s 22.5s 3.4s 1.72 🔺15.4%
initTime 12.6s 15.8s 3.1s 1.56 🔺20.1%
buildTime 11.1s 9.7s -1s -409ms 0.22 -14.5%
testBuildTime 0ms 0ms 0ms - -
devPreviewResponsive 6.8s 4.3s -2s -589ms -1.24 🔰-60.1%
devManagerResponsive 4.5s 3.1s -1s -350ms -1.37 🔰-42.3%
devManagerHeaderVisible 773ms 545ms -228ms -0.86 -41.8%
devManagerIndexVisible 800ms 572ms -228ms -0.82 -39.9%
devStoryVisibleUncached 3.8s 1.8s -2s -37ms -0.35 -110.5%
devStoryVisible 801ms 574ms -227ms -0.93 -39.5%
devAutodocsVisible 780ms 502ms -278ms -0.84 -55.4%
devMDXVisible 755ms 496ms -259ms -0.62 -52.2%
buildManagerHeaderVisible 716ms 499ms -217ms -1.14 -43.5%
buildManagerIndexVisible 843ms 590ms -253ms -1.04 -42.9%
buildStoryVisible 678ms 491ms -187ms -1.15 -38.1%
buildAutodocsVisible 629ms 391ms -238ms -1.47 🔰-60.9%
buildMDXVisible 575ms 399ms -176ms -1.27 🔰-44.1%

printError(
'🚨 Oh no!',
dedent`
We have detected that you have ${addonA11yName} installed but could not automatically set it up for @storybook/experimental-addon-test/vitest-plugin.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
We have detected that you have ${addonA11yName} installed but could not automatically set it up for @storybook/experimental-addon-test/vitest-plugin.
We have detected that you have ${addonA11yName} installed but could not automatically set it up for @storybook/experimental-addon-test.

Copy link

nx-cloud bot commented Jan 2, 2025

View your CI Pipeline Execution ↗ for commit 711a48f.

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

☁️ Nx Cloud last updated this comment at 2025-01-03 11:13:39 UTC

Comment on lines 18 to 19
For more information, please refer to the addon test documentation:
https://storybook.js.org/docs/writing-tests/addon-test"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
For more information, please refer to the addon test documentation:
https://storybook.js.org/docs/writing-tests/addon-test"
For more information, please refer to the accessibility addon documentation:
https://storybook.js.org/docs/writing-tests/accessibility-testing#test-addon-integration

@storybook-pr-benchmarking
Copy link

storybook-pr-benchmarking bot commented Jan 2, 2025

Package Benchmarks

Commit: 711a48f, ran on 3 January 2025 at 11:21:24 UTC

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

@storybook/experimental-addon-test

Before After Difference
Dependency count 60 60 0
Self size 974 KB 1.39 MB 🚨 +412 KB 🚨
Dependency size 14.15 MB 14.15 MB 0 B
Bundle Size Analyzer Link Link

@storybook-bot
Copy link
Contributor

Failed to publish canary version of this pull request, triggered by @valentinpalkovic. See the failed workflow run at: https://github.com/storybookjs/storybook/actions/runs/12581235232

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants