cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
47.11k stars 3.19k forks source link

Test Replay not capturing console.log on different origin #28280

Open josh-clanton-powerschool opened 1 year ago

josh-clanton-powerschool commented 1 year ago

Current behavior

In one of our tests we work across multiple domains, but console.log statements from the second origin are not captured in test replay.

Desired behavior

Cypress should capture console logs even when working with a different origin.

Test code to reproduce

Simplified example:

describe('My test', () => {
    it('should do something', () => {
        // Custom login command
        cy.loginToPortal();

        cy.origin('other-domain.com', () => {
            // More testing in here
            cy.visit('https://other-domain.com/my-path');
            // logs from the other domain were not visible in Test Replay
        });
    });
});

Cypress Version

13.2.0

Node version

18.15.0

Operating System

Linux

Debug Logs

No response

Other

No response

jennifer-shehane commented 1 year ago

@josh-clanton-powerschool We'll look into this. Thanks for reporting.

cypress-app-bot commented 6 months ago

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

cypress-app-bot commented 5 months ago

This issue has been closed due to inactivity.