test: enhance node connection tests in chatMemory component (nightly fix) (#8431)

This commit is contained in:
Cristhian Zanforlin Lousa 2025-06-09 10:19:44 -03:00 committed by GitHub
commit ed809d77e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,7 @@ import { addLegacyComponents } from "../../utils/add-legacy-components";
import { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
import { initialGPTsetup } from "../../utils/initialGPTsetup";
test(
"memory should work as expect",
"user should be able to use chat memory as expected",
{ tag: ["@release"] },
async ({ page }) => {
test.skip(
@ -87,25 +87,38 @@ AI:
await page.getByText("Edit Prompt", { exact: true }).click();
await page.getByText("Check & Save").last().click();
await page.getByTestId("sidebar-search-input").click();
await page.getByTestId("sidebar-search-input").fill("Parser");
await page
.getByTestId("processingParser")
.first()
.dragTo(page.locator('//*[@id="react-flow-id"]'), {
targetPosition: { x: 50, y: 200 },
});
await page.getByTestId("fit_view").click();
await page.getByTestId("dropdown-output-memory").click();
await page.getByTestId("dropdown-item-output-memory-message").click();
await page.getByTestId("tab_0_retrieve").click();
//connection 1
const elementChatMemoryOutput = await page
.getByTestId("handle-memory-shownode-message-right")
.first();
await elementChatMemoryOutput.hover();
await page.mouse.down();
await page
.getByTestId("handle-memory-shownode-messages-right")
.first()
.click();
const promptInput = await page.getByTestId(
"handle-prompt-shownode-context-left",
);
await page
.getByTestId("handle-parsercomponent-shownode-data or dataframe-left")
.click();
await promptInput.hover();
await page.mouse.up();
await page
.getByTestId("handle-parsercomponent-shownode-parsed text-right")
.click();
await page
.getByTestId("handle-prompt-shownode-context-left")
.first()
.click();
await page.locator('//*[@id="react-flow-id"]').hover();