From 6c4d4eb7cd34b488158cb8cb47c1138eaca82967 Mon Sep 17 00:00:00 2001 From: Joan Perals Tresserra Date: Fri, 22 Sep 2023 07:19:56 +0200 Subject: [PATCH] Revert "Increase timeout" This reverts commit 695bff32df6c4c6c4e1cb880693b76eb20af32c3. --- pages/dropdown/width.page.tsx | 2 +- src/internal/components/dropdown/__integ__/width.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/dropdown/width.page.tsx b/pages/dropdown/width.page.tsx index 9e1163f487..39ea2d9b01 100644 --- a/pages/dropdown/width.page.tsx +++ b/pages/dropdown/width.page.tsx @@ -209,7 +209,7 @@ export default function () { const [loading, setLoading] = useState(asyncLoading); const onOpen = () => { if (asyncLoading) { - setTimeout(() => setLoading(false), 1000); + setTimeout(() => setLoading(false), 500); } }; const onClose = () => setLoading(asyncLoading); diff --git a/src/internal/components/dropdown/__integ__/width.test.ts b/src/internal/components/dropdown/__integ__/width.test.ts index 83e241b05c..6d11652b4c 100644 --- a/src/internal/components/dropdown/__integ__/width.test.ts +++ b/src/internal/components/dropdown/__integ__/width.test.ts @@ -148,7 +148,7 @@ describe('Dropdown width', () => { expect(dropdownBox.left + dropdownBox.width).toBeLessThanOrEqual(pageWidth); await expect(page.getText(dropdownSelector)).resolves.toContain('Loading'); await page.waitUntil(async () => (await page.getText(dropdownSelector)).includes('A very'), { - timeout: 2000, + timeout: 1000, }); const newBox = await page.getBoundingBox(dropdownSelector); expect(newBox.left + newBox.width).toBeLessThanOrEqual(pageWidth);