Support dynamically disabling request logs via `cy.intercept()`
flotwig opened this issue · 1 comments
flotwig commented
What would you like?
Add the ability to dynamically disable request logs in cy.intercept(), like so:
cy.intercept('/foo', (req) => {
req.log = false
}
Why is this needed?
#25547 adds the ability to control log
via StaticResponseWithOptions
. However, this can only be done statically, not dynamically via an interceptor function.
The reasons why it was done this way are detailed in the original ClickUp initiative. TL;DR: dynamically setting log
can cause a log to be hidden/shown asynchronously, which requires making some hard UI decisions about how to indicate this at each step.
Other
No response
jennifer-shehane commented
Make sure to update the docs when this issue is closed in the future. cypress-io/cypress-documentation#5106