fix(ui): exclude navigation from the TTS mock

The API mock also matched navigation to /app/tts and returned a WAV download instead of the React page. Let non-POST requests reach the test server.

Assisted-by: Codex:gpt-5 [Playwright]
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 1bcbff586b
commit ddda0436a3
1 file changed
+4
@@ -155,6 +155,10 @@ test.describe('Voice Library', () => {
test('sends trimmed speech instructions and omits blank instructions', async ({ page }) => {
const ttsBodies = []
await page.route('**/tts', async route => {
if (route.request().method() !== 'POST') {
await route.fallback()
return
}
ttsBodies.push(route.request().postDataJSON())
await route.fulfill({
status: 200,