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

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

Merged
merged 4 commits into from
Sep 16, 2024

Conversation

mschile
Copy link
Contributor

@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
Copy link

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
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
81 of 85 checks passed
@ryanthemanuel ryanthemanuel deleted the mschile/protocol/pass_log_to_snapshot branch September 16, 2024 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants