-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
feat: Display line break in cy.log #25467
Conversation
Test summaryRun details
View run in Cypress Dashboard ➡️ Flakiness
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mike-plummer are you able to take another look at this? |
Two approvals, let's merge this up. Thanks for the contribution! |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
User facing changelog
The
cy.log()
message
will display a line breaks if containing\n
.Also,
Cypress.log
message
will, of course, behave the same way.Additional details
This feature enriches the
cypress open
functionality, by adding the line break to thelog
command.Staking
\n
will be translated in a single line break.Steps to test
cy.log
cy.log('I am the first line! \n I am the second line!'
cypress open
Cypress.log
Cypress.log({displayName:'I won\'t be \n broken!!', message:"but I \n will"})
cypress open
How has the user experience changed?
Not sure if this can be considered a user experience change but:
from this:
to this:
PR Tasks
cypress-documentation
?type definitions
?