Skip to content

fix: saycheese component ignores pauseat prop, causing fixed 5s wait regardless of configuration #2709

Description

@hieuit095

Description

The SayCheese component accepts a pauseAt prop (defaulting to 3000ms) but the setTimeout
always uses a hardcoded 5000ms delay, ignoring the prop entirely. This makes the pauseAt
parameter useless and causes chromatic visual tests to wait a fixed 5 seconds regardless
of what callers configure, potentially slowing down CI pipelines unnecessarily.

Severity: medium
File: .storybook/Setup.tsx

Expected Behavior

The code should handle this case properly to avoid unexpected errors or degraded quality.

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