Skip to content

Support dynamically disabling request logs via cy.intercept() #26069

@flotwig

Description

@flotwig

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions