playwright(1/0)
Test web components with playwright
So you’ve created a native web component or two. How do you test them in popular browsers? Packages There are a few tools to install. First, test-runner to find and execute our tests. It comes with the Mocha test framework by default, and we won’t change it. Might as well install chai too for test assertions and expectations. Second, the browser runner Playwright plugin. Playwright integrates headless browser testing into the mix, allowing us to run our code inside a browser context for every one of the major browser binaries (chromium, firefox, webkit).…