Open mbrodala opened 1 month ago
We have worked around these issues ATM:
v2-my-screenshot.png
)$CI_COMMIT_REF_SLUG
) and the current date locally (e.g. foo-feature-v2-my-screenshot.png
, bar-feature-v2-my-screenshot.png
) and use this for I.saveScreenshot()
and I.seeVisualDiff()
compareWithImage
on I.seeVisualDiff()
to use the unprefixed base screenshot (v2-my-screenshot.png
)This way there are no conflicts anymore on S3. The base
folder contains the versioned but unprefixed base screenshots and diff
/ output
contain the versioned and prefixed diff/actual screenshots. The base
screenshots are basically shared between all Git branches but said branches have their specific output
and diff
screenshots.
Still an option to skip the (still pointless) upload of output
and diff
would be useful.
If S3 (AWS, DigitalOcean, etc.) is configured, this helper downloads and uploads
output
(actual),base
anddiff
images to the S3 storage.However for a regular CI workflow it does not make sense to have
diff
images uploaded:Thus it would be useful to have an option to skip the upload of
diff
images to S3. Instead they should only be stored locally in this case.Notice that the same goes for
output
(actual) for the same reasons listed above. Updating thebase
images should always be done locally