Skip to content

Some Secondary Origin Logs are Getting Too Many Screenshots #28609

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

Closed
emilyrohrbough opened this issue Dec 28, 2023 · 1 comment · Fixed by #28613
Closed

Some Secondary Origin Logs are Getting Too Many Screenshots #28609

emilyrohrbough opened this issue Dec 28, 2023 · 1 comment · Fixed by #28613
Assignees
Labels
topic: cy.origin Problems or enhancements related to cy.origin command type: bug

Comments

@emilyrohrbough
Copy link
Member

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
Screen Shot 2023-12-28 at 2 57 45 PM Screen Shot 2023-12-28 at 2 57 05 PM
Screen Shot 2023-12-28 at 2 58 08 PM Screen Shot 2023-12-28 at 2 58 51 PM

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

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jan 17, 2024

Released in 13.6.3.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.6.3, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Jan 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic: cy.origin Problems or enhancements related to cy.origin command type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant