Support WebdriverIO options `updateSnapshots` and `resolveSnapshotPath`
christian-bromann opened this issue · 0 comments
christian-bromann commented
With webdriverio/webdriverio#12189 we started to support configurations to define whether snapshots should be updated and where they should be stored. Let's adopt this for visual testing so that the experience is the same.
- updateSnapshots can be either
all
(for update all snapshots),new
(for update only new snapshots) andnone
(for update no snapshots) - resolveSnapshotPath is a function that returns the path of the snapshot and has the type:
(path: string, extension: string) => string
Question is: I think streamlining these options make sense but are there use cases where one would like to update only one type of snapshot?