Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the commands added with Cypress.Commands.add are missing on the traceback #5570

Closed
zodman opened this issue Dec 6, 2023 · 1 comment
Closed

Comments

@zodman
Copy link

zodman commented Dec 6, 2023

Description

I have a test with a lot of cypress commands, calling multiple times

URL of Issue(s)

https://docs.cypress.io/api/cypress-api/custom-commands

Steps to replicate

write multiple commands

command1, command2

create a test with repeated:

command1
command2
command1

if the command1 fail where the error comes ? from the first call or the second call?

the trace back only will tell you the command1 fail!

to avoid this problem instead of using commands. convert my command to a function.

@jennifer-shehane
Copy link
Member

@zodman This is the documentation repo. If you have an issue with Cypress, provide a reproducible example of code we can run in an issue in the cypress repo. https://github.com/cypress-io/cypress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants