Tag: cypress
-
Page Objects with Cypress
The Page Object Model is a popular design pattern that provides a structured approach to organizing and interacting with web pages in automated tests, promoting code reusability, maintainability, and readability. How this design pattern is implemented can very from org to org. Often I come across Cypress frameworks that use classes, modules, namespaces, or a…
-
Custom Cypress Workflows
One way to have Cypress automation run is through a series of GitHub Actions workflows. The one I’m going to show you runs through a defined matrix and runs test in parallel. Take for example this Matrix. Think of this as an array of test you want running in your suite. Note that we can…
-
Cypress Formdata
Issue I came across a limitation with cypress while trying to upload an image using formData. Cypress cy.request() currently does not support formData submission. Solution First I load in my image from a fixture file and set that file into a FormData. I then call a custom command function called formRequest passing in the defined…
-
Github Actions Cypress Workflows
Utilizing Github actions, to run multiple Cypress specs in parallel Starting at the route of your project create a .github/workflows/ directory. This is where you will be defining and creating your different workflows. Each workflow will be responsible for running their own set of jobs and steps. Workflow Name Workflow Schedule I like to set…