We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eab1b55 commit cbdd712Copy full SHA for cbdd712
src/components/pickers/Menu/Menu.stories.tsx
@@ -442,3 +442,12 @@ export const WithTriggerState = ({ ...props }) => {
442
</Space>
443
);
444
};
445
+WithTriggerState.play = async ({ canvasElement, viewMode }) => {
446
+ if (viewMode === 'docs') return;
447
+
448
+ const { findByRole } = within(canvasElement);
449
450
+ await userEvent.click(await findByRole('button'));
451
452
+ await expect(await findByRole('menu')).toBeInTheDocument();
453
+};
0 commit comments