tcmulder / aquamin

Aquamin WordPress Theme
3 stars 1 forks source link

Consider adding E2E testing. #107

Closed tcmulder closed 3 months ago

tcmulder commented 7 months ago
tcmulder commented 7 months ago
tcmulder commented 6 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 6 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.

tcmulder commented 3 months ago

Available here: