Skip to content

[Test Replay] Asset capture doesn't work properly when service workers are initiated from support files #28747

Description

@ryanthemanuel

Current behavior

If you have a service worker that is initiated from a Cypress support file, (like mock service workers), we are not properly flagging that with the Service Worker Manager and as a result we can't properly capture assets which could cause styles to not render properly in test replay for a given site.

Desired behavior

The assets should be captured properly

Test code to reproduce

I have a PR that is incoming with a new system test that shows the problem

Cypress Version

13.6.3

Node version

v18.15.0

Operating System

any

Debug Logs

No response

Other

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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