8000 Gave up · coder/coder@4d7799d · GitHub
[go: up one dir, main page]

Skip to content

Commit 4d7799d

Browse files
committed
Gave up
1 parent fb9005a commit 4d7799d

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

site/src/modules/notifications/NotificationsInbox/InboxPopover.stories.tsx

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,6 @@ export const Default: Story = {
3636
},
3737
};
3838

39-
export const Scrollable: Story = {
40-
args: {
41-
unreadCount: 2,
42-
notifications: MockNotifications,
43-
},
44-
play: async ({ canvasElement }) => {
45-
const body = canvasElement.ownerDocument.body;
46-
const content = body.querySelector<HTMLDivElement>(
47-
"[data-radix-scroll-area-viewport]",
48-
);
49-
if (!content) {
50-
throw new Error("ScrollArea content not found");
51-
}
52-
await waitFor(() => {
53-
const distanceToBottom = content?.children[0].clientHeight;
54-
content.scroll({
55-
top: distanceToBottom,
56-
});
57-
expect(content.scrollTop).not.toBe(0);
58-
});
59-
},
60-
};
61-
6239
export const Loading: Story = {
6340
args: {
6441
unreadCount: 0,

0 commit comments

Comments
 (0)
0