From c2e2088ebf8aeca6d8eee1290379da7d6f41d654 Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Thu, 19 Nov 2026 21:34:33 +0800 Subject: [PATCH] test(e2e): wait for the File Structure dialog's settled width --- e2e/fileStructureLayout.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/e2e/fileStructureLayout.spec.ts b/e2e/fileStructureLayout.spec.ts index a904c86e08..8e595875b8 100644 --- a/e2e/fileStructureLayout.spec.ts +++ b/e2e/fileStructureLayout.spec.ts @@ -45,7 +45,8 @@ test("File Structure keeps symbol filters readable at desktop and minimum window }); expect(clipped).toEqual([]); } - expect((await dialog.boundingBox())!.width).toBeCloseTo(540, 0); + // The dialog scales in when it opens: wait for its settled width. + await expect.poll(async () => Math.round((await dialog.boundingBox())!.width)).toBe(540); const field = dialog.getByRole("treeitem", { name: "orderCount" }); await expect(field).toBeVisible(); await fields.uncheck();