Skip to content

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.

test(e2e): the image-part spec finds Get by its size, whatever target it names

purplef1ea0f16f360
diff --git a/e2e/image-part.spec.ts b/e2e/image-part.spec.ts
index af2005f0..3b50be07 100644
--- a/e2e/image-part.spec.ts
+++ b/e2e/image-part.spec.ts
@@ -141,8 +141,10 @@ test('the tick taken out downloads the model alone', async ({ page }) => {
await tick.getByRole('checkbox').uncheck()
await expect(tick).toContainText('Without it the model answers text only. You can add it later under Installed.')
await page.keyboard.press('Escape')
- // The tile now names the model alone.
- await page.getByTitle('Download 5 GB', { exact: true }).first().click()
+ // The tile now names the model alone. Since P11 the title also names where
+ // the download goes ("Download 5 GB to LU Engine"), so only the size part is
+ // pinned here: model alone, no image input in it.
+ await page.getByTitle(/^Download 5 GB( to .+)?$/).first().click()
await expect.poll(async () => (await dlCalls(page)).length).toBe(1)
await page.waitForTimeout(500)
expect((await dlCalls(page)).map((c) => c.filename)).toEqual([MODEL_FILE])