Skip to content

Commit e54662b

Browse files
committed
fix(message-prompts): story and test
1 parent b65509c commit e54662b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

chat/message-prompts/src/MessagePrompts.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
StoryMetaType,
66
} from '@lg-tools/storybook-utils';
77
import { StoryFn, StoryObj } from '@storybook/react';
8-
import { expect, userEvent, within } from '@storybook/test';
8+
import { expect, userEvent, waitFor, within } from '@storybook/test';
99

1010
import { MessagePrompt, MessagePrompts, MessagePromptsProps } from '.';
1111

@@ -118,7 +118,7 @@ export const SelectedWithHideOnSelect: StoryObj<MessagePromptsProps> = {
118118
expect(firstPrompt).toHaveAttribute('aria-pressed', 'true');
119119

120120
// After selection with enableHideOnSelect, prompts should not be visible
121-
expect(firstPrompt).not.toBeVisible();
121+
await waitFor(() => expect(firstPrompt).not.toBeVisible());
122122
},
123123
parameters: {
124124
chromatic: {

chat/message-prompts/src/MessagePrompts/MessagePrompts.styles.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ const transitionStyles = css`
2929
`;
3030

3131
const hiddenWrapperStyles = css`
32-
pointer-events: none;
3332
grid-template-rows: 0fr;
3433
opacity: 0;
3534
transform: scale(0.8);

0 commit comments

Comments
 (0)