This repository has been archived by the owner on May 22, 2024. It is now read-only.
[terra-functional-testing] non-reference screenshots are not deleted on projects with nested screenshot directories. #668
Labels
bug
📦 terra-functional-testing
Size: 1
Up Next - KC
Issues that are ready to pull into an iteration for the KC team
Milestone
Bug Report
Description
Projects that have
error
,latest
, ordiff
screenshot folders nested are not cleaned when WDIO test starts.As a consumer of terra-functional-testing I want the error, latest, and diff screenshot directories to be deleted before each WDIO test run
Motivation
So that screenshots in these folders from previous runs are deleted and any new screenshots are only for the current test run.
Definition of Done
We'll know we're done when the
error
,latest
, ordiff
screenshot folders are deleted for projects where these folders are nested several levels deep.Steps to Reproduce
error
,latest
, anddiff
inside any of the__snapshots__
folder in terra-application. For example: https://github.com/cerner/terra-application/tree/main/tests/wdio/application-base/private/__snapshots__Additional Context / Screenshots
Expected Behavior
Possible Solution
This logic resolves the paths for the
error
,latest
, anddiff
at the top level. We should add/**/
to make it search all nested directories.Environment
@ Mentions
The text was updated successfully, but these errors were encountered: