Ask HN: Twice): How to do proper front-end testing? Is it useful enough to do?
https://news.ycombinator.com/item?id=23857553Hello!
I'm currently in the situation where I'm noticing that the back-end is tested a fair amount of times, but the front-end does not have any automated tests.
So I was wondering: to what extent is UI testing even feasible / not a waste of time? What are pragmatic considerations about it? And if it is feasible, how does one go about it?
Things I thought about:
Is it simply using Selenium or Puppeteer? Is it using a visual diff and checking for that? Is it simply unit testing/integration testing?
To me, it all seems a bit of a waste unless a front-end process is super critical, like a checkout page.