Skip to content

An open source design system that's fully customizable and agent ready

TypeScript

test(ResizeHandle): budget the whole-inventory contract sweep like the others (#7584)

Cindy Zhang2b0123b9cc84
diff --git a/packages/core/src/Resizable/__tests__/ResizeHandle.a11y.chromium.spec.ts b/packages/core/src/Resizable/__tests__/ResizeHandle.a11y.chromium.spec.ts
index 96d2374294..1acf7f63c2 100644
--- a/packages/core/src/Resizable/__tests__/ResizeHandle.a11y.chromium.spec.ts
+++ b/packages/core/src/Resizable/__tests__/ResizeHandle.a11y.chromium.spec.ts
@@ -89,6 +89,11 @@ async function runState(
test('every window-splitter expectation is exercised by a ResizeHandle state', async ({
page,
}) => {
+ // One test mounts and checks every binding state in turn: about 20s on an
+ // idle machine, three times that when the contract run shares a runner's
+ // cores, so the default 60s ran out mid-loop on whichever state it reached.
+ // Budget it like the other whole-inventory sweeps (Button, Checkbox).
+ test.setTimeout(3 * 60 * 1000);
const cdp = await page.context().newCDPSession(page);
const results: BindingResult[] = [];
for (const state of RESIZE_HANDLE_BINDING_STATES) {