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): 16:9 under the prompt and in Advanced give the same size (B49)

purplea404aba11e14
diff --git a/e2e/create-q1-309.spec.ts b/e2e/create-q1-309.spec.ts
index 74bc9ad1..dfc9052a 100644
--- a/e2e/create-q1-309.spec.ts
+++ b/e2e/create-q1-309.spec.ts
@@ -204,3 +204,20 @@ test('B48: Improve my prompt on Edit rewrites the instruction, the graph gets th
const texts = Object.values((await posted(page))[0].prompt).filter((n) => n.class_type === 'CLIPTextEncode').map((n) => n.inputs.text)
expect(texts).toContain('Turn only her jacket deep red and keep everything else exactly as it is.')
})
+
+test('B49: 16:9 under the prompt and 16:9 in Advanced settings give the same size', async ({ page }) => {
+ await boot(page)
+ await openCreate(page, 'Image')
+ await store(page)
+ const size = () => page.evaluate(() => { const s = (window as unknown as AppWindow).__APP__['/src/stores/createStore.ts'].useCreateStore.getState(); return [s.width, s.height] })
+ const square = () => page.evaluate(() => (window as unknown as AppWindow).__APP__['/src/stores/createStore.ts'].useCreateStore.getState().setSize(1024, 1024))
+ await square()
+ await page.getByRole('radio', { name: '16:9', exact: true }).click()
+ const composer = await size()
+ await square()
+ await page.getByRole('button', { name: 'Advanced settings' }).click()
+ await page.getByRole('button', { name: '16:9', exact: true }).click()
+ expect(await size()).toEqual(composer)
+ expect(composer).toEqual([1360, 768])
+ await shot(page, 'q1-b49-16zu9-gleich')
+})