Slide 13
Slide 13 text
import * as stories from “./SomeComponent.stories”
import { composeStories } from “@storybook/testing-vue3”;
import { mount } from “cypress/vue”;
describe(`${stories.default.title}`, () => {
const entries = Object.entries(composeStories(stories)); —①
for (const [storyTitle, storyFunc] of entries) {
it(`${storyTitle}`, () => {
mount(storyFunc()) —②
cy.checkA11y(); —③
});
}
});
13
アクセシビリティテストの仕組みについて