From 057507f6ce886313ae79d52508734993bda4abd9 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 24 May 2026 10:56:51 +0200 Subject: [PATCH] Use `Uint8Array.fromBase64` in the `test/integration/highlight_editor_spec.mjs` file --- test/integration/highlight_editor_spec.mjs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/integration/highlight_editor_spec.mjs b/test/integration/highlight_editor_spec.mjs index ec4e7d130..d172b5ac5 100644 --- a/test/integration/highlight_editor_spec.mjs +++ b/test/integration/highlight_editor_spec.mjs @@ -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", });