Skip to content
New issue

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

Using user.keyboard to simulate the user pasting a title text, the label of the text in clipboard is escaped #1193

Open
qianjunhu opened this issue Jan 31, 2024 · 0 comments
Labels
bug Something isn't working needs assessment This needs to be looked at by a team member

Comments

@qianjunhu
Copy link

Reproduction example

https://codesandbox.io/p/sandbox/clever-shockley-lkdm23?file=%2Fsrc%2FApp.js%3A10%2C34

Prerequisites

1、Renders a div whose contentEditable is true
2、Using keyboard, simulate the user to copy a Heading elements

Expected behavior

The style of theHeading elements is retained

Actual behavior

Heading elements are escaped
image

User-event version

14.5.2

Environment

@testing-library/react@^13.4.0
@testing-library/jest-dom@^5.17.0

Additional context

No response

@qianjunhu qianjunhu added bug Something isn't working needs assessment This needs to be looked at by a team member labels Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs assessment This needs to be looked at by a team member
Projects
None yet
Development

No branches or pull requests

1 participant