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): der Sampling-Fall greift den Regler ueber seine Rolle

purple8ff3b87dbd36
diff --git a/e2e/sampling-popup.spec.ts b/e2e/sampling-popup.spec.ts
index 903369e3..a1ef96e1 100644
--- a/e2e/sampling-popup.spec.ts
+++ b/e2e/sampling-popup.spec.ts
@@ -121,12 +121,16 @@ test('a value set in the popup is still there when it is opened again', async ({
const trigger = page.getByTestId('sampling-trigger')
await trigger.click()
- const temperature = page.getByLabel('Temperature')
+ // Der Ausloeser traegt seit B18 selbst einen Namen ("Sampling: temperature
+ // 0.7"), damit ihn eine Vorlesehilfe im geschlossenen Zustand ansagt. Ein
+ // Name auf Text trifft damit zwei Elemente. Gemeint ist der Regler im Popup,
+ // also greift der Fall ihn ueber seine Rolle.
+ const temperature = page.getByRole('slider', { name: 'Temperature' })
await temperature.fill('1.45')
await page.getByRole('button', { name: 'Close sampling settings' }).click()
await trigger.click()
- await expect(page.getByLabel('Temperature')).toHaveValue('1.45')
+ await expect(page.getByRole('slider', { name: 'Temperature' })).toHaveValue('1.45')
// The closed trigger shows the same number, which is how the row says that
// something is on the wire without the popup being open.
await page.keyboard.press('Escape')