My team decided to build a Docker image that contained Cypress, dependencies and all our end-to-end (E2E) tests.
Scenario: My team wanted to write more automated checks, but we had too many features to cover and not enough time. We had to prioritize what to test… but how to do it objectively?
I use Selenium to write most of my automated checks, and the PageObjects pattern is a must. My current team is using Cypress and, to my surprise, this test framework recommends
AppActions instead of
PageObjects. So I decided to benchmark both patterns using the following criteria:
- Can it abstract page selectors?
- Can it abstract page actions?
- Is it easy to write and maintain those abstractions?
- Is it easy to write tests?