merge fix
This commit is contained in:
parent
c3ff98c499
commit
a93e971005
19 changed files with 34 additions and 21 deletions
|
|
@ -52,11 +52,14 @@ export default function Dropdown({
|
||||||
editNode ? "input-edit-node" : "py-2"
|
editNode ? "input-edit-node" : "py-2"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{value &&
|
<span data-testid={`value-dropdown-` + id}>
|
||||||
value !== "" &&
|
{value &&
|
||||||
options.find((option) => option === value)
|
value !== "" &&
|
||||||
? options.find((option) => option === value)
|
options.find((option) => option === value)
|
||||||
: "Choose an option..."}
|
? options.find((option) => option === value)
|
||||||
|
: "Choose an option..."}
|
||||||
|
</span>
|
||||||
|
|
||||||
<ForwardedIconComponent
|
<ForwardedIconComponent
|
||||||
name="ChevronsUpDown"
|
name="ChevronsUpDown"
|
||||||
className="ml-2 h-4 w-4 shrink-0 opacity-50"
|
className="ml-2 h-4 w-4 shrink-0 opacity-50"
|
||||||
|
|
|
||||||
|
|
@ -6,13 +6,17 @@ export default function ParentDisclosureComponent({
|
||||||
button: { title, Icon, buttons = [] },
|
button: { title, Icon, buttons = [] },
|
||||||
children,
|
children,
|
||||||
openDisc,
|
openDisc,
|
||||||
|
testId,
|
||||||
}: DisclosureComponentType): JSX.Element {
|
}: DisclosureComponentType): JSX.Element {
|
||||||
return (
|
return (
|
||||||
<Disclosure as="div" defaultOpen={openDisc} key={title}>
|
<Disclosure as="div" defaultOpen={openDisc} key={title}>
|
||||||
{({ open }) => (
|
{({ open }) => (
|
||||||
<>
|
<>
|
||||||
<div>
|
<div>
|
||||||
<Disclosure.Button className="parent-disclosure-arrangement">
|
<Disclosure.Button
|
||||||
|
className="parent-disclosure-arrangement"
|
||||||
|
data-testid={testId}
|
||||||
|
>
|
||||||
<div className="flex gap-4">
|
<div className="flex gap-4">
|
||||||
<span className="parent-disclosure-title">{title}</span>
|
<span className="parent-disclosure-title">{title}</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -352,6 +352,7 @@ export default function ExtraSidebar(): JSX.Element {
|
||||||
title: "Extended",
|
title: "Extended",
|
||||||
Icon: nodeIconsLucide.unknown,
|
Icon: nodeIconsLucide.unknown,
|
||||||
}}
|
}}
|
||||||
|
testId="extended-disclosure"
|
||||||
>
|
>
|
||||||
{Object.keys(dataFilter)
|
{Object.keys(dataFilter)
|
||||||
.sort(sortKeys)
|
.sort(sortKeys)
|
||||||
|
|
|
||||||
|
|
@ -159,6 +159,7 @@ export type DisclosureComponentType = {
|
||||||
onClick: (event?: React.MouseEvent) => void;
|
onClick: (event?: React.MouseEvent) => void;
|
||||||
}[];
|
}[];
|
||||||
};
|
};
|
||||||
|
testId?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type RangeSpecType = {
|
export type RangeSpecType = {
|
||||||
|
|
|
||||||
|
|
@ -9,12 +9,14 @@ test("CodeAreaModalComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.getByTestId("blank-flow").click();
|
await page.getByTestId("blank-flow").click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(1000);
|
||||||
|
await page.getByTestId("extended-disclosure").click();
|
||||||
await page.getByPlaceholder("Search").click();
|
await page.getByPlaceholder("Search").click();
|
||||||
await page.getByPlaceholder("Search").fill("pythonfunctiontool");
|
await page.getByPlaceholder("Search").fill("pythonfunctiontool");
|
||||||
|
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(1000);
|
||||||
|
|
||||||
|
await page.getByTestId("extended-disclosure").click();
|
||||||
|
|
||||||
await page
|
await page
|
||||||
.getByTestId("toolsPythonFunctionTool")
|
.getByTestId("toolsPythonFunctionTool")
|
||||||
.dragTo(page.locator('//*[@id="react-flow-id"]'));
|
.dragTo(page.locator('//*[@id="react-flow-id"]'));
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ test("dropDownComponent", async ({ page }) => {
|
||||||
await page.getByTestId("blank-flow").click();
|
await page.getByTestId("blank-flow").click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(1000);
|
||||||
|
|
||||||
|
await page.getByTestId("extended-disclosure").click();
|
||||||
await page.getByPlaceholder("Search").click();
|
await page.getByPlaceholder("Search").click();
|
||||||
await page.getByPlaceholder("Search").fill("amazon");
|
await page.getByPlaceholder("Search").fill("amazon");
|
||||||
|
|
||||||
|
|
@ -39,7 +40,7 @@ test("dropDownComponent", async ({ page }) => {
|
||||||
await page.getByTestId("ai21.j2-mid-v1-10-option").click();
|
await page.getByTestId("ai21.j2-mid-v1-10-option").click();
|
||||||
|
|
||||||
let value = await page
|
let value = await page
|
||||||
.getByTestId("value-dropdown-model_id")
|
.getByTestId("value-dropdown-dropdown-model_id")
|
||||||
.first()
|
.first()
|
||||||
.innerText();
|
.innerText();
|
||||||
if (value !== "ai21.j2-mid-v1") {
|
if (value !== "ai21.j2-mid-v1") {
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ test("LLMChain - Tooltip", async ({ page }) => {
|
||||||
await page.getByTestId("blank-flow").click();
|
await page.getByTestId("blank-flow").click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(1000);
|
||||||
|
|
||||||
|
await page.getByTestId("extended-disclosure").click();
|
||||||
await page.getByPlaceholder("Search").click();
|
await page.getByPlaceholder("Search").click();
|
||||||
await page.getByPlaceholder("Search").fill("llmchain");
|
await page.getByPlaceholder("Search").fill("llmchain");
|
||||||
|
|
||||||
|
|
@ -104,7 +105,7 @@ test("LLMChain - Filter", async ({ page }) => {
|
||||||
|
|
||||||
await page.getByTestId("blank-flow").click();
|
await page.getByTestId("blank-flow").click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(1000);
|
||||||
|
await page.getByTestId("extended-disclosure").click();
|
||||||
await page.getByPlaceholder("Search").click();
|
await page.getByPlaceholder("Search").click();
|
||||||
await page.getByPlaceholder("Search").fill("llmchain");
|
await page.getByPlaceholder("Search").fill("llmchain");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ test("FloatComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.getByTestId("blank-flow").click();
|
await page.getByTestId("blank-flow").click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(1000);
|
||||||
|
await page.getByTestId("extended-disclosure").click();
|
||||||
await page.getByPlaceholder("Search").click();
|
await page.getByPlaceholder("Search").click();
|
||||||
await page.getByPlaceholder("Search").fill("ollama");
|
await page.getByPlaceholder("Search").fill("ollama");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ test.describe("Flow Page tests", () => {
|
||||||
|
|
||||||
await page.getByTestId("blank-flow").click();
|
await page.getByTestId("blank-flow").click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(1000);
|
||||||
|
await page.getByTestId("extended-disclosure").click();
|
||||||
await page.getByPlaceholder("Search").click();
|
await page.getByPlaceholder("Search").click();
|
||||||
await page.getByPlaceholder("Search").fill("custom");
|
await page.getByPlaceholder("Search").fill("custom");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ test("InputComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.getByTestId("blank-flow").click();
|
await page.getByTestId("blank-flow").click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(1000);
|
||||||
|
await page.getByTestId("extended-disclosure").click();
|
||||||
await page.getByPlaceholder("Search").click();
|
await page.getByPlaceholder("Search").click();
|
||||||
await page.getByPlaceholder("Search").fill("Chroma");
|
await page.getByPlaceholder("Search").fill("Chroma");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ test("InputListComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.getByTestId("blank-flow").click();
|
await page.getByTestId("blank-flow").click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(1000);
|
||||||
|
await page.getByTestId("extended-disclosure").click();
|
||||||
await page.getByPlaceholder("Search").click();
|
await page.getByPlaceholder("Search").click();
|
||||||
await page.getByPlaceholder("Search").fill("astradb search");
|
await page.getByPlaceholder("Search").fill("astradb search");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ test("IntComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.getByTestId("blank-flow").click();
|
await page.getByTestId("blank-flow").click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(1000);
|
||||||
|
await page.getByTestId("extended-disclosure").click();
|
||||||
await page.getByPlaceholder("Search").click();
|
await page.getByPlaceholder("Search").click();
|
||||||
await page.getByPlaceholder("Search").fill("openai");
|
await page.getByPlaceholder("Search").fill("openai");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ test("KeypairListComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.getByTestId("blank-flow").click();
|
await page.getByTestId("blank-flow").click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(1000);
|
||||||
|
await page.getByTestId("extended-disclosure").click();
|
||||||
await page.getByPlaceholder("Search").click();
|
await page.getByPlaceholder("Search").click();
|
||||||
await page.getByPlaceholder("Search").fill("csv");
|
await page.getByPlaceholder("Search").fill("csv");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ test("LangflowShortcuts", async ({ page }) => {
|
||||||
|
|
||||||
await page.getByTestId("blank-flow").click();
|
await page.getByTestId("blank-flow").click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(1000);
|
||||||
|
await page.getByTestId("extended-disclosure").click();
|
||||||
await page.getByPlaceholder("Search").click();
|
await page.getByPlaceholder("Search").click();
|
||||||
await page.getByPlaceholder("Search").fill("ollama");
|
await page.getByPlaceholder("Search").fill("ollama");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ test("NestedComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.getByTestId("blank-flow").click();
|
await page.getByTestId("blank-flow").click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(1000);
|
||||||
|
await page.getByTestId("extended-disclosure").click();
|
||||||
await page.getByPlaceholder("Search").click();
|
await page.getByPlaceholder("Search").click();
|
||||||
await page.getByPlaceholder("Search").fill("pinecone");
|
await page.getByPlaceholder("Search").fill("pinecone");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ test("PromptTemplateComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.getByTestId("blank-flow").click();
|
await page.getByTestId("blank-flow").click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(1000);
|
||||||
|
await page.getByTestId("extended-disclosure").click();
|
||||||
await page.getByPlaceholder("Search").click();
|
await page.getByPlaceholder("Search").click();
|
||||||
await page.getByPlaceholder("Search").fill("prompt");
|
await page.getByPlaceholder("Search").fill("prompt");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@ test.describe("save component tests", () => {
|
||||||
if (replaceButton) {
|
if (replaceButton) {
|
||||||
await page.getByTestId("replace-button").click();
|
await page.getByTestId("replace-button").click();
|
||||||
}
|
}
|
||||||
|
await page.getByTestId("extended-disclosure").click();
|
||||||
await page.getByPlaceholder("Search").click();
|
await page.getByPlaceholder("Search").click();
|
||||||
await page.getByPlaceholder("Search").fill("group");
|
await page.getByPlaceholder("Search").fill("group");
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(1000);
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ test("TextAreaModalComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.getByTestId("blank-flow").click();
|
await page.getByTestId("blank-flow").click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(1000);
|
||||||
|
await page.getByTestId("extended-disclosure").click();
|
||||||
await page.getByPlaceholder("Search").click();
|
await page.getByPlaceholder("Search").click();
|
||||||
await page.getByPlaceholder("Search").fill("prompt");
|
await page.getByPlaceholder("Search").fill("prompt");
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ test("ToggleComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.getByTestId("blank-flow").click();
|
await page.getByTestId("blank-flow").click();
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(1000);
|
||||||
|
await page.getByTestId("extended-disclosure").click();
|
||||||
await page.getByPlaceholder("Search").click();
|
await page.getByPlaceholder("Search").click();
|
||||||
await page.getByPlaceholder("Search").fill("directoryLoader");
|
await page.getByPlaceholder("Search").fill("directoryLoader");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue