diff --git a/web/tests/e2e/collada-model-pipeline.spec.ts b/web/tests/e2e/collada-model-pipeline.spec.ts index 90eaf6542..f482a57bf 100644 --- a/web/tests/e2e/collada-model-pipeline.spec.ts +++ b/web/tests/e2e/collada-model-pipeline.spec.ts @@ -342,7 +342,10 @@ test('COLLADA truncated input is rejected', async ({ page }) => { }); test.fail('COLLADA large open republishes viewport readiness without extra input', async ({ page }, info) => { - test.setTimeout(900_000); + /* Bounded so the expected failure lands in a few minutes: the open publishes in ~90 s, + * the unready flip follows the first post-open frame, and the current gap never + * republishes readiness, so 120 s after the flip is already conclusive. */ + test.setTimeout(480_000); await bootstrap(page, preparedBlend, 236); const canvas = page.locator('canvas[aria-label="Blender desktop"]'); /* Known gap (expected failure): after opening the 238-object project the worker @@ -350,12 +353,12 @@ test.fail('COLLADA large open republishes viewport readiness without extra input * page stops posting frames after the owner-generation change, so readiness never * republishes and the native main regions stay blank. The fixture's readiness workaround * in focusNativeViewport() masks this with pointer input; this case forbids that. */ - await expect(canvas).toHaveAttribute('data-native-input-ready', 'false', { timeout: 600_000 }); - await expect(canvas).toHaveAttribute('data-native-input-ready', 'true', { timeout: 600_000 }); + await expect(canvas).toHaveAttribute('data-native-input-ready', 'false', { timeout: 240_000 }); + await expect(canvas).toHaveAttribute('data-native-input-ready', 'true', { timeout: 120_000 }); const before = await readNativeView3D(page); const point = await nativeViewportPoint(page, 0.5, 0.5); await dragViewport(page, point, { dx: 60, dy: 0, button: 'middle' }); - await expect.poll(async () => rotationDelta(before.viewRotation, (await readNativeView3D(page)).viewRotation), { timeout: 120_000 }).toBeGreaterThan(0.02); + await expect.poll(async () => rotationDelta(before.viewRotation, (await readNativeView3D(page)).viewRotation), { timeout: 60_000 }).toBeGreaterThan(0.02); fs.writeFileSync(info.outputPath('large-open-readiness.json'), JSON.stringify({ ready: await canvas.getAttribute('data-native-input-ready'), before, after: await readNativeView3D(page), }, null, 2));