Skip to content

Commit 47f9fa4

Browse files
committed
removed problematic test - transition-based events doesnt work with testing library/jsdom
1 parent e52e6a1 commit 47f9fa4

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

packages/components/src/Accordion/Accordion.test.stories.tsx

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -59,33 +59,3 @@ export const TestExpandShow: Story = {
5959
});
6060
},
6161
};
62-
63-
export const TestExpandHide: Story = {
64-
name: 'Test: Hide',
65-
args: {
66-
header: 'Lorem ipsum',
67-
children: defaultChildren,
68-
initiallyExpanded: true,
69-
},
70-
play: async ({ canvasElement, step, args }) => {
71-
const canvas = within(canvasElement);
72-
73-
await step('Content is initially visible', async () => {
74-
const content = canvas.queryByText('Lorem ipsum dolor sit amet', { exact: false });
75-
76-
await expect(content).toBeVisible();
77-
});
78-
79-
await step('Hide content', async () => {
80-
await userEvent.click(canvas.getByText('Hide'));
81-
82-
await waitFor(async () => {
83-
const content = canvas.queryByText('Lorem ipsum dolor sit amet', { exact: false });
84-
85-
await expect(content).toBeNull();
86-
}, { timeout: 5000, interval: 500, container: canvasElement });
87-
88-
await expect(args.onHandleExpand).toHaveBeenLastCalledWith(false);
89-
});
90-
},
91-
};

0 commit comments

Comments
 (0)