Skip to content

Commit 2475ecb

Browse files
committed
Fix flaky test src/room/composer/Banner/Banner.stories.tsx > With Avatar Image
it was previously loading an external (slow) image which was random (!) by design Fixes #33273
1 parent a08c341 commit 2475ecb

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

15.3 KB
Loading

packages/shared-components/src/room/composer/Banner/Banner.stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { type Meta, type StoryObj } from "@storybook/react-vite";
1111
import { Button } from "@vector-im/compound-web";
1212

1313
import { Banner } from "./Banner";
14+
import avatarImage from "../../../../static/element.png";
1415

1516
const meta = {
1617
title: "room/Banner",
@@ -58,7 +59,7 @@ export const WithAction: Story = {
5859

5960
export const WithAvatarImage: Story = {
6061
args: {
61-
avatar: <img alt="Example" src="https://picsum.photos/32/32" />,
62+
avatar: <img alt="Example" src={avatarImage} height="32px" width="32px" />,
6263
},
6364
};
6465

0 commit comments

Comments
 (0)