Skip to content

Commit

Permalink
fix: memory chat bot name (#2509)
Browse files Browse the repository at this point in the history
* chore: refresh starter projects components

* format

* bugfix: change memory chatbot to correct name

* bugfix: change memory chatbot to correct name

---------

Co-authored-by: Nicolò Boschi <[email protected]>
Co-authored-by: Gabriel Luiz Freitas Almeida <[email protected]>
  • Loading branch information
3 people authored Jul 3, 2024
1 parent f3a33c9 commit 74845ff
Show file tree
Hide file tree
Showing 8 changed files with 2,880 additions and 3,485 deletions.

Large diffs are not rendered by default.

1,002 changes: 436 additions & 566 deletions src/backend/base/langflow/initial_setup/starter_projects/Blog Writer.json

Large diffs are not rendered by default.

1,495 changes: 682 additions & 813 deletions src/backend/base/langflow/initial_setup/starter_projects/Document QA.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2,657 changes: 1,222 additions & 1,435 deletions src/backend/base/langflow/initial_setup/starter_projects/Vector Store RAG.json

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions src/frontend/tests/end-to-end/actionsMainPage-shard-0.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ test("user should be able to download a flow or a component", async ({
if (await page.getByTestId("replace-button").isVisible()) {
await page.getByTestId("replace-button").click();
}
await page.waitForTimeout(3000);

await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
timeout: 100000,
});

await page.getByTestId("icon-ChevronLeft").last().click();
await page.getByRole("checkbox").nth(1).click();
Expand Down Expand Up @@ -123,8 +126,10 @@ test("user should be able to duplicate a flow or a component", async ({
if (await page.getByTestId("replace-button").isVisible()) {
await page.getByTestId("replace-button").click();
}
await page.waitForTimeout(3000);

await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
timeout: 100000,
});
await page.getByTestId("icon-ChevronLeft").last().click();
await page.getByRole("checkbox").nth(1).click();

Expand Down
23 changes: 23 additions & 0 deletions src/frontend/tests/end-to-end/actionsMainPage-shard-1.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ test("select and delete all", async ({ page }) => {
}
await page.getByRole("heading", { name: "Basic Prompting" }).click();

await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
timeout: 100000,
});

await page.getByTestId("icon-ChevronLeft").first().click();

await page.getByText("Select All").click();
Expand Down Expand Up @@ -53,14 +57,28 @@ test("search flows", async ({ page }) => {
}
await page.getByRole("heading", { name: "Basic Prompting" }).click();

await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
timeout: 100000,
});

await page.getByTestId("icon-ChevronLeft").first().click();

await page.getByText("Select All").isVisible();
await page.getByText("New Project", { exact: true }).click();
await page.getByRole("heading", { name: "Memory Chatbot" }).click();

await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
timeout: 100000,
});

await page.getByTestId("icon-ChevronLeft").first().click();
await page.getByText("New Project", { exact: true }).click();
await page.getByRole("heading", { name: "Document QA" }).click();

await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
timeout: 100000,
});

await page.getByTestId("icon-ChevronLeft").first().click();
await page.getByPlaceholder("Search flows").fill("Memory Chatbot");
await page.getByText("Memory Chatbot", { exact: true }).isVisible();
Expand Down Expand Up @@ -124,6 +142,11 @@ test("search components", async ({ page }) => {

await page.getByTestId("icon-SaveAll").first().click();
await page.keyboard.press("Escape");

await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
timeout: 100000,
});

await page.getByTestId("icon-ChevronLeft").first().click();

await page
Expand Down
4 changes: 4 additions & 0 deletions src/frontend/tests/end-to-end/folders.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ test("change flow folder", async ({ page }) => {
}
await page.getByRole("heading", { name: "Basic Prompting" }).click();

await page.waitForSelector('[data-testid="icon-ChevronLeft"]', {
timeout: 100000,
});

await page.getByTestId("icon-ChevronLeft").first().click();

await page.getByText("My Collection").nth(2).isVisible();
Expand Down

0 comments on commit 74845ff

Please sign in to comment.