Network request URLs appear in AUT address bar when hovered/pinned in the command log #22649
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
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 aurl
property, so the AUT incorrectly shows this as the location of the Application Under TestDesired 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.
The text was updated successfully, but these errors were encountered: