From a5675b79797ff4f9bfedf245d4c4bd23b0447714 Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Mon, 23 Nov 2026 11:16:29 +0800 Subject: [PATCH] test(settings): measure Git Log checkboxes after the dialog settles --- e2e/settingsFormLayout.spec.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e2e/settingsFormLayout.spec.ts b/e2e/settingsFormLayout.spec.ts index 67f3853382..6479dfa83c 100644 --- a/e2e/settingsFormLayout.spec.ts +++ b/e2e/settingsFormLayout.spec.ts @@ -121,7 +121,10 @@ test("Git Log settings group display and column options with aligned checkboxes" for (const width of [1000, 520]) { await page.setViewportSize({ width, height: 760 }); - expect((await tagNames.boundingBox())!.x).toBeCloseTo((await hash.boundingBox())!.x, 0); + // Read both rows together once the dialog has finished opening and relaid out. + await expect + .poll(async () => Math.abs((await tagNames.boundingBox())!.x - (await hash.boundingBox())!.x)) + .toBeLessThan(0.5); } await expect(hash).not.toBeChecked();