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:
parent
1360e56f28
commit
c80cb3f35e
95 changed files with 4434 additions and 804 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -31,15 +31,15 @@ test(
|
|||
await page.getByText("Save").last().click();
|
||||
await page.getByTestId("icon-ChevronLeft").last().click();
|
||||
|
||||
await page.getByTestId("add-folder-button").click();
|
||||
await page.getByTestId("add-project-button").click();
|
||||
|
||||
let countFolders = await page.getByText("New Folder").count();
|
||||
let countFolders = await page.getByText("New Project").count();
|
||||
|
||||
while (countFolders > 1) {
|
||||
await page.getByText("New Folder").first().hover();
|
||||
await page.getByText("New Project").first().hover();
|
||||
|
||||
await page.getByTestId("more-options-button").first().click();
|
||||
await page.getByTestId("btn-delete-folder").click();
|
||||
await page.getByTestId("btn-delete-project").click();
|
||||
await page.getByText("Delete").last().click();
|
||||
countFolders--;
|
||||
await page.waitForTimeout(1000);
|
||||
|
|
@ -47,7 +47,7 @@ test(
|
|||
|
||||
// Get the bounding boxes of the elements
|
||||
const sourceElement = await page.getByTestId(`card-${randomName}`).first();
|
||||
const targetElement = await page.getByText("New Folder").last();
|
||||
const targetElement = await page.getByText("New Project").last();
|
||||
|
||||
const sourceBox = await sourceElement.boundingBox();
|
||||
const targetBox = await targetElement.boundingBox();
|
||||
|
|
@ -66,7 +66,7 @@ test(
|
|||
|
||||
await page.waitForTimeout(3000);
|
||||
|
||||
await page.getByText("New Folder").last().click();
|
||||
await page.getByText("New Project").last().click();
|
||||
|
||||
expect(await page.getByTestId(`card-${randomName}`).first().isVisible());
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ test(
|
|||
|
||||
await page.waitForTimeout(3000);
|
||||
|
||||
await page.getByText("New Folder").last().click();
|
||||
await page.getByText("New Project").last().click();
|
||||
expect(
|
||||
await page.getByTestId(`card-${secondRandomName}`).first().isVisible(),
|
||||
);
|
||||
|
|
@ -89,7 +89,7 @@ test(
|
|||
const secondSourceElement = await page
|
||||
.getByTestId(`card-${secondRandomName}`)
|
||||
.first();
|
||||
const secondTargetElement = await page.getByText("New Folder").last();
|
||||
const secondTargetElement = await page.getByText("New Project").last();
|
||||
|
||||
const secondSourceBox = await secondSourceElement.boundingBox();
|
||||
const secondTargetBox = await secondTargetElement.boundingBox();
|
||||
|
|
@ -108,7 +108,7 @@ test(
|
|||
|
||||
await page.waitForTimeout(3000);
|
||||
|
||||
await page.getByText("My Projects").last().click();
|
||||
await page.getByText("Starter Project").last().click();
|
||||
|
||||
expect(
|
||||
await page.getByTestId(`card-${secondRandomName}`).first().isVisible(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue