This is an example of easy end-to-end testing with Cypress. The article which this sample is used to support is below:
Read "Why Cypress is the best way to test" on Benevolent Bytes
This version of the example uses Preact but if you have a React app you'd like to test instead, it's almost identical.