Closed megos closed 1 year ago
This issue is stale because it has been open for more than 14 days with no activity. Remove stale label or comment or this will be closed in 14 days.
hey @megos can you try enabling javascript?
snapshot:
enable-javascript: true
@itsjwala Canvas is shown when enable-javascript is true. Snapshot
But if this option is set to false, I expect the serialized data URI canvas image to be shown.
I created a sample without JavaScript. https://github.com/megos/percy-canvas-test-on-safari/tree/html-only
Only on Safari, you can see the Blue question mark icon that appears when the image failed to load. Snapshot
This behavior of not showing images only in Safari is similar to this #1227.
localhost
domain resources percySnapshot
function in latest version and it should work.
domTransformation: "(documentElement) => documentElement.querySelector('img').forEach(img => { if(img.src.includes('__serialized__') img.src = img.src.replace('localhost', 'local'))})"
The issue is fixed on versions 1.26.1 onwards. Please update to latest release of percy/cli.
@shahidk8 Thanks!
The problem
Canvas (serialized image) is not shown on Safari. This is not happening on other browsers.
Environment
@percy/cli
version: 1.24.0Debug logs
Code to reproduce issue