diff --git a/e2e/basic.spec.ts b/e2e/basic.spec.ts index 2090e0fee99afc50fe6b42c245a43c95251adf35..93e3edfb9caa47b0d21fa3777c392f7253287b10 100644 --- a/e2e/basic.spec.ts +++ b/e2e/basic.spec.ts @@ -91,17 +91,19 @@ for (const templateType of templateTypes) { test.skip(appType === "--no-frontend"); await page.goto(`http://localhost:${port}`); await page.fill("form input", "hello"); - await page.click("form button[type=submit]"); - const response = await page.waitForResponse( - (res) => { - return ( - res.url().includes("/api/chat") && res.status() === 200 - ); - }, - { - timeout: 1000 * 60, - }, - ); + const [response] = await Promise.all([ + page.waitForResponse( + (res) => { + return ( + res.url().includes("/api/chat") && res.status() === 200 + ); + }, + { + timeout: 1000 * 60, + }, + ), + page.click("form button[type=submit]"), + ]); const text = await response.text(); console.log("AI response when submitting message: ", text); expect(response.ok()).toBeTruthy(); diff --git a/e2e/utils.ts b/e2e/utils.ts index 87a6df8e00b14b3ee55a7ccce89779997dab2d1d..739930c7e2f43e3ae95f70f2310bccff40b3dbe9 100644 --- a/e2e/utils.ts +++ b/e2e/utils.ts @@ -119,6 +119,7 @@ export async function runCreateLlama( postInstallAction, "--tools", "none", + "--no-llama-parse", ].join(" "); console.log(`running command '${command}' in ${cwd}`); const appProcess = exec(command, {