We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://codesandbox.io/p/sandbox/old-butterfly-239l2c?file=%2Fsrc%2FApp.test.js%3A4%2C37
<div> <p data-testid="text1" onMouseLeave={onMouseLeave}>text1</p> <p data-testid="text2">text2</p> </div>
const text1 = screen.getByTestId('text1') const text2 = screen.getByTestId('text2')
await user.pointer([{target: text1}, {target: text2}])
event.relatedTarget should be <p data-testid="text2">text2</p>
event.relatedTarget
<p data-testid="text2">text2</p>
event.relatedTarget is global
global
14.5.1
Testing Library framework: @testing-library/[email protected]
@testing-library/[email protected]
JS framework: [email protected]
[email protected]
Test environment: [email protected]
DOM implementation: [email protected]
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Reproduction example
https://codesandbox.io/p/sandbox/old-butterfly-239l2c?file=%2Fsrc%2FApp.test.js%3A4%2C37
Prerequisites
Expected behavior
event.relatedTarget
should be<p data-testid="text2">text2</p>
Actual behavior
event.relatedTarget
isglobal
User-event version
14.5.1
Environment
Testing Library framework:
@testing-library/[email protected]
JS framework:
[email protected]
Test environment:
[email protected]
DOM implementation:
[email protected]
Additional context
No response
The text was updated successfully, but these errors were encountered: