Comment

Comment by beninsydney

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

parent beninsydney 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton