This PR removes (most of) the Playwright-specific stuff inside the CDP-interfacing code. This is so that we can easily use the same code with Cypress in a future PR.
The idea is that each testing framework can provide its own cdpClient to the Watcher class, leaving the Watcher uninvolved with framework-specific things.
How to test
[x] Watch the CI tests pass
[x] Inspect the published storybook to ensure all images are loaded as they did before
What Changed
This PR removes (most of) the Playwright-specific stuff inside the CDP-interfacing code. This is so that we can easily use the same code with Cypress in a future PR.
The idea is that each testing framework can provide its own
cdpClient
to theWatcher
class, leaving theWatcher
uninvolved with framework-specific things.How to test
Change Type
maintenance
documentation
patch
minor
major