-
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
allow disable of DOM snapshots for stubs and spies #3849
Comments
Can we do our typical cy.command(..., {snapshot: false})?
…Sent from my iPhone
On Mar 29, 2019, at 17:42, Ben Kucera ***@***.***> wrote:
I use a lot of spies and stubs, and don't need a DOM snapshot every time a spied function is called, since a DOM snapshot is memory/CPU intensive
We should be able to disable the snapshot similar to how we can disable the log:
cy.stub().log(false)
cy.stub().snapshot(false)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Does this work?? This is not an intended use of Aside from this, I would advocate for extending the Although, I think that the true win here should be fixing the snapshots to not be so memory intensive as outlined here: #2366 (comment) |
@jennifer-shehane maybe simply support a here's where we create the |
here's where I went ahead and implemented the |
Is there a way to do this at a page/window level? My page loads 50 .proto files and each one creates a log entry and dom snapshot that I don't need to see. |
You can set the
{
"numTestsKeptInMemory": 0
} |
The code for this is done in cypress-io/cypress#3968, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
I use a lot of spies and stubs, and don't need a DOM snapshot every time a spied function is called, since a DOM snapshot is memory/CPU intensive
We should be able to disable the snapshot similar to how we can disable the log:
The text was updated successfully, but these errors were encountered: