Categories
Technology

Asserting text using Cypress

Photo by Sunyu on Unsplash
Photo by Sunyu on Unsplash
Categories
Technology

Cypress: PageObjects using inheritance

Scenario:

  • Your web site is deployed on several countries. The behaviour of the page you want to test (e.g. sign up) is mostly the same across countries, however some business rules change per country.
  • You are using the PageObjects pattern to encapsulate the details of each page. You want to avoid duplicated code.
Categories
Technology

Cypress Sapling (automation template)

Photo by Tzingtao Chow on Unsplash

No need to start with the seed – plant the sapling!

Categories
Work

Automation prioritisation using Risk Mapping

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?

Categories
Technology

Cypress: PageObjects vs AppActions

Photo by Jason Dent on Unsplash

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?