feat: Add MCP Server Settings to projects, rename Folder to Project (#7741)

Co-authored-by: Lucas Oliveira <lucas.edu.oli@hotmail.com>
Co-authored-by: deon-sanchez <deon.sanchez@datastax.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Lucas Oliveira <62335616+lucaseduoli@users.noreply.github.com>
Co-authored-by: Eric Hare <ericrhare@gmail.com>
Co-authored-by: Gabriel Luiz Freitas Almeida <gabriel@langflow.org>
Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
Co-authored-by: phact <estevezsebastian@gmail.com>
This commit is contained in:
Edwin Jose 2025-04-29 13:14:55 -04:00 • committed by GitHub
commit c80cb3f35e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
95 changed files with 4434 additions and 804 deletions

View file

@ -19,46 +19,50 @@ test(
await page.getByTestId("icon-ChevronLeft").first().click();
await page.getByPlaceholder("Search flows").first().isVisible();
await page.getByText("Flows").first().isVisible();
await page.getByText("Components").first().isVisible();
if (await page.getByText("Components").first().isVisible()) {
await page.getByText("Components").first().isVisible();
} else {
await page.getByText("MCP Server").first().isVisible();
}
await page.getByText("All").first().isVisible();
await page.getByText("Select All").first().isVisible();
await page.getByTestId("add-folder-button").click();
await page.getByTestId("add-project-button").click();
await page
.locator("[data-testid='folder-sidebar']")
.getByText("New Folder")
.locator("[data-testid='project-sidebar']")
.getByText("New Project")
.last()
.isVisible();
await page
.locator("[data-testid='folder-sidebar']")
.getByText("New Folder")
.locator("[data-testid='project-sidebar']")
.getByText("New Project")
.last()
.dblclick();
const element = await page.getByTestId("input-folder");
await element.fill("new folder test name");
const element = await page.getByTestId("input-project");
await element.fill("new project test name");
await page.getByText("My Projects").last().click({
await page.getByText("Starter Project").last().click({
force: true,
});
await page.getByText("new folder test name").last().waitFor({
await page.getByText("new project test name").last().waitFor({
state: "visible",
timeout: 30000,
});
await page
.getByText("new folder test name")
.getByText("new project test name")
.last()
.hover()
.then(async () => {
await page.getByTestId("more-options-button").last().click();
});
await page.getByTestId("btn-delete-folder").click();
await page.getByTestId("btn-delete-project").click();
await page.getByText("Delete").last().click();
await expect(page.getByText("Folder deleted successfully")).toBeVisible({
await expect(page.getByText("Project deleted successfully")).toBeVisible({
timeout: 3000,
});
},
@ -137,26 +141,28 @@ test("change flow folder", async ({ page }) => {
await page.getByPlaceholder("Search flows").isVisible();
await page.getByText("Flows").first().isVisible();
await page.getByText("Components").first().isVisible();
await page.getByText("All").first().isVisible();
await page.getByText("Select All").first().isVisible();
if (await page.getByText("Components").first().isVisible()) {
await page.getByText("Components").first().isVisible();
} else {
await page.getByText("MCP Server").first().isVisible();
}
await page.getByTestId("add-folder-button").click();
await page.getByTestId("add-project-button").click();
await page
.locator("[data-testid='folder-sidebar']")
.getByText("New Folder")
.locator("[data-testid='project-sidebar']")
.getByText("New Project")
.last()
.isVisible();
await page
.locator("[data-testid='folder-sidebar']")
.getByText("New Folder")
.locator("[data-testid='project-sidebar']")
.getByText("New Project")
.last()
.dblclick();
await page.getByTestId("input-folder").fill("new folder test name");
await page.getByTestId("input-project").fill("new project test name");
await page.keyboard.press("Enter");
await page.getByText("new folder test name").last().isVisible();
await page.getByText("new project test name").last().isVisible();
await page.getByText("My Projects").last().click();
await page.getByText("Starter Project").last().click();
await page.getByText("Basic Prompting").first().hover();
await page.mouse.down();
await page.getByText("test").first().hover();