fix(ui): target the TTS input in history tests

TTS instructions add a second textarea to the page. Target the speech input by its placeholder so the history test does not depend on the page having one textarea.

Assisted-by: Codex:gpt-5
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto committed 2026-09-11 21:56:02 +00:00
1 parent 919b5c96fa
commit 1bcbff586b
1 file changed
+1 -1
+1 -1
View File
@@ -204,7 +204,7 @@ test.describe('Media History - TTS', () => {
await page.goto('/app/tts')
await expect(page.getByRole('button', { name: 'test-tts-model' })).toBeVisible({ timeout: 10_000 })
await page.locator('.textarea').fill('hello world')
await page.getByPlaceholder('Enter text to synthesize...').fill('hello world')
await page.locator('button[type="submit"]').click()
// History entry should appear