Usage with Remix and Playwright #1668
-
I'm looking for a good example of using MSW with Remix and Playwright. There are some examples on the internet like this one, but what I'm looking for is the usage of |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hey, @kirillkurko. Take a look at our Official Remix + Playwright + MSW usage example. Using the runtime handlers ( |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Hey, @kirillkurko. Take a look at our Official Remix + Playwright + MSW usage example.
Using the runtime handlers (
worker.use()
) is a matter of exposingworker
onwindow
and accessing it inpage.evaluate()
in your Playwright tests.