|
|
|
|
|
by beninsydney
1476 days ago
|
|
I like to use a library called Puppeteer which is an API for Chrome/Firefox, in conjunction with a testing library (mocha) to verify UI works as expected. My UI tests start at a page, navigate to a target, try and fill out the form, verify error messages occur, successful submission occurs, resize to test responsiveness, dark mode etc. You can even have it type into Stripe element fields that are generated by their JS within iframes. https://www.npmjs.com/package/puppeteer |
|
We use jest for JS functionality testing and PHPUNIT for the backend tests. Will certainly look into Puppeteer more though!