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

Readme has conflicting information #245

Closed
crfrolik opened this issue May 24, 2024 · 1 comment
Closed

Readme has conflicting information #245

crfrolik opened this issue May 24, 2024 · 1 comment

Comments

@crfrolik
Copy link

Prints cy commands, browser console logs

and

console.log usage was never meant to be used in the cypress test code. Using it will not log anything with this plugin

I am not sure which of those two statements is correct, but unless I am misunderstanding something, they appear to be in conflict.

@archfz
Copy link
Owner

archfz commented May 24, 2024

You need to understand the difference between test code and your tested application code. There are two frames in cypress, one is the testing frame, and under it there is another frame that renders the website you are using.

Also console log usage is a bad practice in cypress test code. Read the related issue in the readme.

@archfz archfz closed this as completed May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants