From ddda0436a340bd9ab925636e28de99d4690c2be7 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Fri, 21 Aug 2026 03:07:23 +0000 Subject: [PATCH] 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 --- core/http/react-ui/e2e/voice-library.spec.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/http/react-ui/e2e/voice-library.spec.js b/core/http/react-ui/e2e/voice-library.spec.js index 2a471433e..b5d1052b6 100644 --- a/core/http/react-ui/e2e/voice-library.spec.js +++ b/core/http/react-ui/e2e/voice-library.spec.js @@ -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,