To run tests locally, follow the instructions below:
- Clone the repo
- Run
npm ci
- Run
npm run test:ui
to open the test runner,npm run test:headed
to run tests in the headed mode ornpm run test
to run tests headlessly
The repository has CI, please refer to the open test PR to see run results, there're both failed runs with saved artifacts (a video) and a success run
Note: the CI workflow is triggered only for non-master branches
- Please read comments, I comment on solutions and some bugs found there
- Implementations are very simple, not using the page object pattern
- Some selectors are weird but I haven't found anything better to hook into in some cases. In reality, I'd just go ahead and add good selectors to the source code
- All checks are as user-oriented as possible
- One definitely needs to think re-usability through when using BDD but it requires much more time :)