Cypress Tips December 2024
A11y plugin, statically check test tags, and the end of the year
Custom Cypress Should Read Assertion
I have been playing with Playwright for my course Cypress Vs Playwright and I must say, PW has a great assertion toHaveText. So I wrote a custom assertion “should read” that can confirm the elements’ text against strings or regular expressions.
Let’s say we have 3 HTML elements and want to confirm the exact text
Let’s say we only know the precise text of the first item and that the second and the third items should match a regular expression. We still can use the same “should read” assertion!
The custom assertion is included in my cypress-map plugin. Read this blog post for more details.
Blog posts and conferences
📝 blog post Custom Cypress Should Read Assertion
📝 blog post How To Check Broken Image Urls In The New Blog Posts
📝 blog post Type Check Your Test Tags
Reminder: I will be at the ConFoo conference in Monreal Canada, Feb 26-28th, 2025. I will do a workshop plus two talks:
Workshop "Deep dive into End-to-End Testing with Cypress & Playwright", registration link, 2 days
Talk "Testing With Cypress vs Playwright: What Is the Difference?"
Talk “Writing Tests Using GitHub Copilot”
I did not have time to record any new videos for my YouTube channel, but I hope to publish something new there next year. Do you have a testing question that I could answer? Send them my way.
“Writing Tests Using GitHub Copilot” recording
I had the pleasure of presenting at the MaineJS meetup my talk “Writing Tests Using GitHub Copilot” I must say this is my favorite talk right now, and the audience loves the topic. The organizers recorded the meetup, here are the links:
video below
Sebastian Clavijo Suero
Okay, I want to start this month’s newsletter by saying “Hello!” to a very productive Cypress maestro, Sebastian Clavijo Suero. He is great at creating Cypress plugins, and one of his most interesting (to me) plugins is wick-a11y. It is a very well-made plugin that extends Cypress with a11y commands and includes custom UI and reporting. Really solid work.
Take a look at the video where Sebastian shows the plugin in action.
Happy Holidays 🎄
Happy holidays to you and your family, hopefully 2025 will be a happy year with all green tests.





