fix: Update Custom Component Maker (#6851)

* Update Custom Component Maker.json

* Update Custom Component Maker.json

* Update Custom Component Maker.json

* [autofix.ci] apply automated fixes

---------

Co-authored-by: cristhianzl <cristhian.lousa@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Carlos Coelho <80289056+carlosrcoelho@users.noreply.github.com>
This commit is contained in:
Edwin Jose 2025-03-18 20:35:31 -04:00 committed by GitHub
commit db4b064821
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1741 additions and 1536 deletions

File diff suppressed because one or more lines are too long

View file

@ -31,6 +31,16 @@ withEventDeliveryModes(
timeout: 100000,
});
await page.waitForSelector('[data-testid="dropdown_str_model_name"]', {
timeout: 5000,
});
await page.getByTestId("dropdown_str_model_name").click();
await page.keyboard.press("Enter");
await page.waitForTimeout(1000);
try {
await page
.getByTestId("anchor-popover-anchor-input-api_key")
@ -40,28 +50,14 @@ withEventDeliveryModes(
console.log("There's API already added");
}
await page.waitForSelector('[data-testid="dropdown_str_model_name"]', {
timeout: 5000,
});
await page.getByTestId("playground-btn-flow-io").click();
await page.getByTestId("dropdown_str_model_name").click();
await page.getByTestId("button-send").last().click();
await page.keyboard.press("Enter");
await page.waitForTimeout(1000);
await page.getByTestId("button_run_chat output").click();
await page.waitForSelector("text=built successfully", { timeout: 30000 });
await page.getByText("built successfully").last().click({
timeout: 15000,
});
await page.getByText("Playground", { exact: true }).last().click();
await page
.getByText("No input message provided.", { exact: true })
.last()
.isVisible();
await waitForOpenModalWithChatInput(page);
const stopButton = page.getByRole("button", { name: "Stop" });
await stopButton.waitFor({ state: "hidden", timeout: 30000 * 3 });
const textContents = await getAllResponseMessage(page);
expect(textContents.length).toBeGreaterThan(100);