fast
fast copied to clipboard
feat: Use Playwright in conjunction with Storybook for component tests in fast-foundation
🙋 Feature Request
Migrate relevant component tests from Karma to Playwright in @microsoft/fast-foundation
.
💁 Possible Solution
Playwright testing requires a web server of some kind to be running so that it can load pages in a browser. Our earlier POC implementation from @microsoft/fast-components
used Express in a require
Mocha configuration hook, which requires its own build step to run properly.
Playwright includes everything needed to run tests with Playwright, and we can use Storybook to run individual fixtures.
This also gives us the added benefit of generating a static storybook build, which we could then use as a component test library deployment.
🔦 Context
- See related bug: #5804
- Storybook integration: #6113
@janechu This is related to the other issue that John opened up. I know you've been working through this kind of thing so tossing this over to you.