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-save-error: dispatchEvent for CSS-animated panel button

nirholasa9e0075e02e0
diff --git a/scripts/verify-save-error.mjs b/scripts/verify-save-error.mjs
index a692b7523..0abc6c1e0 100644
--- a/scripts/verify-save-error.mjs
+++ b/scripts/verify-save-error.mjs
@@ -134,7 +134,9 @@ await page.waitForFunction(
);
// First Save attempt → presign returns 502 → inline error surface appears.
-await page.click('#save-btn');
+// dispatchEvent bypasses Playwright's pointer-simulation stability check,
+// which rejects buttons that are visible but inside a CSS-animated panel.
+await page.locator('#save-btn').dispatchEvent('click');
await page.waitForFunction(
() => document.getElementById('save-loading')?.getAttribute('data-state') === 'error',
{ timeout: 10_000 },
@@ -165,7 +167,7 @@ if (!saveStillEnabled) fail('Save button should re-enable after Cancel');
// Trigger the flow again, this time clicking Retry, and assert presign was
// called a second time (Retry actually re-runs onSave end to end).
-await page.click('#save-btn');
+await page.locator('#save-btn').dispatchEvent('click');
await page.waitForFunction(
() => document.getElementById('save-loading')?.getAttribute('data-state') === 'error',
{ timeout: 10_000 },