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

Cy.log only logs first 2 parameters when more then 2 are passed #16068

Closed
okyrylenko opened this issue Apr 19, 2021 · 3 comments · Fixed by #16242
Closed

Cy.log only logs first 2 parameters when more then 2 are passed #16068

okyrylenko opened this issue Apr 19, 2021 · 3 comments · Fixed by #16242
Assignees
Labels
pkg/driver This is due to an issue in the packages/driver directory type: unexpected behavior User expected result, but got another

Comments

@okyrylenko
Copy link

okyrylenko commented Apr 19, 2021

Current behavior

When passing 2+ parameters to cy.log function only the first 2 are displayed

Desired behavior

All the passed parameters are logged
In the gist bellow, I am passing 4 strings to cy.log function but only the first 2 are being logged

Test code to reproduce

link to gist - https://gist.github.com/okyrylenko/190d880dc5ca4b6808d57c5cc29240eb

Versions

6.8

@sainthkh sainthkh added stage: ready for work The issue is reproducible and in scope pkg/driver This is due to an issue in the packages/driver directory labels Apr 20, 2021
@sainthkh
Copy link
Contributor

sainthkh commented Apr 20, 2021

I confirmed that it's not working in 7.1.0. Current behavior is against the doc.

There is no limit to the number of arguments.

Reproducible example

cy.log('s', 1, 2, 3, 4)

Result

Screenshot from 2021-04-20 10-07-51

@jennifer-shehane jennifer-shehane added the type: unexpected behavior User expected result, but got another label Apr 21, 2021
@cypress-bot cypress-bot bot added stage: work in progress stage: needs review The PR code is done & tested, needs review and removed stage: ready for work The issue is reproducible and in scope stage: work in progress labels Apr 28, 2021
@cypress-bot cypress-bot bot added stage: pending release and removed stage: needs review The PR code is done & tested, needs review labels Apr 29, 2021
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Apr 29, 2021

The code for this is done in cypress-io/cypress#16242, but has yet to be released.
We'll update this issue and reference the changelog when it's released.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented May 10, 2021

Released in 7.3.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v7.3.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators May 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pkg/driver This is due to an issue in the packages/driver directory type: unexpected behavior User expected result, but got another
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants