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
07:12 MIN
Ensuring accurate testing across different browsers and devices
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
03:16 MIN
Improving the developer feedback loop with specialized tools
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
01:15 MIN
Crypto crime, EU regulation, and working while you sleep
Fake or News: Self-Driving Cars on Subscription, Crypto Attacks Rising and Working While You Sleep - Théodore Lefèvre
03:58 MIN
Making accessibility tooling actionable and encouraging
Developer Time Is Valuable - Use the Right Tools - Kilian Valkhof
03:31 MIN
The value of progressive enhancement and semantic HTML
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
02:33 MIN
Why you might not need JavaScript for everything
WeAreDevelopers LIVE – You Don’t Need JavaScript, Modern CSS and More
06:33 MIN
The security challenges of building AI browser agents
AI in the Open and in Browsers - Tarek Ziadé
02:49 MIN
Using AI to overcome challenges in systems programming
AI in the Open and in Browsers - Tarek Ziadé
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
Measure and improve frontend performance by using test automation
Ramona Schwering
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

Visonum GmbH
Remote
Junior
Intermediate
React
Redux
TypeScript


Epam Systems, Inc.
Zürich, Switzerland
Selenium
Cucumber
TypeScript
Tricentis Tosca Testsuite

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

TechBiz Global GmbH
REST
Docker
Node.js
JavaScript
Continuous Integration

Citrus
Amsterdam, Netherlands
Remote
€7-11K
Senior
React
DevOps
Vue.js
+12

Cypress Semiconductor Corporation
Dresden, Germany
Senior
Go
API
Bash
Azure
DevOps
+9

Cypress Semiconductor Corporation
Dresden, Germany
Senior
Go
API
Bash
Azure
DevOps
+9