Merge pull request #21323 from Snuffleupagus/integration-test-more-fromBase64

Use `Uint8Array.fromBase64` in the `test/integration/highlight_editor_spec.mjs` file
This commit is contained in:
Tim van der Meij 2026-05-24 14:37:27 +02:00 committed by GitHub
commit 4daca805d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2271,9 +2271,7 @@ describe("Highlight Editor", () => {
const pdfData = fs.readFileSync(pdfPath).toString("base64");
const dataTransfer = await page.evaluateHandle(data => {
const transfer = new DataTransfer();
const view = Uint8Array.from(atob(data), code =>
code.charCodeAt(0)
);
const view = Uint8Array.fromBase64(data);
const file = new File([view], "basicapi.pdf", {
type: "application/pdf",
});