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(session): error thrown by unset cookies when printing session details to dev tools console #20946

Merged
merged 2 commits into from
Apr 7, 2022

Conversation

emilyrohrbough
Copy link
Member

@emilyrohrbough emilyrohrbough commented Apr 6, 2022

Fixes issue observed when cookies have not be set within a session and the user clicks the command log to view additional details. Discovered this issue when following along with the cy.session documentation examples in the docs pages.

Error details
Screen Shot 2022-04-05 at 5 46 56 PM
Screen Shot 2022-04-05 at 5 47 07 PM

Observe issue & fix from updated tests:

Screen.Recording.2022-04-06.at.2.55.31.PM.mov

User facing changelog

Fixed an edge-case error observed in cy.session where an error is thrown when no cookies have been set for the session and the user clicks the session command log to view additional details in the dev tools console.

How has the user experience changed?

No error when clicking the session log.

PR Tas

  • 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?

@emilyrohrbough emilyrohrbough requested a review from a team as a code owner April 6, 2022 20:03
@emilyrohrbough emilyrohrbough requested review from jennifer-shehane and removed request for a team April 6, 2022 20:03
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Apr 6, 2022

Thanks for taking the time to open a PR!

@emilyrohrbough emilyrohrbough changed the title fix(sessions): validate cookies exist before rendering cookies table … fix(session): error thrown by unset cookies when printing session details to dev tools console Apr 6, 2022
@mjhenkes mjhenkes self-requested a review April 6, 2022 20:18
@cypress
Copy link

cypress bot commented Apr 6, 2022



Test summary

4401 0 54 0Flakiness 0


Run details

Project cypress
Status Passed
Commit 8326adc
Started Apr 6, 2022 8:58 PM
Ended Apr 6, 2022 9:10 PM
Duration 11:38 💡
OS Linux Debian - 10.10
Browser Firefox 93

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

@jennifer-shehane jennifer-shehane removed their request for review April 6, 2022 21:51
@emilyrohrbough emilyrohrbough merged commit 3b7f0b5 into develop Apr 7, 2022
@emilyrohrbough emilyrohrbough deleted the fix-sessions-error branch April 7, 2022 13:24
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Apr 11, 2022

Released in 9.5.4.

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

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Apr 11, 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.

3 participants