Skip to content

Commit

Permalink
Revert "Increase timeout"
Browse files Browse the repository at this point in the history
This reverts commit 695bff3.
  • Loading branch information
jperals committed Sep 22, 2023
1 parent 695bff3 commit 6c4d4eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pages/dropdown/width.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/internal/components/dropdown/__integ__/width.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6c4d4eb

Please sign in to comment.