fireEvent.mouseOver(screen.getByText('bottomLeft')); await waitFor(() => screen.getByTestId('dropdown-menu')) Taken from: https://stackoverflow.com/a/64796558