Skip to content

Issue with Snapshot File Naming in Paparazzi 1.3.5 #1884

@FireHook

Description

@FireHook

Summary:

The changes introduced in the Paparazzi 1.3.5 update (PR #1534) have caused an issue where space symbols in the snapshot file names are being replaced. As a result, about 1,000 of my snapshot files need to be recorded again, which is problematic for my testing process.

Problem:

Before the update, snapshot names like this:

com.example.snapshots_LoginSnapshotPreviewsTest_shouldRenderComponent|2.BottomSectionPreview - DarkThemed.png
Were renamed to:
com.example.snapshots_LoginSnapshotPreviewsTest_shouldRenderComponent|2.BottomSectionPreview_-_DarkThemed.png

This change overrides the space symbol (" ") with an underscore ("_"), causing all previously recorded snapshots to have mismatched names.

Expected Behavior:

The space symbol should remain intact in the file names for consistency in the snapshot testing process.

Impact:

This change affects our ability to reuse existing snapshots and makes the test suite less reliable as the old snapshot files need to be regenerated.

Request:

Could this behavior be reverted or configurable in a future release to preserve spaces in the snapshot file names?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions