Skip to content

Hide HTTP requests from the command log #7362

Description

@miklos-eiq

Current behavior:

All XHR requests are printed to the command log, which can be distracting. There is no option to filter them. In #1184 it was mentioned this is possible by whitelisting requests with Cypress.Server.defaults, but that breaks stubbing.

Desired behavior:

Having an option, to only log stubbed XHR requests to the command log.

Maybe the best fix would be not a config option, but a toggle on the test runner, that can hide these logs.

Test code to reproduce

Test any app that does network requests.

Versions

Any OS and version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pkg/driverThis is due to an issue in the packages/driver directorytype: enhancementRequested enhancement of existing feature

    Type

    No type

    Projects

    Status
    Generally Available

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions