-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Open
Labels
topic: cy.intercept()type: enhancementRequested enhancement of existing featureRequested enhancement of existing feature
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
topic: cy.intercept()type: enhancementRequested enhancement of existing featureRequested enhancement of existing feature