tcmulder / aquamin

Aquamin WordPress Theme
3 stars 1 forks source link

Consider adding E2E testing. #107

Open tcmulder opened 2 months ago

tcmulder commented 2 months ago
tcmulder commented 2 months ago
tcmulder commented 2 months ago

Tried this, but was having a lot of issues (one of which is that the page.$() selector function could never find anything on the page, so I needed to do a very precise regex of raw HTML to test things). I think they're starting to transition to puppeteer, so maybe support will get better after that's finished.

https://www.npmjs.com/package/@wordpress/e2e-test-utils

tcmulder commented 2 months ago

Looks like https://www.npmjs.com/package/@wordpress/e2e-test-utils is not the way to go, but https://www.npmjs.com/package/@wordpress/e2e-test-utils-playwright works better. I have a working concept that checks a few things set up as a plugin.