Skip to content

[Feature]: Extra Tokens for snapshotPathTemplate #36375

Open
@infinitejest69

Description

@infinitejest69

🚀 Feature Request

We have quite descriptive tests wrapped in test describe blocks that take snapshots. our snapshot dir is setup in the config like so

snapshotPathTemplate: './test/visualtest/snapshots/{testName}{arg}.{ext}',

The issue is with a test describe and test title plus depending on the repo check out location file legths can exceed the allowed limits on windows causing issues.

would be nice if there was some token or way to limit number of characters making file names much shorted but still keeping them traceable back to the test

Example

{TestName{50}} or something to limit the first 50 characters or some abbreviated version

Maybe exclude the describe block its own token

Motivation

Not violate windows file length limits if the repo is checked out to user folder on local machine. keep files names descriptive, small and traceable. the actual file name doesn't matter if there is a way to trace it to a test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions