Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network request URLs appear in AUT address bar when hovered/pinned in the command log #22649

Open
marktnoonan opened this issue Jul 1, 2022 · 0 comments
Labels
pkg/app This is due to an issue in the packages/app directory pkg/reporter This is due to an issue in the packages/reporter directory Reproducible Can be reproduced Triaged Issue has been routed to backlog. This is not a commitment to have it prioritized by the team. type: regression A bug that didn't appear until a specific Cy version release

Comments

@marktnoonan
Copy link
Contributor

Current behavior

Currently the URL in the in address bar gets updated on hover/pinning for any command that has a url property. Network requests logged in the reporter have a url property, so the AUT incorrectly shows this as the location of the Application Under Test

url with network snapshot

Desired behavior

Cypress should ignore the url property when hovering/pinning items in the command log if the URL is not actually the application's URL.

Cypress-in-Cypress E2E tests should be added to cover the behavior of when this URL should and should not update.

Test code to reproduce

Open any E2E spec where the underlying code causes a network request to be logged to the console and hover/pin that request in the command log.

Cypress Version

9.x, 10.x

Other

This goes back at least to 9.x and presumably before that as I don't see anything set up to guard against it. It's possible it just hasn't been noticed.

@emilyrohrbough emilyrohrbough added type: regression A bug that didn't appear until a specific Cy version release pkg/reporter This is due to an issue in the packages/reporter directory Reproducible Can be reproduced pkg/app This is due to an issue in the packages/app directory CT Issue related to component testing labels Jul 1, 2022
@github-actions github-actions bot added the stale no activity on this issue for a long period label Apr 13, 2023
@nagash77 nagash77 added routed-to-ct and removed stale no activity on this issue for a long period labels Apr 13, 2023
@cypress-io cypress-io deleted a comment from github-actions bot Apr 13, 2023
@nagash77 nagash77 added Triaged Issue has been routed to backlog. This is not a commitment to have it prioritized by the team. and removed routed-to-ct labels Apr 19, 2023
@jennifer-shehane jennifer-shehane removed the CT Issue related to component testing label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg/app This is due to an issue in the packages/app directory pkg/reporter This is due to an issue in the packages/reporter directory Reproducible Can be reproduced Triaged Issue has been routed to backlog. This is not a commitment to have it prioritized by the team. type: regression A bug that didn't appear until a specific Cy version release
Projects
None yet
Development

No branches or pull requests

5 participants