Current behavior
Logs that should create one snapshot when the log is created, like cy.clock() or expect(something).to.be(something) is incorrectly creating two logs when the logs originate from a secondary origin.
See some examples:
| Primary Origin |
Secondary Origin |
 |
 |
 |
 |
Desired behavior
Secondary origin logs should log the same attributes as a primary origin log.
Test code to reproduce
it('primary origin log', () => {
cy.clock().tick()
.then(() => {
expect(true).to.be.true
})
})
it('secondary origin', () => {
cy.origin('secondary', () => {
cy.visit('secondary')
})
cy.clock().tick()
.then(() => {
expect(true).to.be.true
})
})
Cypress Version
13.6.2
Node version
16.16.0
Operating System
MacOS 12.5.1
Debug Logs
No response
Other
No response
Current behavior
Logs that should create one snapshot when the log is created, like
cy.clock()orexpect(something).to.be(something)is incorrectly creating two logs when the logs originate from a secondary origin.See some examples:
Desired behavior
Secondary origin logs should log the same attributes as a primary origin log.
Test code to reproduce
Cypress Version
13.6.2
Node version
16.16.0
Operating System
MacOS 12.5.1
Debug Logs
No response
Other
No response