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:
parent
2b83c73c9b
commit
db4b064821
2 changed files with 1741 additions and 1536 deletions
File diff suppressed because one or more lines are too long
|
|
@ -31,6 +31,16 @@ withEventDeliveryModes(
|
||||||
timeout: 100000,
|
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 {
|
try {
|
||||||
await page
|
await page
|
||||||
.getByTestId("anchor-popover-anchor-input-api_key")
|
.getByTestId("anchor-popover-anchor-input-api_key")
|
||||||
|
|
@ -40,28 +50,14 @@ withEventDeliveryModes(
|
||||||
console.log("There's API already added");
|
console.log("There's API already added");
|
||||||
}
|
}
|
||||||
|
|
||||||
await page.waitForSelector('[data-testid="dropdown_str_model_name"]', {
|
await page.getByTestId("playground-btn-flow-io").click();
|
||||||
timeout: 5000,
|
|
||||||
});
|
|
||||||
|
|
||||||
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();
|
const stopButton = page.getByRole("button", { name: "Stop" });
|
||||||
await page.waitForSelector("text=built successfully", { timeout: 30000 });
|
await stopButton.waitFor({ state: "hidden", timeout: 30000 * 3 });
|
||||||
|
|
||||||
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 textContents = await getAllResponseMessage(page);
|
const textContents = await getAllResponseMessage(page);
|
||||||
expect(textContents.length).toBeGreaterThan(100);
|
expect(textContents.length).toBeGreaterThan(100);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue