Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

Disable flaky WebKit test (#8105)

James Brunton345b187b5343
diff --git a/frontend/editor/src/core/tests/stubbed/viewer-hot-reload-matrix.spec.ts b/frontend/editor/src/core/tests/stubbed/viewer-hot-reload-matrix.spec.ts
index b97b3107d8..ff9e26c30a 100644
--- a/frontend/editor/src/core/tests/stubbed/viewer-hot-reload-matrix.spec.ts
+++ b/frontend/editor/src/core/tests/stubbed/viewer-hot-reload-matrix.spec.ts
@@ -2,6 +2,14 @@ import fs from "node:fs";
import path from "path";
import { test, expect } from "@app/tests/helpers/stub-test-base";
+// Quarantined on WebKit: restoring zoom/scroll after an in-place byte swap
+// races the settle on the slow CI WebKit engine and flakes. Passes on Chromium
+// and Firefox.
+test.skip(
+ ({ browserName }) => browserName === "webkit",
+ "viewer swap-restore flakes on slow CI WebKit",
+);
+
interface SteadyZoomSamplerState {
stop: boolean;
widths: number[];
diff --git a/frontend/editor/src/core/tests/stubbed/viewer-in-place-reload.spec.ts b/frontend/editor/src/core/tests/stubbed/viewer-in-place-reload.spec.ts
index 08bf075abe..88232e7177 100644
--- a/frontend/editor/src/core/tests/stubbed/viewer-in-place-reload.spec.ts
+++ b/frontend/editor/src/core/tests/stubbed/viewer-in-place-reload.spec.ts
@@ -2,6 +2,14 @@ import fs from "node:fs";
import path from "path";
import { test, expect } from "@app/tests/helpers/stub-test-base";
+// Quarantined on WebKit: restoring zoom/scroll after an in-place byte swap
+// races the settle on the slow CI WebKit engine and flakes. Passes on Chromium
+// and Firefox.
+test.skip(
+ ({ browserName }) => browserName === "webkit",
+ "viewer swap-restore flakes on slow CI WebKit",
+);
+
interface SwapSamplerState {
swapMs: number;
swapAt: number;