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.
This commit is contained in:
Tim van der Meij 2024-01-27 20:23:24 +01:00
parent f103f277ac
commit 94309edc9a
No known key found for this signature in database
GPG Key ID: 8C3FD2925A5F2762

View File

@ -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);