Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Jan 13, 2025
1 parent 42d7d30 commit 5a33146
Showing 1 changed file with 15 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,9 @@ describe('addonA11yAddonTest', () => {
expect(result).toMatchInlineSnapshot(`
"We have detected that you have @storybook/addon-a11y and @storybook/experimental-addon-test installed.
@storybook/addon-a11y integrates now with @storybook/experimental-addon-test to provide automatic accessibility checks for your stories, powered by Axe and Vitest.
@storybook/addon-a11y now integrates with @storybook/experimental-addon-test to provide automatic accessibility checks for your stories, powered by Axe and Vitest.
1) We couldn't find or automatically update your .storybook/vitest.setup.<ts|js> in your project to smoothly set up project annotations from @storybook/addon-a11y.
1) We couldn't find or automatically update .storybook/vitest.setup.<ts|js> in your project to smoothly set up project annotations from @storybook/addon-a11y.
Please manually update your vitest.setup.ts file to include the following:
...
Expand Down Expand Up @@ -409,9 +409,9 @@ describe('addonA11yAddonTest', () => {
expect(result).toMatchInlineSnapshot(`
"We have detected that you have @storybook/addon-a11y and @storybook/experimental-addon-test installed.
@storybook/addon-a11y integrates now with @storybook/experimental-addon-test to provide automatic accessibility checks for your stories, powered by Axe and Vitest.
@storybook/addon-a11y now integrates with @storybook/experimental-addon-test to provide automatic accessibility checks for your stories, powered by Axe and Vitest.
1) We couldn't find or automatically update your .storybook/vitest.setup.<ts|js> in your project to smoothly set up project annotations from @storybook/addon-a11y.
1) We couldn't find or automatically update .storybook/vitest.setup.<ts|js> in your project to smoothly set up project annotations from @storybook/addon-a11y.
Please manually update your vitest.setup.ts file to include the following:
...
Expand Down Expand Up @@ -443,7 +443,7 @@ describe('addonA11yAddonTest', () => {
expect(result).toMatchInlineSnapshot(`
"We have detected that you have @storybook/addon-a11y and @storybook/experimental-addon-test installed.
@storybook/addon-a11y integrates now with @storybook/experimental-addon-test to provide automatic accessibility checks for your stories, powered by Axe and Vitest.
@storybook/addon-a11y now integrates with @storybook/experimental-addon-test to provide automatic accessibility checks for your stories, powered by Axe and Vitest.
1) We have to update your .storybook/vitest.setup.ts file to set up project annotations from @storybook/addon-a11y.
Expand Down Expand Up @@ -472,7 +472,7 @@ describe('addonA11yAddonTest', () => {
expect(result).toMatchInlineSnapshot(`
"We have detected that you have @storybook/addon-a11y and @storybook/experimental-addon-test installed.
@storybook/addon-a11y integrates now with @storybook/experimental-addon-test to provide automatic accessibility checks for your stories, powered by Axe and Vitest.
@storybook/addon-a11y now integrates with @storybook/experimental-addon-test to provide automatic accessibility checks for your stories, powered by Axe and Vitest.
1) We have to update your .storybook/vitest.setup.ts file to set up project annotations from @storybook/addon-a11y.
Expand All @@ -493,7 +493,7 @@ describe('addonA11yAddonTest', () => {
expect(result).toMatchInlineSnapshot(`
"We have detected that you have @storybook/addon-a11y and @storybook/experimental-addon-test installed.
@storybook/addon-a11y integrates now with @storybook/experimental-addon-test to provide automatic accessibility checks for your stories, powered by Axe and Vitest.
@storybook/addon-a11y now integrates with @storybook/experimental-addon-test to provide automatic accessibility checks for your stories, powered by Axe and Vitest.
1) We have to update your .storybook/preview.js file to set up tags from @storybook/addon-a11y.
Expand Down Expand Up @@ -678,8 +678,8 @@ describe('addonA11yAddonTest', () => {
},
},
// a11y-test tag controls whether accessibility tests are run as part of a standalone Vitest test run
// For more information please visit: https://storybook.js.org/docs/writing-tests/accessibility-testing
// The \`a11y-test\` tag controls whether accessibility tests are run as part of a standalone Vitest test run
// For more information please visit: https://storybook.js.org/docs/writing-tests/accessibility-testing#configure-accessibility-tests-with-the-test-addon
tags: [/*'a11y-test'*/]
};
Expand Down Expand Up @@ -739,8 +739,8 @@ describe('addonA11yAddonTest', () => {
"import type { Preview } from "@storybook/react";
const preview: Preview = {
// a11y-test tag controls whether accessibility tests are run as part of a standalone Vitest test run
// For more information please visit: https://storybook.js.org/docs/writing-tests/accessibility-testing
// The \`a11y-test\` tag controls whether accessibility tests are run as part of a standalone Vitest test run
// For more information please visit: https://storybook.js.org/docs/writing-tests/accessibility-testing#configure-accessibility-tests-with-the-test-addon
tags: ["existingTag"/*, "a11y-test"*/],
parameters: {
controls: {
Expand Down Expand Up @@ -823,8 +823,8 @@ describe('addonA11yAddonTest', () => {
},
},
// a11y-test tag controls whether accessibility tests are run as part of a standalone Vitest test run
// For more information please visit: https://storybook.js.org/docs/writing-tests/accessibility-testing
// The \`a11y-test\` tag controls whether accessibility tests are run as part of a standalone Vitest test run
// For more information please visit: https://storybook.js.org/docs/writing-tests/accessibility-testing#configure-accessibility-tests-with-the-test-addon
tags: [/*"a11y-test"*/]
};"
`);
Expand All @@ -849,8 +849,8 @@ describe('addonA11yAddonTest', () => {

expect(transformed).toMatchInlineSnapshot(`
"export default {
// a11y-test tag controls whether accessibility tests are run as part of a standalone Vitest test run
// For more information please visit: https://storybook.js.org/docs/writing-tests/accessibility-testing
// The \`a11y-test\` tag controls whether accessibility tests are run as part of a standalone Vitest test run
// For more information please visit: https://storybook.js.org/docs/writing-tests/accessibility-testing#configure-accessibility-tests-with-the-test-addon
tags: ["existingTag"/*, "a11y-test"*/],
parameters: {
controls: {
Expand Down

0 comments on commit 5a33146

Please sign in to comment.