fast icon indicating copy to clipboard operation
fast copied to clipboard

feat: Use Playwright in conjunction with Storybook for component tests in fast-foundation

Open radium-v opened this issue 2 years ago • 1 comments

🙋 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

radium-v avatar Apr 06 '22 17:04 radium-v

@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.

EisenbergEffect avatar Apr 07 '22 19:04 EisenbergEffect