swyxkit icon indicating copy to clipboard operation
swyxkit copied to clipboard

Implement basic testing strategy for Swyxkit

Open swyxio opened this issue 2 years ago • 2 comments

We copied over the default Playwright tests in https://github.com/sw-yx/swyxkit/issues/62

But they are super naive. perhaps we should test the navigation and the search?

help?

swyxio avatar May 16 '22 09:05 swyxio

hey @sw-yx, I'm not familiar with Playwright, so I'd like to give this a try if it's still up for grabs :)

taismassaro avatar Oct 04 '22 06:10 taismassaro

yes @taismassaro up for grabs! also you can talk to @debs-obrien if you need playwright help!

one problem i have right now: the blog pages are rendered serverlessly, so it is possible for the build to succeed but for the pages to fail to render at runtime. how might an E2E test catch this issue?

(playwright probably cannot catch my specific problem, which is a netlify build issue, but just giving ideas for how to E2E test a blog with search/clientside navigation/rendering functionality)

swyxio avatar Oct 06 '22 04:10 swyxio