cy.screenshot is not capturing canvas element on Chrome #30775
Open
Description
Current behavior
I'm running a test where a canvas screenshot is taken.
A screenshot is saved as a result. But the resulting file image is different for different browsers:
Desired behavior
Canvas graphics should be saved when running tests on Chrome.
Test code to reproduce
it('canvas screenshot', () => {
Cypress.on('uncaught:exception', () => {
return false;
});
cy.visit('https://www.mapbox.com/maps');
cy.get('.mapboxgl-canvas').last().wait(5000).screenshot('canvas');
});
Cypress Version
13.16.1
Node version
v22.12.0
Operating System
cypress/factory:5.1.1 image
Debug Logs
No response
Other
No response