Fix ImageReplyBodyView test flake (#33974)

* Fix aspect ratio in ImageReplyBodyView story

* De-flake blurhash story via per-story failureThreshold

Revert the aspectRatio change (it produced byte-identical blurhash output,
so it did not address the flake, and only churned the with-banner baseline)
and instead allow a small per-story failureThreshold on LoadingWithBlurhash.
The blurhash <canvas> rasterizes to one of two ~33px-apart variants per run;
this tolerates that benign jitter while keeping the strict 3px elsewhere.
This commit is contained in:
David Langley
2026-06-26 14:09:53 +00:00
committed by GitHub
parent c4b12cbb4c
commit ed768f69e1
@@ -75,6 +75,13 @@ export const LoadingWithBlurhash: Story = {
args: {
placeholder: ImageReplyBodyViewPlaceholder.BLURHASH,
},
// The blurhash <canvas> rasterizes to one of two ~33px-apart variants per run;
// tolerate that benign jitter rather than flake against the strict 3px default.
parameters: {
snapshot: {
failureThreshold: 100,
},
},
};
export const AnimatedPreview: Story = {