If you need to write E2E tests, consider using Playwright. It has many advantages.
In this short video, you can watch how to use this repo to write E2E tests.
Prerequisites: latest version of Node (you can use nvm to install it, ie. nvm install)
npm install-depsnpm testnpm run debug
npm run record