Skip to content

Conversation

estrada9166
Copy link
Member

@estrada9166 estrada9166 commented Oct 6, 2025

Additional details

Steps to test

How has the user experience changed?

PR Tasks


Note

Introduces a user preference and UI toggle to hide/show HTTP (fetch/xhr) requests in the Command Log, wired through GraphQL/local settings, runner state, and reporter rendering with tests.

  • UI/Reporter:
    • Adds "Show HTTP requests" switch in the runnable options popover (runnable-popover-options.tsx).
    • Reporter honors new prop showFetchRequests; request logs (command.tsx) are hidden when disabled.
  • State/Preferences:
    • New preference preferences.showFetchRequests (default true) added to GraphQL schema (gql-LocalSettings.ts, schema.graphql) and types (preferences.ts).
    • Runner/UI store and app state extended with showFetchRequests plus toggle/set APIs; persisted via save:state and restored on start.
  • Wiring:
    • Propagates showFetchRequests through SpecRunnerOpenMode.vue, reporter.ts, main.tsx, and event-manager.ts (included in reporter:start payload and saved via save:state).
    • Mock GraphQL context updated to include showFetchRequests.
  • Tests:
    • E2E tests for toggling visibility and header switch; unit tests for app state and events payloads.
  • Changelog:
    • Notes new "Hide HTTP Requests" option and dropdown entry update.

Written by Cursor Bugbot for commit e7c9757. This will update automatically on new commits. Configure here.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

Copy link

cypress bot commented Oct 6, 2025

cypress    Run #66273

Run Properties:  status check passed Passed #66273  •  git commit e7c9757f89: typo
Project cypress
Branch Review alejandro/chore/hide-fetch-requests
Run status status check passed Passed #66273
Run duration 20m 29s
Commit git commit e7c9757f89: typo
Committer Jennifer Shehane
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 12
Tests that did not run due to a developer annotating a test with .skip  Pending 1102
Tests that did not run due to a failure in a mocha hook  Skipped 4
Tests that passed  Passing 26708
View all changes introduced in this branch ↗︎

Warning

Partial Report: The results for the Application Quality reports may be incomplete.

UI Coverage  45.56%
  Untested elements 185  
  Tested elements 159  
Accessibility  97.97%
  Failed rules  4 critical   8 serious   2 moderate   2 minor
  Failed elements 101  

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

cursor[bot]

This comment was marked as outdated.

}
}

if (model.name === 'request' && !appState.showFetchRequests) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this will hide cy.request command logs as well (which I don't think we want). I think you just need to check model.event is true.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated here 894f856

@jennifer-shehane jennifer-shehane changed the title chore: add toggle to hide fetch requests feat: add toggle to hide fetch requests Oct 7, 2025
@jennifer-shehane jennifer-shehane merged commit 0c718e0 into develop Oct 7, 2025
90 of 93 checks passed
@jennifer-shehane jennifer-shehane deleted the alejandro/chore/hide-fetch-requests branch October 7, 2025 18:24
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 7, 2025

Released in 15.4.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v15.4.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Oct 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hide HTTP requests from the command log

3 participants