diff --git a/tests/ui_tests/__init__.py b/tests/ui_tests/__init__.py index ee1fad614f..b5be41838e 100644 --- a/tests/ui_tests/__init__.py +++ b/tests/ui_tests/__init__.py @@ -226,6 +226,12 @@ def update_fixtures_with_diff() -> int: diff = json.loads(line) FILE_HASHES[diff["test_name"]] = diff["actual_hash"] + # Copying the recorded screens to "recorded" dir + actual = SCREENS_DIR / diff["test_name"] / "actual" + recorded = SCREENS_DIR / diff["test_name"] / "recorded" + shutil.rmtree(recorded, ignore_errors=True) + shutil.copytree(actual, recorded) + write_fixtures(remove_missing=False) # Returning the amount of updated hashes