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.

test(e2e): keep the live home journeys under their own config and follow the routes that moved

nirholasd7e5e5277a5d
diff --git a/playwright.config.js b/playwright.config.js
index a7fcb5b7a..9b482ab36 100644
--- a/playwright.config.js
+++ b/playwright.config.js
@@ -11,6 +11,18 @@ import { defineConfig } from '@playwright/test';
// the cold transform finishes and bring down the next two tests with it.
export default defineConfig({
testDir: 'tests/e2e',
+ // The home lane's live journeys (the specs that import ./home-support.js)
+ // drive a real Home Assistant and two provisioned accounts, which only
+ // playwright.home.config.js sets up (`npm run test:home:e2e`). Under this
+ // config they have no stack to read and die on the first sign-in, so they
+ // stay out of the general run. The stub-driven home specs (home-connect,
+ // home-whose-fault) need no stack and still run here.
+ testIgnore: [
+ '**/home-confirmation.spec.js',
+ '**/home-control.spec.js',
+ '**/home-floorplan.spec.js',
+ '**/home-scene.spec.js',
+ ],
// 300s, not 120s: the a11y floor spec runs axe over every top-30 page, and
// axe's colour-contrast pass is O(rendered nodes). /marketplace renders a
// ~77-card grid and legitimately takes ~4.3 min against the dev server
diff --git a/tests/e2e/forge-text-to-3d.spec.js b/tests/e2e/forge-text-to-3d.spec.js
index 4761587bf..959774407 100644
--- a/tests/e2e/forge-text-to-3d.spec.js
+++ b/tests/e2e/forge-text-to-3d.spec.js
@@ -103,7 +103,12 @@ test.describe('Forge — text → 3D', () => {
// Catalog-driven engine picker renders the free NVIDIA lane with a FREE pill.
const freeEngine = page.locator('#engine button', { has: page.locator('.eng-free') });
- await expect(freeEngine).toBeVisible({ timeout: 30_000 });
+ // The picker is built after the page's module graph finishes loading and
+ // the catalog answers. On a cold Vite dev server that graph transform is
+ // the 30-60s budget playwright.config.js documents, and 30s here flaked
+ // exactly there (first attempt red, retry green). Same ceiling as the
+ // cold-start budget, so a genuinely missing picker still fails.
+ await expect(freeEngine).toBeVisible({ timeout: 60_000 });
await expect(freeEngine).toHaveAttribute('data-backend', 'nvidia');
await freeEngine.click();
await expect(freeEngine).toHaveAttribute('aria-pressed', 'true');
diff --git a/tests/e2e/home-connect.spec.js b/tests/e2e/home-connect.spec.js
index 17e5517f4..f42d0c469 100644
--- a/tests/e2e/home-connect.spec.js
+++ b/tests/e2e/home-connect.spec.js
@@ -298,8 +298,8 @@ test.describe('/smart-home connect flow', () => {
// And it offers the way back up, because a deep link is often the first
// page somebody lands on.
await expect(page.getByRole('link', { name: /all your homes/i })).toHaveAttribute('href', '/smart-home');
- // No link to the page we are already on.
- await expect(page.getByRole('link', { name: /^open/i })).toHaveCount(0);
+ // "Open" leads into the house itself, never back to the card we are on.
+ await expect(page.getByRole('link', { name: /^open/i })).toHaveAttribute('href', `/smart-home/${HOME.id}`);
});
test('a deep link to a home that is not yours reveals nothing', async ({ page }) => {