```md import { Meta, Story } from '@storybook/addon-docs'; import { screen, fireEvent, userEvent, waitFor } from '@storybook/testing-library'; import { MyComponent } from './MyComponent.component'; { const emailInput = screen.getByLabelText('Username', { selector: 'input', }); await userEvent.type(emailInput, 'WrongInput', { delay: 100, }); const Submit = screen.getByRole('button'); await userEvent.click(Submit); await waitFor(async () => { await userEvent.hover(screen.getByTestId('error')); }); }} /> ```