feat: New Search Bundle (#8146)
* delete data and transfer data to dataframe * [autofix.ci] apply automated fixes * create a new bundle for search * fix type for dataframe * add data_to_dataframe function * [autofix.ci] apply automated fixes * fix test because of files movement * delete message and text * json update * fix search yahoo test * fix run_model output type * fix test errors * fix test errors * fix test error * try fix frontend tests * test fix * [autofix.ci] apply automated fixes * move serp search * fix test * fix test * fix test to pass ruff style check --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Edwin Jose <edwin.jose@datastax.com> Co-authored-by: Mike Fortman <michael.fortman@datastax.com>
This commit is contained in:
parent
9d5c75bce3
commit
a5ce562299
37 changed files with 25863 additions and 645 deletions
|
|
@ -271,6 +271,7 @@ export const SIDEBAR_BUNDLES = [
|
|||
name: "homeassistant",
|
||||
icon: "HomeAssistant",
|
||||
},
|
||||
{ display_name: "Search", name: "search", icon: "Search" },
|
||||
];
|
||||
|
||||
export const categoryIcons: Record<string, string> = {
|
||||
|
|
|
|||
|
|
@ -125,7 +125,6 @@ test(
|
|||
await expect(page.getByTestId("dataAPI Request")).toBeVisible();
|
||||
await expect(page.getByTestId("helpersMessage History")).toBeVisible();
|
||||
await expect(page.getByTestId("vectorstoresAstra DB")).toBeVisible();
|
||||
await expect(page.getByTestId("toolsSearch API")).toBeVisible();
|
||||
await expect(page.getByTestId("logicSub Flow [Deprecated]")).toBeVisible();
|
||||
|
||||
await page.getByTestId("sidebar-options-trigger").click();
|
||||
|
|
@ -137,19 +136,16 @@ test(
|
|||
await expect(page.getByTestId("logicSub Flow [Deprecated]")).toBeVisible();
|
||||
|
||||
await expect(page.getByTestId("processingSplit Text")).toBeVisible();
|
||||
await expect(page.getByTestId("toolsSearch API")).toBeVisible();
|
||||
|
||||
await page.getByTestId("icon-X").first().click();
|
||||
|
||||
await expect(page.getByTestId("dataAPI Request")).not.toBeVisible();
|
||||
await expect(page.getByTestId("helpersMessage History")).not.toBeVisible();
|
||||
await expect(page.getByTestId("vectorstoresAstra DB")).not.toBeVisible();
|
||||
await expect(page.getByTestId("toolsSearch API")).not.toBeVisible();
|
||||
await expect(
|
||||
page.getByTestId("logicSub Flow [Deprecated]"),
|
||||
).not.toBeVisible();
|
||||
|
||||
await expect(page.getByTestId("processingSplit Text")).not.toBeVisible();
|
||||
await expect(page.getByTestId("toolsSearch API")).not.toBeVisible();
|
||||
},
|
||||
);
|
||||
|
|
|
|||
|
|
@ -11,12 +11,12 @@ test(
|
|||
await page.getByTestId("sidebar-search-input").click();
|
||||
await page.getByTestId("sidebar-search-input").fill("duck");
|
||||
|
||||
await page.waitForSelector('[data-testid="toolsDuckDuckGo Search"]', {
|
||||
await page.waitForSelector('[data-testid="searchDuckDuckGo Search"]', {
|
||||
timeout: 3000,
|
||||
});
|
||||
|
||||
await page
|
||||
.getByTestId("toolsDuckDuckGo Search")
|
||||
.getByTestId("searchDuckDuckGo Search")
|
||||
.hover()
|
||||
.then(async () => {
|
||||
await page
|
||||
|
|
@ -44,7 +44,7 @@ test(
|
|||
) ?? false;
|
||||
|
||||
await page
|
||||
.getByTestId("output-inspection-data-duckduckgosearchcomponent")
|
||||
.getByTestId("output-inspection-dataframe-duckduckgosearchcomponent")
|
||||
.first()
|
||||
.click();
|
||||
|
||||
|
|
|
|||
|
|
@ -49,14 +49,14 @@ test(
|
|||
|
||||
await page.getByTestId("sidebar-search-input").click();
|
||||
await page.getByTestId("sidebar-search-input").fill("search api");
|
||||
await page.waitForSelector('[data-testid="toolsSearch API"]', {
|
||||
await page.waitForSelector('[data-testid="searchSearch API"]', {
|
||||
timeout: 1000,
|
||||
});
|
||||
|
||||
await zoomOut(page, 3);
|
||||
|
||||
await page
|
||||
.getByTestId("toolsSearch API")
|
||||
.getByTestId("searchSearch API")
|
||||
.dragTo(page.locator('//*[@id="react-flow-id"]'), {
|
||||
targetPosition: { x: 100, y: 100 },
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue