Skip to content

bahmutov/cypress-multiple-aliases

Repository files navigation

cypress-multiple-aliases

See the file cypress/integration/spec.js

Read the blog post Avoid Cypress Pyramid of Doom and Pass Values Between Cypress Tests.

The tests

📺 If you would rather watch the explanation from this blog post, watch it here and subscribe to my YouTube channel.

Bonus 1: good testing

Watch the Good Cypress Test Syntax video, where I revisit this test to show how a test should be rewritten.

Bonus 2: valueAsNumber

Watch the video Cypress Hook And Aliases Example

Small print

Author: Gleb Bahmutov <gleb.bahmutov@gmail.com> © 2022

License: MIT - do anything with the code, but don't blame me if it does not work.

Support: if you find any problems with this module, email / tweet / open issue on Github

About

Example using aliases to avoid a pyramid of Doom of nested callbacks

Topics

Resources

Stars

Watchers

Forks