This blog post will teach you how to visually verify the emails sent by a 3rd party service. Such verification is necessary to ensure the emails have the expected style, and include the necessary information. The post teaches you how to deal with the difficult email markup generated from dynamic tem…
Number of posts: 65
Full Testing of HTML Emails using SendGrid and Ethereal Accounts
Imagine you are sending beautiful HTML emails using your own SMTP server or even a 3rd party service like SendGrid. What if the emails are formatted incorrectly? What if the template string is incorrect and the user sees Dear <<undefined>>? Can you test the emails to make sure they reall…
Testing HTML Emails using Cypress
In this blog post, we will use a local SMTP server to receive emails sent by the app to the user. We will test the HTML emails to make sure they look and work correctly. Note: you can find the source code shown in this blog post at cypress-email-example [https://github.com/bahmutov/cypress-email-e…
Testing deployed GitLab pages using Cypress and GitLab CI
In this blog post we will deploy a static site to GitLab Pages, and then we will run end-to-end browser tests against the deployed site to make sure it is working as expected. The Cypress Test Runner makes it extremely simple to write full browser end-to-end (E2E) tests, while GitLab CI is a powerfu…
Make Cypress Videos Look Old School
Recently, we introduced a trial feature called experimentalRunEvents [https://on.cypress.io/experimental] that simplifies running Node code before or after executing a spec file. Inside your plugin file [https://on.cypress.io/writing-and-organizing-tests#Plugin-files] you can add event hooks to perf…