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.
Description
The
SayCheesecomponent accepts apauseAtprop (defaulting to 3000ms) but thesetTimeoutalways uses a hardcoded 5000ms delay, ignoring the prop entirely. This makes the
pauseAtparameter useless and causes chromatic visual tests to wait a fixed 5 seconds regardless
of what callers configure, potentially slowing down CI pipelines unnecessarily.
Severity:
mediumFile:
.storybook/Setup.tsxExpected Behavior
The code should handle this case properly to avoid unexpected errors or degraded quality.