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.

fix(e2e): match cloud-create/mac-mlx specs to the Enhance Image label

purpled50be13ef1da
diff --git a/e2e/cloud-create.spec.ts b/e2e/cloud-create.spec.ts
index 19d8ce87..2a3c37eb 100644
--- a/e2e/cloud-create.spec.ts
+++ b/e2e/cloud-create.spec.ts
@@ -30,7 +30,9 @@ test('cloud render: submit → poll → gallery, meter + utility intents present
await bootIntoCloudCreate(page, { license: 'active', access: true, mediaLive: true })
// Cloud-only utility intents are offered on the cloud backend.
- await expect(page.getByRole('radio', { name: /Upscale/i })).toBeVisible({ timeout: 15_000 })
+ // R5-67 renamed the upscale label to "Enhance Image" (parity with web);
+ // the id stays 'upscale', only the visible text changed.
+ await expect(page.getByRole('radio', { name: /Enhance Image/i })).toBeVisible({ timeout: 15_000 })
await expect(page.getByRole('radio', { name: /Erase Object/i })).toBeVisible()
// Credits meter reflects the mocked quota (remaining = 2,550,000 − 12,345).
@@ -116,10 +118,10 @@ test('local mode: local lanes usable, cloud-only ops shown as locked teasers', a
// cloudOnly WITHOUT a local lane (upscale / eraser) renders locked:
// aria-label gains ", runs on LU Cloud" and a click opens the teaser
// instead of switching the lane.
- await expect(page.getByRole('radio', { name: 'Upscale, runs on LU Cloud' })).toBeVisible()
+ await expect(page.getByRole('radio', { name: 'Enhance Image, runs on LU Cloud' })).toBeVisible()
await expect(page.getByRole('radio', { name: 'Erase Object, runs on LU Cloud' })).toBeVisible()
- await page.getByRole('radio', { name: 'Upscale, runs on LU Cloud' }).click()
+ await page.getByRole('radio', { name: 'Enhance Image, runs on LU Cloud' }).click()
await expect(page.getByRole('radio', { name: 'Image', exact: true })).toBeChecked()
})
diff --git a/e2e/mac-create-mlx.spec.ts b/e2e/mac-create-mlx.spec.ts
index d7bcde8c..3cad6940 100644
--- a/e2e/mac-create-mlx.spec.ts
+++ b/e2e/mac-create-mlx.spec.ts
@@ -63,7 +63,8 @@ test('mac local: MLX lanes run locally, cloud-only lanes stay visible as teasers
// Everything hosted-only keeps its place in the bar as a locked teaser —
// David's rule: what can't run locally is still shown, not deleted.
- for (const label of ['Upscale', 'Erase Object', 'Character Studio', 'Talking Character', 'Music', 'Extend Video', 'Motion Control']) {
+ // R5-67 renamed the upscale label to "Enhance Image" (parity with web).
+ for (const label of ['Enhance Image', 'Erase Object', 'Character Studio', 'Talking Character', 'Music', 'Extend Video', 'Motion Control']) {
await expect(page.getByRole('radio', { name: `${label}, runs on LU Cloud` })).toBeVisible()
}