The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
test(e2e): the desktop specs follow what 3.1.0 changed on purpose
purplee86eeb6fd23a
diff --git a/e2e/coding-agent.spec.ts b/e2e/coding-agent.spec.tsindex 0fd162fc..21da193e 100644--- a/e2e/coding-agent.spec.ts+++ b/e2e/coding-agent.spec.ts@@ -222,9 +222,11 @@ test('agent mode: edit, test, edit, test — the second identical command really// is exactly when it HAS changed (audit B1).expect(shellRuns.length).toBe(2)- // And agent mode injects the long shell timeout now, instead of leaving the- // Rust default of 120 s to kill a real build (audit B8).- expect(shellRuns[0].timeout).toBe(600000)+ // And agent mode passes a timeout instead of leaving the Rust default of+ // 120 s to kill a real run (audit B8). `npm test` is a recognised test run,+ // which keeps run_tests' cap of 300 s (TEST_RUN_TIMEOUT_MS, 3.1.0); any+ // other command gets the long shell default of 600 s.+ expect(shellRuns[0].timeout).toBe(300000)})test('file_read pages a large file instead of dumping it whole', async ({ page }) => {diff --git a/e2e/create-310-p-c.spec.ts b/e2e/create-310-p-c.spec.tsindex 39435524..4821d1be 100644--- a/e2e/create-310-p-c.spec.ts+++ b/e2e/create-310-p-c.spec.ts@@ -2,6 +2,15 @@ import { test, expect, type Page } from '@playwright/test'import { tauriMockInit, DEFAULT_ASSISTANT_REPLY, DEFAULT_MODEL_NAME } from './support/tauri-mock'import { seedOnboardingDone } from './support/cloud-mock'import { bootWithFakeComfy } from './support/fake-comfy'+import { getImageBundles, getVideoBundles } from '../src/api/model-bundles'++// The exact byte counts the catalogue knows (sizeBytes). Since PR #229 a file+// counts as on disk only at exactly that size, so the mock reports it.+const CATALOGUE_BYTES: Record<string, number> = Object.fromEntries(+ [...getImageBundles(), ...getVideoBundles()].flatMap((b) => b.files)+ .filter((f) => f.filename && f.sizeBytes != null)+ .map((f) => [f.filename as string, f.sizeBytes as number]),+)/*** 3.1.0 P-C, Create:@@ -23,7 +32,7 @@ async function toCreate(page: Page) {test('C50: the Start ComfyUI card has the autostart switch, and it saves', async ({ page }) => {await page.addInitScript(tauriMockInit, { assistantReply: DEFAULT_ASSISTANT_REPLY, modelName: DEFAULT_MODEL_NAME, platform: 'windows' as const })await seedOnboardingDone(page)- await page.addInitScript(() => {+ await page.addInitScript((sizes: Record<string, number>) => {const w = window as unknown as { __AUTOSTART__: unknown[]; __TAURI_INTERNALS__: { invoke: (c: string, a: { files?: Array<{ filename: string }> } & Record<string, unknown>) => Promise<unknown> } }w.__AUTOSTART__ = []const bridge = w.__TAURI_INTERNALS__@@ -33,10 +42,10 @@ test('C50: the Start ComfyUI card has the autostart switch, and it saves', asyncif (command === 'comfyui_status') return Promise.resolve({ running: false, starting: false, isLocal: true, found: true, autostart })if (command === 'set_comfyui_autostart') { autostart = !!args.enabled; w.__AUTOSTART__.push(args.enabled); return Promise.resolve({ status: 'saved' }) }// Every starter file is on disk: the card offers Start, not a download.- if (command === 'check_model_sizes') return Promise.resolve((args.files ?? []).map((f) => ({ filename: f.filename, exists: true, actualBytes: 1, complete: true })))+ if (command === 'check_model_sizes') return Promise.resolve((args.files ?? []).map((f) => ({ filename: f.filename, exists: true, actualBytes: sizes[f.filename] ?? 1, complete: true })))return invoke(command, args)}- })+ }, CATALOGUE_BYTES)await toCreate(page)await page.getByRole('radio', { name: 'Image', exact: true }).click()await expect(page.getByText('Your model files are already here')).toBeVisible({ timeout: 20_000 })diff --git a/e2e/create-studio.spec.ts b/e2e/create-studio.spec.tsindex cb9b3af6..3e3b24f7 100644--- a/e2e/create-studio.spec.ts+++ b/e2e/create-studio.spec.ts@@ -186,8 +186,13 @@ test('an older server (no quote_required): Extend and Motion behave exactly as b// with no local engine mocked, hence checking the TEXT, not alert count.)await expect(page.getByText('This feature needs a newer LU Cloud server')).toHaveCount(0)+ // Motion: the classic Wan 2.2 Animate left the pickers on 24.10.2026+ // (lib/render/retired-models.ts); its successor is a Studio model, which+ // an older server does not announce. So Motion offers no classic pick there+ // any more, and it still makes no studio-quote call and raises no alert.await openCharacterAction(page, 'Motion Control')- await expect(page.getByRole('button', { name: /Wan 2\.2 Animate/ })).toBeVisible({ timeout: 15_000 })+ await expect(page.getByRole('radio', { name: 'Motion Control' })).toBeChecked({ timeout: 15_000 })+ await expect(page.getByRole('button', { name: /^Wan 2\.2 Animate$/ })).toHaveCount(0)await expect(page.getByText('This feature needs a newer LU Cloud server')).toHaveCount(0)expect(studioQuoteCalls, studioQuoteCalls.join(', ')).toHaveLength(0)diff --git a/e2e/group-chat-personas.spec.ts b/e2e/group-chat-personas.spec.tsindex a46f3ecf..4bb53fe7 100644--- a/e2e/group-chat-personas.spec.ts+++ b/e2e/group-chat-personas.spec.ts@@ -103,7 +103,8 @@ test('two participants answer as two different personas and know each other by n// The pick lives on the conversation: it is still there after a reload.await page.reload()await page.getByRole('button', { name: /Plugins/ }).click()- await page.getByRole('button', { name: /Group chat/ }).click()+ // Group chat is still on, so its row is open already; a click on it would+ // switch it off (one row per plugin with its own switch, 3.1.0).await expect(page.locator(`[data-testid="group-participant"][data-model="${FIRST}"]`).getByTestId('group-persona-trigger')).toContainText('Code Expert')await expect(page.locator(`[data-testid="group-participant"][data-model="${SECOND}"]`).getByTestId('group-persona-trigger')).toContainText('Helpful Assistant')})diff --git a/e2e/input-and-persona-309.spec.ts b/e2e/input-and-persona-309.spec.tsindex 7393b782..d978a029 100644--- a/e2e/input-and-persona-309.spec.ts+++ b/e2e/input-and-persona-309.spec.ts@@ -85,7 +85,7 @@ test('a persona\'s custom rows go out as typed, and a row in the chat wins', asyawait page.getByRole('button', { name: /Plugins/ }).click()await page.getByRole('button', { name: /^Persona/ }).click()await page.getByRole('button', { name: 'Baron', exact: true }).click()- await page.getByTitle('Enable persona for this chat').click()+ // The Persona switch above turned it on for this chat (3.1.0 plugin rows).await page.keyboard.press('Escape')await send(page, 'hello')diff --git a/e2e/mac-create-mlx.spec.ts b/e2e/mac-create-mlx.spec.tsindex 734f528f..539d3978 100644--- a/e2e/mac-create-mlx.spec.ts+++ b/e2e/mac-create-mlx.spec.ts@@ -1060,9 +1060,11 @@ test('mac local: Turbo, an edit and a batch each carry the stack', async ({ pageawait openStack(page)await drawer(page).getByRole('button', { name: /qwen\/detail/ }).click()await expect(drawer(page).getByText('· 1 active')).toBeVisible()- // A batch of two: one run per image, each with the stack.- await slider(page, 'Batch size').fill('2')+ // Two images per run: one run per image, each with the stack. Since W32 this+ // is the chip next to Create; the Mac has no Batch size (one at a time).await page.keyboard.press('Escape')+ await page.getByRole('button', { name: /^Images per run: / }).click()+ await page.getByRole('radio', { name: '2', exact: true }).click()await page.locator('textarea').first().fill('a lighthouse at dusk')await page.getByRole('button', { name: /^Create$/ }).last().click()await expect.poll(() => generates(page), { timeout: 30_000 }).toBe(2)@@ -1081,8 +1083,9 @@ test('mac local: Turbo, an edit and a batch each carry the stack', async ({ pageawait expect(drawer(page).getByText('· 1 active')).toHaveCount(0)await drawer(page).getByRole('button', { name: /qwen\/detail/ }).click()await expect(drawer(page).getByText('· 1 active')).toBeVisible()- await slider(page, 'Batch size').fill('1')await page.keyboard.press('Escape')+ await page.getByRole('button', { name: /^Images per run: / }).click()+ await page.getByRole('radio', { name: '1', exact: true }).click()await page.locator('textarea').first().fill('make the car blue')await page.getByRole('button', { name: /^Create$/ }).last().click()await expect.poll(() => generates(page), { timeout: 30_000 }).toBe(3)diff --git a/e2e/persona-pick-is-what-is-sent.spec.ts b/e2e/persona-pick-is-what-is-sent.spec.tsindex dec125a4..d383b725 100644--- a/e2e/persona-pick-is-what-is-sent.spec.ts+++ b/e2e/persona-pick-is-what-is-sent.spec.ts@@ -82,9 +82,9 @@ test('a persona picked in Plugins after the chat was opened is the one that is sawait page.getByRole('button', { name: /Plugins/ }).click()await pickChatPersona(page, 'Baron')- await page.getByTitle('Enable persona for this chat').click()+ // The Persona switch above turned it on for this chat (3.1.0 plugin rows).// The menu names Baron for this chat.- await expect(page.getByRole('button', { name: /^Persona/ })).toContainText('Baron')+ await expect(page.getByTestId('plugins-persona')).toContainText('Baron')await page.keyboard.press('Escape')const system = await sendAndReadSystem(page, DEFAULT_MODEL_NAME)@@ -114,9 +114,9 @@ test('after a group with own personas is switched off, the chat persona from Pluawait row.getByTestId('group-persona-list').getByRole('button', { name: persona, exact: true }).click()}// Group chat off, Baron picked for the chat and switched on.- await page.getByRole('button', { name: 'Turn off', exact: true }).click()+ await page.getByTitle('Turn off group chat for this chat').click()await pickChatPersona(page, 'Baron')- await page.getByTitle('Enable persona for this chat').click()+ // The Persona switch above turned it on for this chat (3.1.0 plugin rows).await page.keyboard.press('Escape')const system = await sendAndReadSystem(page, DEFAULT_MODEL_NAME)diff --git a/e2e/persona-sampling.spec.ts b/e2e/persona-sampling.spec.tsindex d95c7dbb..e9a8ebbc 100644--- a/e2e/persona-sampling.spec.ts+++ b/e2e/persona-sampling.spec.ts@@ -105,7 +105,7 @@ test('a persona made with its own sampling values runs on them, and the chat canawait page.getByRole('button', { name: /Plugins/ }).click()await page.getByRole('button', { name: /^Persona/ }).click()await page.getByRole('button', { name: 'Baron', exact: true }).click()- await page.getByTitle('Enable persona for this chat').click()+ // The Persona switch above turned it on for this chat (3.1.0 plugin rows).await page.keyboard.press('Escape')// The popup says the values come from Baron.diff --git a/e2e/planleiste-nach-dem-lauf.spec.ts b/e2e/planleiste-nach-dem-lauf.spec.tsindex 2318c903..29460e6a 100644--- a/e2e/planleiste-nach-dem-lauf.spec.ts+++ b/e2e/planleiste-nach-dem-lauf.spec.ts@@ -88,7 +88,8 @@ test('nach dem Lauf sagt die Planleiste, dass sie stehengeblieben ist', async ({// Der Lauf muss WIRKLICH vorbei sein, sonst prueft der Rest nichts.const gestoppt = page.getByTestId('plan-run-stopped')await expect(gestoppt).toBeVisible({ timeout: 60_000 })- await expect(gestoppt).toHaveText(/the run ended here, 3 of 4 steps done, 1 still open/)+ // Seit 14.11.2026 ohne Zahlen (David: kein Zaehler, nirgends, planStoppedLabel).+ await expect(gestoppt).toContainText('the run ended before every step was done')// Und der Kreisel steht. Gemessen war er der zweite Teil derselben Luege:// aufgeklappt drehte er sich nach dem Ende des Laufs unbegrenzt weiter.diff --git a/e2e/support/tauri-mock.ts b/e2e/support/tauri-mock.tsindex ceb1ea51..b5f6198d 100644--- a/e2e/support/tauri-mock.ts+++ b/e2e/support/tauri-mock.ts@@ -2094,6 +2094,12 @@ export function tauriMockInit(opts: TauriMockOptions) {return data === null ? Promise.reject('Chat attachment is missing. Please attach the original image again.') : Promise.resolve(data)}+ // "Unload all models" frees the LU Engine and ComfyUI's memory too+ // (#235). Here neither runs: nothing to free, and ComfyUI did not answer,+ // which the app reads as "not running", as process.rs reports it.+ case 'offload_local_models':+ return Promise.resolve({ offloaded: [], notOurs: [{ backend: 'comfyui', why: 'nothing answered /free there (connection refused)' }] })+default:// Tauri v2 unlisten calls the injected event registry before IPC.// Use the already unique callback ID as this fixture's listener ID.diff --git a/e2e/voice-status-and-pictures.spec.ts b/e2e/voice-status-and-pictures.spec.tsindex 3afe0446..470e4e6b 100644--- a/e2e/voice-status-and-pictures.spec.ts+++ b/e2e/voice-status-and-pictures.spec.ts@@ -89,10 +89,11 @@ for (const look of LOOKS) {await play(page, [{ type: 'tool-running', id: 'call-1', name: 'file_write', args: { path: 'shopping.txt', content: 'milk\nbread\ncoffee' } }])await expect(status).toHaveText('Writing')await expect(view).not.toContainText('Running file_write')- // The call itself looks as it does in the chat: the name in the shimmer and three dots.+ // The call itself looks as it does in the chat: a plain sentence in the+ // shimmer (3.1.0, tool steps in plain words) and three dots.const writing = view.locator('[data-tool="file_write"]')await expect(writing).toHaveAttribute('data-status', 'running')- await expect(writing.locator('.lu-tool-shimmer')).toHaveText('file_write')+ await expect(writing.locator('.lu-tool-shimmer')).toHaveText('Writing shopping.txt')await expect(writing.locator('.lu-band-dot')).toHaveCount(3)await shot(page, `02-tool-writing-${look.tag}`)