mirror of
https://github.com/mudler/LocalAI.git
synced 2026-09-13 22:57:36 -04:00
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:
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,
|
||||
|
||||
Reference in new issue
Block a user