Skip to content

misc: pass the related command log to the createSnapshot function#30244

Merged
ryanthemanuel merged 4 commits into
developfrom
mschile/protocol/pass_log_to_snapshot
Sep 16, 2024
Merged

misc: pass the related command log to the createSnapshot function#30244
ryanthemanuel merged 4 commits into
developfrom
mschile/protocol/pass_log_to_snapshot

Conversation

@mschile
Copy link
Copy Markdown
Collaborator

@mschile mschile commented Sep 16, 2024

  • Closes n/a

Additional details

The related command log is now being passed to the createSnapshot function so it can be used within the Protocol to determine if a canvas snapshot needs to be taken.

Also removed to the dead protocol code in createSnapshot.

Steps to test

Updated the log test to verify the related log is passed to createSnapshot.

How has the user experience changed?

PR Tasks

@mschile mschile self-assigned this Sep 16, 2024
@cypress
Copy link
Copy Markdown

cypress Bot commented Sep 16, 2024

cypress    Run #57099

Run Properties:  status check passed Passed #57099  •  git commit 02ed4da62e: update system test snapshot
Project cypress
Branch Review mschile/protocol/pass_log_to_snapshot
Run status status check passed Passed #57099
Run duration 24m 17s
Commit git commit 02ed4da62e: update system test snapshot
Committer Matthew Schile
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 5
Tests that did not run due to a developer annotating a test with .skip  Pending 1326
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 29395
View all changes introduced in this branch ↗︎
UI Coverage  45.04%
  Untested elements 200  
  Tested elements 168  
Accessibility  91.29%
  Failed rules  5 critical   10 serious   2 moderate   2 minor
  Failed elements 950  

// if the protocol has been enabled, our snapshot is just the name, timestamp, and highlighted elements,
// also make sure numTestsKeptInMemory is 0, otherwise we will want the full snapshot
// (the driver test's set numTestsKeptInMemory to 1 in run mode to verify the snapshots)
if (Cypress.config('protocolEnabled') && Cypress.config('numTestsKeptInMemory') === 0) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice that we're cleaning this up.

@ryanthemanuel ryanthemanuel merged commit f3242ea into develop Sep 16, 2024
@ryanthemanuel ryanthemanuel deleted the mschile/protocol/pass_log_to_snapshot branch September 16, 2024 19:34
@cypress-bot
Copy link
Copy Markdown
Contributor

cypress-bot Bot commented Sep 25, 2024

Released in 13.15.0.

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

@cypress-bot cypress-bot Bot locked as resolved and limited conversation to collaborators Sep 25, 2024
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