Quick Code
Published in

Quick Code

Passing variables between tests in Cypress

Testing business workflows end2end with cy.task()

Photo by Aaron Burden on Unsplash

I always try to follow Cypress’s best practices when writing robust and isolated test cases. If test data is needed I use fixtures, so that I can predict the outcome. But sometimes you want to test an entire workflow, where different types of users execute different parts of the process.

--

--

--

Find the best tutorials and courses for the web, mobile, chatbot, AR/VR development, database management, data science, web design and cryptocurrency. Practice in JavaScript, Java, Python, R, Android, Swift, Objective-C, React, Node Js, Ember, C++, SQL & more.

Recommended from Medium

Python — Lists, Tuples and Dictionaries

ANU #93 — A Focus on User Feedback and Payment Process Updates

Technical debt is an organizational crisis.

So… How to start a new job (as a Senior)?

How deadlines and date-setting can work in product development

How to Select the Correct Machine Vision Lens for Your Application

How to Make Ruby Even More Magical

AMA Community

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Paul de Witt

Paul de Witt

IT entrepreneur, Test Automation Specialist, trainer, DJ, and father of three. Creator at heart.

More from Medium

Use of dynamic access token for multiple requests in Jmeter

Multithreading with Playwright (Java)

Increasing Test Coverage with Hybrid Automation Frameworks

API testing with Playwright & odottaa