Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

verify-next-layout: improve drawer timing and null-safety

nirholas6ca03aaae735
diff --git a/scripts/verify-next-layout.mjs b/scripts/verify-next-layout.mjs
index 8bff295ff..53abe48dd 100644
--- a/scripts/verify-next-layout.mjs
+++ b/scripts/verify-next-layout.mjs
@@ -119,20 +119,23 @@ if (clipsLoaded) {
}
// ── Controls drawer opens, contains the dat.GUI panel ───────────────────
-await page.evaluate(() => document.getElementById('next-controls-btn').click());
+await page.waitForTimeout(300);
+await page.evaluate(() => document.getElementById('next-controls-btn')?.click());
await page.waitForFunction(
() => document.getElementById('next-drawer')?.classList.contains('next-drawer--open'),
null,
- { timeout: 3000 },
+ { timeout: 8000 },
);
const hasGui = await page.evaluate(() => {
const body = document.getElementById('next-drawer-body');
return Boolean(body?.querySelector('.gui-wrap'));
});
if (!hasGui) fail('Controls drawer did not host the dat.GUI panel');
-await page.evaluate(() => document.getElementById('next-drawer-close').click());
+await page.evaluate(() => document.getElementById('next-drawer-close')?.click());
await page.waitForFunction(
() => !document.getElementById('next-drawer')?.classList.contains('next-drawer--open'),
+ null,
+ { timeout: 5000 },
);
// ── Share popover opens and contains expected items ─────────────────────