From 94309edc9a20ee75ff04d609b6c8f76a9aa86b89 Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Sat, 27 Jan 2024 20:23:24 +0100 Subject: [PATCH] Disable the "should compress and save text" unit test in Chrome too Starting with Chrome 120.0.6099.109 (shipped with Puppeteer 21.8.0+) the unit test fails in Chrome as well. The issue is tracked in #17399, but for now we'll only run the unit test in Firefox so we can continue to update Puppeteer while also still having a browser in which it runs, until we figure out why the behavior of `CompressionStream` changed. --- test/unit/annotation_spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/annotation_spec.js b/test/unit/annotation_spec.js index 98362f4bf..9a0239e14 100644 --- a/test/unit/annotation_spec.js +++ b/test/unit/annotation_spec.js @@ -2208,9 +2208,9 @@ describe("annotation", function () { }); it("should compress and save text", async function () { - if (isNodeJS) { + if (isNodeJS || !navigator.userAgent.includes("Firefox")) { pending( - "CompressionStream behaves differently in Node.js, compared to Firefox and Chrome." + "CompressionStream behaves differently in Chrome and Node.js, compared to Firefox (issue 17399)." ); } const textWidgetRef = Ref.get(123, 0);