cetirizine

An experimental matrix client written in reactjs utilizing tailwind and storybook
git clone git://archive.git.mtrnord.blog/MTRNord/cetirizine.git
Log | Files | Refs | README | LICENSE

test-runner.ts (664B)


      1 
      2 import { injectAxe, checkA11y } from 'axe-playwright';
      3 
      4 import type { TestRunnerConfig } from '@storybook/test-runner';
      5 import { defaultMatrixClient } from "../src/app/sdk/client";
      6 
      7 /*
      8  * See https://storybook.js.org/docs/react/writing-tests/test-runner#test-hook-api-experimental
      9  * to learn more about the test-runner hooks API.
     10  */
     11 export const a11yConfig: TestRunnerConfig = {
     12     async preRender(page) {
     13         await injectAxe(page);
     14     },
     15     async postRender(page) {
     16 
     17         await checkA11y(page, '#storybook-root', {
     18             detailedReport: true,
     19             detailedReportOptions: {
     20                 html: true,
     21             },
     22         });
     23     },
     24 };