Skip to content

document.referrer is set on cy.visit(...) #4295

@JustTB

Description

@JustTB

Current behavior:

document.referrer is set to cypress test url when I use cy.visit(...)

Desired behavior:

document.referrer is an empty string

Steps to reproduce: (app code and test code)

cy.visit('https://your.test.dom/')

jscode on the page:

console.log(document.referrer)

Versions

3.3.1 cypress (chromium 73 and electron 61)
Kubuntu 18.04

Metadata

Metadata

Labels

good first issueGood for newcomerspkg/driverThis is due to an issue in the packages/driver directorytype: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions