Luca Micieli
Advanced Cypress: custom assertions and tasks
#1about 2 minutes
Understanding the Cypress architecture and tasks
Cypress runs in two processes, and tasks act as remote procedure calls to execute Node.js code from within the browser-based test environment.
#2about 3 minutes
Using tasks for database seeding and auth flows
Tasks enable complex test setups like seeding a database, accessing the file system for email links, or controlling a separate window for OAuth authentication.
#3about 2 minutes
Creating type-safe custom assertions with Chai
Extend the Chai assertion library to create custom assertions and use TypeScript declaration merging to provide type safety for your new commands.
#4about 2 minutes
Applying custom assertions for robust UI tests
Use custom assertions to handle dynamic content like translated text or localized dates, making tests more resilient to content changes.
Related jobs
Jobs that call for the skills explored in this talk.
Eltemate
Amsterdam, Netherlands
Intermediate
Senior
TypeScript
Continuous Integration
+1
MARKT-PILOT GmbH
Stuttgart, Germany
Remote
€75-90K
Senior
Java
TypeScript
+1
Matching moments
03:17 MIN
Selecting strategic partners and essential event tools
Cat Herding with Lions and Tigers - Christian Heilmann
04:57 MIN
Increasing the value of talk recordings post-event
Cat Herding with Lions and Tigers - Christian Heilmann
04:49 MIN
Using content channels to build an event community
Cat Herding with Lions and Tigers - Christian Heilmann
04:57 MIN
Developing resilience by expanding your capacity for failure
What 2025 Taught Us: A Year-End Special with Hung Lee
02:44 MIN
Rapid-fire thoughts on the future of work
What 2025 Taught Us: A Year-End Special with Hung Lee
03:28 MIN
Why corporate AI adoption lags behind the hype
What 2025 Taught Us: A Year-End Special with Hung Lee
03:12 MIN
Creating psychological safety as the foundation for performance
Sustainable High Performance: Build It or Pay the Price
09:16 MIN
Actionable tips for employers and employees
Sustainable High Performance: Build It or Pay the Price
Featured Partners
Related Videos
Watch Tests Go Brrrr! : Getting Started with Cypress in ReactJS
Anna McDougall
The 2025 State of JavaScript Testing
Daniel Afonso
Testing web3 applications
Soumaya Erradi
Let's get visual - Visual testing in your project
Ramona Schwering
Let's get visual - Visual testing in your project
Ramona Schwering
Fighting test flakiness with time machines
Filip Hric
Accessibility Test Driven Development
Maria Korneeva
How not to test
Golo Roden
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.

Confideck GmbH
Vienna, Austria
Remote
Intermediate
Senior
Node.js
MongoDB
TypeScript



ITech Consult AG
Zürich, Switzerland
Remote
CHF166-208K
Java
Scrum
Spring
+3


MatchMatters
Blaricum, Netherlands
Remote
CSS
HTML
REST
Scrum
+2

Cypress Semiconductor Corporation
Walldorf, Germany
Junior
React
Angular
JavaScript

Cypress Semiconductor Corporation
Sankt Leon-Rot, Germany
GIT
Java
Azure
Scrum
DevOps
+4

Cypress Semiconductor Corporation
Berlin, Germany
GIT
Java
JIRA
Python
JavaScript
+1