test(collada): bound the large-open readiness case to a few minutes
the expected failure previously spent two ten-minute polls (11.6 min per run). the open publishes in ~90 s and the unready flip follows the first post-open frame, so the case now allows 240 s for the flip and 120 s for the republish and caps the whole run at 8 minutes. worker instrumentation used for the investigation is removed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user