test(e2e): wait for the File Structure dialog's settled width

Цей коміт міститься в:
l0ng-ai committed 2026-11-19 21:34:33 +08:00
1 джерело 331e5858e3
коміт c2e2088ebf
1 file changed
+2 -1
+2 -1
Переглянути файл
@@ -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();