Skip to content
Snippets Groups Projects
Commit 26253f98 authored by Huu Le (Lee)'s avatar Huu Le (Lee) Committed by GitHub
Browse files

fix: add --no-llama-parse and improve e2e test (#607)

parent 1d4a592f
No related branches found
No related tags found
No related merge requests found
...@@ -91,17 +91,19 @@ for (const templateType of templateTypes) { ...@@ -91,17 +91,19 @@ for (const templateType of templateTypes) {
test.skip(appType === "--no-frontend"); test.skip(appType === "--no-frontend");
await page.goto(`http://localhost:${port}`); await page.goto(`http://localhost:${port}`);
await page.fill("form input", "hello"); await page.fill("form input", "hello");
await page.click("form button[type=submit]"); const [response] = await Promise.all([
const response = await page.waitForResponse( page.waitForResponse(
(res) => { (res) => {
return ( return (
res.url().includes("/api/chat") && res.status() === 200 res.url().includes("/api/chat") && res.status() === 200
); );
}, },
{ {
timeout: 1000 * 60, timeout: 1000 * 60,
}, },
); ),
page.click("form button[type=submit]"),
]);
const text = await response.text(); const text = await response.text();
console.log("AI response when submitting message: ", text); console.log("AI response when submitting message: ", text);
expect(response.ok()).toBeTruthy(); expect(response.ok()).toBeTruthy();
......
...@@ -119,6 +119,7 @@ export async function runCreateLlama( ...@@ -119,6 +119,7 @@ export async function runCreateLlama(
postInstallAction, postInstallAction,
"--tools", "--tools",
"none", "none",
"--no-llama-parse",
].join(" "); ].join(" ");
console.log(`running command '${command}' in ${cwd}`); console.log(`running command '${command}' in ${cwd}`);
const appProcess = exec(command, { const appProcess = exec(command, {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment