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

fix: error regression - unexpected ANSI color chars shown on Firefox warning message about chromeWebSecurity #20512

Merged
merged 2 commits into from
Mar 8, 2022

Conversation

davidmunechika
Copy link
Contributor

@davidmunechika davidmunechika commented Mar 7, 2022

User facing changelog

Fix regression that caused ANSI color chars to show up on Firefox warning message about chromeWebSecurity

Additional details

This regression was introduced in Cypress version 9.5.0 as a result of this PR: #20072 where errors originating from the server (@packages/errors) were altered as part of a larger errors improvement.

To fix this regression, I simply stripped the ANSI chars from the warning message, since this config will display differently in 10.0 and will be deprecated with multi-domain anyway.

How has the user experience changed?

Before:

Screenshot 2022-03-07 at 11 38 28 AM

After:

Screenshot 2022-03-07 at 11 56 31 AM

PR Tasks

  • Have tests been added/updated?
  • Has the original issue (or this PR, if no issue exists) been tagged with a release in ZenHub? (user-facing changes only)
  • [n/a] Has a PR for user-facing changes been opened in cypress-documentation?
  • [n/a] Have API changes been updated in the type definitions?
  • [n/a] Have new configuration options been added to the cypress.schema.json?

@davidmunechika davidmunechika self-assigned this Mar 7, 2022
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Mar 7, 2022

Thanks for taking the time to open a PR!

@cypress
Copy link

cypress bot commented Mar 7, 2022



Test summary

19278 0 218 0Flakiness 0


Run details

Project cypress
Status Passed
Commit 53fd890
Started Mar 7, 2022 5:23 PM
Ended Mar 7, 2022 5:35 PM
Duration 12:00 💡
OS Linux Debian - 10.10
Browser Multiple

View run in Cypress Dashboard ➡️


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

@davidmunechika davidmunechika changed the title fix: Unexpected chars shown on Firefox warning message about chromeWebSecurity fix: error regression - unexpected chars shown on Firefox warning message about chromeWebSecurity Mar 7, 2022
@davidmunechika davidmunechika changed the title fix: error regression - unexpected chars shown on Firefox warning message about chromeWebSecurity fix: error regression - unexpected ANSI color chars shown on Firefox warning message about chromeWebSecurity Mar 7, 2022
@davidmunechika davidmunechika marked this pull request as ready for review March 7, 2022 17:40
@davidmunechika davidmunechika requested a review from a team as a code owner March 7, 2022 17:40
@davidmunechika davidmunechika requested review from jennifer-shehane and removed request for a team March 7, 2022 17:40
@jennifer-shehane jennifer-shehane removed their request for review March 7, 2022 17:40
@davidmunechika davidmunechika merged commit 047aefc into develop Mar 8, 2022
@davidmunechika davidmunechika deleted the issue-20496-strip-ansi branch March 8, 2022 13:32
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Mar 14, 2022

Released in 9.5.2.

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

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Mar 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unexpected chars shown on Firefox warning message about chromeWebSecurity
3 participants