Skip to content

feat: simulate clipboard paste and file paste in browserless tests - #147

Draft
mcollovati wants to merge 1 commit into
pr/trigger-simulation-corefrom
pr/clipboard-paste
Draft

feat: simulate clipboard paste and file paste in browserless tests#147
mcollovati wants to merge 1 commit into
pr/trigger-simulation-corefrom
pr/clipboard-paste

Conversation

@mcollovati

Copy link
Copy Markdown
Contributor

Extend ClipboardSimulator to drive clipboard read paths.
pasteInto fires an onPaste DOM event with simulated text/html, and
pasteFilesInto simulates onFilePaste by invoking the resolved
UploadHandler for each PastedFile.

Extract the upload plumbing shared with UploadTester into an internal
UploadSimulation helper (no behavioral change to UploadTester).

Extend `ClipboardSimulator` to drive clipboard read paths.
`pasteInto` fires an `onPaste` DOM event with simulated text/html, and
`pasteFilesInto` simulates `onFilePaste` by invoking the resolved
`UploadHandler` for each `PastedFile`.

Extract the upload plumbing shared with `UploadTester` into an internal
`UploadSimulation` helper (no behavioral change to `UploadTester`).
@mcollovati

Copy link
Copy Markdown
Contributor Author

Part of a 4-PR split (2 PRs per repo).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant