Open ShaMan123 opened 1 month ago
@ShaMan123 For your specific case, I'd recommend to just ignore these specific snapshots when running locally. If you ever have a lot of snapshots that differ between CI and local, look into ignoreSnapshots
option. That said, I will leave this feature request open, just in case it turns out to be a popular ask with various usecases.
🚀 Feature Request
I wish to support the following feature in config:
OR
snapshotPathResolver
should be invoked with the parsed snapshot path (=filename
) for further handling, returning the final path to be used.Currently I am patching playwright to support this. As you xan see it is a very simple change.
Example
It should be used for fine grained runtime control over the snapshot path.
Motivation
In a project I work on some snapshots fail on CI (a very little number) due to OS diffs and we do not want to handle 2 sets of snapshot for dev and for CI so I would like to snapshot locally against a different snapshot