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 { awaitBootstrapTest } from "../../utils/await-bootstrap-test";
import { initialGPTsetup } from "../../utils/initialGPTsetup"; import { initialGPTsetup } from "../../utils/initialGPTsetup";
test( test(
"memory should work as expect", "user should be able to use chat memory as expected",
{ tag: ["@release"] }, { tag: ["@release"] },
async ({ page }) => { async ({ page }) => {
test.skip( test.skip(
@ -87,25 +87,38 @@ AI:
await page.getByText("Edit Prompt", { exact: true }).click(); await page.getByText("Edit Prompt", { exact: true }).click();
await page.getByText("Check & Save").last().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("fit_view").click();
await page.getByTestId("dropdown-output-memory").click(); await page.getByTestId("tab_0_retrieve").click();
await page.getByTestId("dropdown-item-output-memory-message").click();
//connection 1 //connection 1
const elementChatMemoryOutput = await page await page
.getByTestId("handle-memory-shownode-message-right") .getByTestId("handle-memory-shownode-messages-right")
.first(); .first()
await elementChatMemoryOutput.hover(); .click();
await page.mouse.down();
const promptInput = await page.getByTestId( await page
"handle-prompt-shownode-context-left", .getByTestId("handle-parsercomponent-shownode-data or dataframe-left")
); .click();
await promptInput.hover(); await page
await page.mouse.up(); .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(); await page.locator('//*[@id="react-flow-id"]').hover();