From 61bbb37fb33d1203dc602242c559850ed1e23dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Tue, 24 Nov 2026 17:40:49 +0100 Subject: [PATCH] desktop: Fix flaky revision picker test The diff view moves the header the picker sits in once the diff loads, and WebKit drops a click that lands during the move. --- desktop/tests/e2e/repo/patch.spec.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/desktop/tests/e2e/repo/patch.spec.ts b/desktop/tests/e2e/repo/patch.spec.ts index ef195d3cc..8a5a0709e 100644 --- a/desktop/tests/e2e/repo/patch.spec.ts +++ b/desktop/tests/e2e/repo/patch.spec.ts @@ -188,6 +188,9 @@ test("the revision picker counts a revision's commits as the Changes view does", await page.goto(`/repos/${rid}/patches/${patchId}?view=changes`); await expect(page.getByText("2 commits on base")).toBeVisible(); + // The diff rebuilds the header the picker sits in once it loads, and a + // click that straddles that rebuild is dropped. + await expect(addedLine(page, "six")).toBeVisible(); await page.getByRole("button", { name: /Revision 2 of 2/ }).click(); // The second revision's row, which ends with its commit count. await expect(