```md
<!-- MyComponent.stories.mdx -->

import { Meta, Story } from '@storybook/addon-docs';

import { screen, userEvent } from '@storybook/testing-library';

import { MyComponent } from './MyComponent';

<Meta title="Async Query Methods" component={MyComponent} />

<Story
  name="AsyncExample"
  play={async () => {
    // Other steps

    // Waits for the component to be rendered before querying the element
    await screen.findByRole('button', { name: / button label/i }));
  }}>
  <MyComponent />
</Story>
```