storybookjs / storybook

Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation
https://storybook.js.org
MIT License
84.47k stars 9.28k forks source link

Support playwright test runner and playwright/test api for interaction testing #19281

Open kenny-f opened 2 years ago

kenny-f commented 2 years ago

Is your feature request related to a problem? Please describe We have started using interaction testing and it's been great so far. In our project we already have playwright tests for end to end testing.

The niggling issue now is that we have to use two different apis for writing tests.

It would be cool if storybook could support different test runners and test apis for interaction tests.

Currently we use playwright test runner and their assertions for e2e.

And for interaction tests we have to switch context and use @storybook/jest and @storybook/testing-library

Describe the solution you'd like Have different options for test-runners and assertions

Describe alternatives you've considered none

Are you able to assist to bring the feature to reality? no

kenny-f commented 2 years ago

Looks like this has already been raised in https://github.com/storybookjs/test-runner/issues/78

S1SYPHOS commented 11 months ago

We're in exactly the same situation, so I'm bumping this. It's about having as little overhead as possible, and since the issue you linked seems to be going nowhere since at least a year, I think it's fair to underline the need behind this feature in the main repository 😉