Skip to content

percy: capture images with base64 converted src

Administrator requested to merge contractors/SG-20154 into main

Created by: gitstart-sourcegraph

Description

Percy doesn't take screenshots of page at the time calling percySnapshot but captures DOM, CSS rules and uses them to render pages on their browsers including fetching assets, at that points, image src values still have the domain for testing, so Percy won't be able to capture them.

In this PR fixes that issue with converting all img src to base64 uri before calling percySnapshot

Refs

SourceGraph Issue Gitstart Issue

Merge request reports

Loading