Skip to content

Commit

Permalink
chore: update comment and add commented loki interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
mgadewoll committed May 21, 2024
1 parent 8b7513f commit d862db1
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/eui/src/components/tool_tip/tool_tip.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,20 @@ type Story = StoryObj<EuiToolTipProps>;
export const Playground: Story = {
args: {
// using autoFocus here as small trick to ensure showing the tooltip on load (e.g. for VRT)
// TODO: exchange for loki play() interactions once #7735 is merged
// TODO: uncomment loki play() interactions and remove autoFocus once #7747 is merged
children: <EuiButton autoFocus>Tooltip trigger</EuiButton>,
content: 'tooltip content',
},
// play: lokiPlayDecorator(async (context) => {
// const { bodyElement, step } = context;

// const canvas = within(bodyElement);

// await step('show tooltip on click', async () => {
// await userEvent.click(canvas.getByRole('button'));
// await waitFor(() => {
// expect(canvas.getByRole('tooltip')).toBeVisible();
// });
// });
// }),
};

0 comments on commit d862db1

Please sign in to comment.