Skip to content

Commit 7c8757d

Browse files
committed
remove e2e frontend tests for express
1 parent b1a9db2 commit 7c8757d

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

e2e/shared/multiagent_template.spec.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const templateFramework: TemplateFramework = process.env.FRAMEWORK
1616
const dataSource: string = "--example-file";
1717
const templateUI: TemplateUI = "shadcn";
1818
const templatePostInstallAction: TemplatePostInstallAction = "runApp";
19-
const appType: AppType = templateFramework === "nextjs" ? "" : "--frontend";
19+
const appType: AppType = templateFramework === "fastapi" ? "--frontend" : "";
2020
const userMessage = "Write a blog post about physical standards for letters";
2121
const templateAgents = ["financial_report", "blog", "form_filling"];
2222

@@ -61,6 +61,10 @@ for (const agents of templateAgents) {
6161
});
6262

6363
test("Frontend should have a title", async ({ page }) => {
64+
test.skip(
65+
templatePostInstallAction !== "runApp" ||
66+
templateFramework === "express",
67+
);
6468
await page.goto(`http://localhost:${port}`);
6569
await expect(page.getByText("Built by LlamaIndex")).toBeVisible();
6670
});
@@ -69,7 +73,10 @@ for (const agents of templateAgents) {
6973
page,
7074
}) => {
7175
test.skip(
72-
agents === "financial_report" || agents === "form_filling",
76+
templatePostInstallAction !== "runApp" ||
77+
agents === "financial_report" ||
78+
agents === "form_filling" ||
79+
templateFramework === "express",
7380
"Skip chat tests for financial report and form filling.",
7481
);
7582
await page.goto(`http://localhost:${port}`);

e2e/shared/streaming_template.spec.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,21 @@ test.describe(`Test streaming template ${templateFramework} ${dataSource} ${temp
6565
const dirExists = fs.existsSync(path.join(cwd, name));
6666
expect(dirExists).toBeTruthy();
6767
});
68+
6869
test("Frontend should have a title", async ({ page }) => {
69-
test.skip(templatePostInstallAction !== "runApp");
70+
test.skip(
71+
templatePostInstallAction !== "runApp" || templateFramework === "express",
72+
);
7073
await page.goto(`http://localhost:${port}`);
7174
await expect(page.getByText("Built by LlamaIndex")).toBeVisible();
7275
});
7376

7477
test("Frontend should be able to submit a message and receive a response", async ({
7578
page,
7679
}) => {
77-
test.skip(templatePostInstallAction !== "runApp");
80+
test.skip(
81+
templatePostInstallAction !== "runApp" || templateFramework === "express",
82+
);
7883
await page.goto(`http://localhost:${port}`);
7984
await page.fill("form textarea", userMessage);
8085
const [response] = await Promise.all([

0 commit comments

Comments
 (0)