Relative Content

Tag Archive for unit-testingtestingpuppeteerplaywrighte2e-testing

How to use playwright to test chrome extension

I’m using playwright to test my chrome extension. Currently I’m using page.evaluate to ensure chrome is defined. The problem with this approach is that I have to serialize my functions to run them in the scope of page.evaluate (the browser). Is there a better approach to where I don’t have to serialize my functions but still have access to the chrome api?