diff --git a/tools/ui/tests/e2e/demo.test.ts b/tools/ui/tests/e2e/demo.test.ts index 6659d7af07..d21dc3837b 100644 --- a/tools/ui/tests/e2e/demo.test.ts +++ b/tools/ui/tests/e2e/demo.test.ts @@ -1,6 +1,7 @@ import { expect, test } from '@playwright/test'; -test('home page has expected title', async ({ page }) => { +test('home page loads', async ({ page }) => { await page.goto('/'); - await expect(page).toHaveTitle(/llama-ui/); + // Wait for the SPA to hydrate — the chat form is rendered by the hydrated app + await expect(page.locator('form').first()).toBeVisible(); });