Format tests and update prettier command
This commit is contained in:
parent
1726561f39
commit
e6fefa680d
27 changed files with 168 additions and 213 deletions
|
|
@ -82,7 +82,7 @@
|
||||||
"start": "vite",
|
"start": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"serve": "vite preview",
|
"serve": "vite preview",
|
||||||
"format": "npx prettier --write \"{docs,src}/**/*.{js,jsx,ts,tsx,json,md}\" --ignore-path .prettierignore",
|
"format": "npx prettier --write \"{tests,src}/**/*.{js,jsx,ts,tsx,json,md}\" --ignore-path .prettierignore",
|
||||||
"type-check": "tsc --noEmit --pretty --project tsconfig.json && vite"
|
"type-check": "tsc --noEmit --pretty --project tsconfig.json && vite"
|
||||||
},
|
},
|
||||||
"simple-git-hooks": {
|
"simple-git-hooks": {
|
||||||
|
|
|
||||||
|
|
@ -44,9 +44,7 @@
|
||||||
"name": "input_value",
|
"name": "input_value",
|
||||||
"display_name": "Message",
|
"display_name": "Message",
|
||||||
"advanced": false,
|
"advanced": false,
|
||||||
"input_types": [
|
"input_types": ["Text"],
|
||||||
"Text"
|
|
||||||
],
|
|
||||||
"dynamic": false,
|
"dynamic": false,
|
||||||
"info": "",
|
"info": "",
|
||||||
"load_from_db": false,
|
"load_from_db": false,
|
||||||
|
|
@ -70,9 +68,7 @@
|
||||||
"info": "In case of Message being a Record, this template will be used to convert it to text.",
|
"info": "In case of Message being a Record, this template will be used to convert it to text.",
|
||||||
"load_from_db": false,
|
"load_from_db": false,
|
||||||
"title_case": false,
|
"title_case": false,
|
||||||
"input_types": [
|
"input_types": ["Text"]
|
||||||
"Text"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"return_record": {
|
"return_record": {
|
||||||
"type": "bool",
|
"type": "bool",
|
||||||
|
|
@ -104,10 +100,7 @@
|
||||||
"fileTypes": [],
|
"fileTypes": [],
|
||||||
"file_path": "",
|
"file_path": "",
|
||||||
"password": false,
|
"password": false,
|
||||||
"options": [
|
"options": ["Machine", "User"],
|
||||||
"Machine",
|
|
||||||
"User"
|
|
||||||
],
|
|
||||||
"name": "sender",
|
"name": "sender",
|
||||||
"display_name": "Sender Type",
|
"display_name": "Sender Type",
|
||||||
"advanced": true,
|
"advanced": true,
|
||||||
|
|
@ -115,9 +108,7 @@
|
||||||
"info": "",
|
"info": "",
|
||||||
"load_from_db": false,
|
"load_from_db": false,
|
||||||
"title_case": false,
|
"title_case": false,
|
||||||
"input_types": [
|
"input_types": ["Text"]
|
||||||
"Text"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"sender_name": {
|
"sender_name": {
|
||||||
"type": "str",
|
"type": "str",
|
||||||
|
|
@ -137,9 +128,7 @@
|
||||||
"info": "",
|
"info": "",
|
||||||
"load_from_db": false,
|
"load_from_db": false,
|
||||||
"title_case": false,
|
"title_case": false,
|
||||||
"input_types": [
|
"input_types": ["Text"]
|
||||||
"Text"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"session_id": {
|
"session_id": {
|
||||||
"type": "str",
|
"type": "str",
|
||||||
|
|
@ -158,20 +147,13 @@
|
||||||
"info": "If provided, the message will be stored in the memory.",
|
"info": "If provided, the message will be stored in the memory.",
|
||||||
"load_from_db": false,
|
"load_from_db": false,
|
||||||
"title_case": false,
|
"title_case": false,
|
||||||
"input_types": [
|
"input_types": ["Text"]
|
||||||
"Text"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"_type": "CustomComponent"
|
"_type": "CustomComponent"
|
||||||
},
|
},
|
||||||
"description": "Display a chat message in the Playground.",
|
"description": "Display a chat message in the Playground.",
|
||||||
"icon": "ChatOutput",
|
"icon": "ChatOutput",
|
||||||
"base_classes": [
|
"base_classes": ["object", "Record", "str", "Text"],
|
||||||
"object",
|
|
||||||
"Record",
|
|
||||||
"str",
|
|
||||||
"Text"
|
|
||||||
],
|
|
||||||
"display_name": "Chat Output",
|
"display_name": "Chat Output",
|
||||||
"documentation": "",
|
"documentation": "",
|
||||||
"custom_fields": {
|
"custom_fields": {
|
||||||
|
|
@ -182,10 +164,7 @@
|
||||||
"return_record": null,
|
"return_record": null,
|
||||||
"record_template": null
|
"record_template": null
|
||||||
},
|
},
|
||||||
"output_types": [
|
"output_types": ["Text", "Record"],
|
||||||
"Text",
|
|
||||||
"Record"
|
|
||||||
],
|
|
||||||
"field_formatters": {},
|
"field_formatters": {},
|
||||||
"frozen": false,
|
"frozen": false,
|
||||||
"field_order": [],
|
"field_order": [],
|
||||||
|
|
@ -280,10 +259,7 @@
|
||||||
"fileTypes": [],
|
"fileTypes": [],
|
||||||
"file_path": "",
|
"file_path": "",
|
||||||
"password": false,
|
"password": false,
|
||||||
"options": [
|
"options": ["Machine", "User"],
|
||||||
"Machine",
|
|
||||||
"User"
|
|
||||||
],
|
|
||||||
"name": "sender",
|
"name": "sender",
|
||||||
"display_name": "Sender Type",
|
"display_name": "Sender Type",
|
||||||
"advanced": true,
|
"advanced": true,
|
||||||
|
|
@ -291,9 +267,7 @@
|
||||||
"info": "",
|
"info": "",
|
||||||
"load_from_db": false,
|
"load_from_db": false,
|
||||||
"title_case": false,
|
"title_case": false,
|
||||||
"input_types": [
|
"input_types": ["Text"]
|
||||||
"Text"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"sender_name": {
|
"sender_name": {
|
||||||
"type": "str",
|
"type": "str",
|
||||||
|
|
@ -313,9 +287,7 @@
|
||||||
"info": "",
|
"info": "",
|
||||||
"load_from_db": false,
|
"load_from_db": false,
|
||||||
"title_case": false,
|
"title_case": false,
|
||||||
"input_types": [
|
"input_types": ["Text"]
|
||||||
"Text"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"session_id": {
|
"session_id": {
|
||||||
"type": "str",
|
"type": "str",
|
||||||
|
|
@ -334,20 +306,13 @@
|
||||||
"info": "If provided, the message will be stored in the memory.",
|
"info": "If provided, the message will be stored in the memory.",
|
||||||
"load_from_db": false,
|
"load_from_db": false,
|
||||||
"title_case": false,
|
"title_case": false,
|
||||||
"input_types": [
|
"input_types": ["Text"]
|
||||||
"Text"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"_type": "CustomComponent"
|
"_type": "CustomComponent"
|
||||||
},
|
},
|
||||||
"description": "Get chat inputs from the Playground.",
|
"description": "Get chat inputs from the Playground.",
|
||||||
"icon": "ChatInput",
|
"icon": "ChatInput",
|
||||||
"base_classes": [
|
"base_classes": ["object", "Record", "str", "Text"],
|
||||||
"object",
|
|
||||||
"Record",
|
|
||||||
"str",
|
|
||||||
"Text"
|
|
||||||
],
|
|
||||||
"display_name": "Chat Input",
|
"display_name": "Chat Input",
|
||||||
"documentation": "",
|
"documentation": "",
|
||||||
"custom_fields": {
|
"custom_fields": {
|
||||||
|
|
@ -357,10 +322,7 @@
|
||||||
"session_id": null,
|
"session_id": null,
|
||||||
"return_record": null
|
"return_record": null
|
||||||
},
|
},
|
||||||
"output_types": [
|
"output_types": ["Text", "Record"],
|
||||||
"Text",
|
|
||||||
"Record"
|
|
||||||
],
|
|
||||||
"field_formatters": {},
|
"field_formatters": {},
|
||||||
"frozen": false,
|
"frozen": false,
|
||||||
"field_order": [],
|
"field_order": [],
|
||||||
|
|
@ -383,18 +345,11 @@
|
||||||
"targetHandle": {
|
"targetHandle": {
|
||||||
"fieldName": "input_value",
|
"fieldName": "input_value",
|
||||||
"id": "ChatOutput-xPeM1",
|
"id": "ChatOutput-xPeM1",
|
||||||
"inputTypes": [
|
"inputTypes": ["Text"],
|
||||||
"Text"
|
|
||||||
],
|
|
||||||
"type": "str"
|
"type": "str"
|
||||||
},
|
},
|
||||||
"sourceHandle": {
|
"sourceHandle": {
|
||||||
"baseClasses": [
|
"baseClasses": ["object", "Record", "str", "Text"],
|
||||||
"object",
|
|
||||||
"Record",
|
|
||||||
"str",
|
|
||||||
"Text"
|
|
||||||
],
|
|
||||||
"dataType": "ChatInput",
|
"dataType": "ChatInput",
|
||||||
"id": "ChatInput-XYvUc"
|
"id": "ChatInput-XYvUc"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ test("chat_io_teste", async ({ page }) => {
|
||||||
|
|
||||||
const jsonContent = readFileSync(
|
const jsonContent = readFileSync(
|
||||||
"src/frontend/tests/end-to-end/assets/ChatTest.json",
|
"src/frontend/tests/end-to-end/assets/ChatTest.json",
|
||||||
"utf-8",
|
"utf-8"
|
||||||
);
|
);
|
||||||
|
|
||||||
await page.getByTestId("blank-flow").click();
|
await page.getByTestId("blank-flow").click();
|
||||||
|
|
@ -47,7 +47,7 @@ test("chat_io_teste", async ({ page }) => {
|
||||||
"drop",
|
"drop",
|
||||||
{
|
{
|
||||||
dataTransfer,
|
dataTransfer,
|
||||||
},
|
}
|
||||||
);
|
);
|
||||||
await page.getByLabel("fit view").click();
|
await page.getByLabel("fit view").click();
|
||||||
await page.getByText("Playground", { exact: true }).click();
|
await page.getByText("Playground", { exact: true }).click();
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ test("user must interact with chat with Input/Output", async ({ page }) => {
|
||||||
.getByTestId("textarea-input_value")
|
.getByTestId("textarea-input_value")
|
||||||
.nth(1)
|
.nth(1)
|
||||||
.fill(
|
.fill(
|
||||||
"testtesttesttesttesttestte;.;.,;,.;,.;.,;,..,;;;;;;;;;;;;;;;;;;;;;,;.;,.;,.,;.,;.;.,~~çççççççççççççççççççççççççççççççççççççççisdajfdasiopjfaodisjhvoicxjiovjcxizopjviopasjioasfhjaiohf23432432432423423sttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttestççççççççççççççççççççççççççççççççç,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,!",
|
"testtesttesttesttesttestte;.;.,;,.;,.;.,;,..,;;;;;;;;;;;;;;;;;;;;;,;.;,.;,.,;.,;.;.,~~çççççççççççççççççççççççççççççççççççççççisdajfdasiopjfaodisjhvoicxjiovjcxizopjviopasjioasfhjaiohf23432432432423423sttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttestççççççççççççççççççççççççççççççççç,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,!"
|
||||||
);
|
);
|
||||||
await page.getByTestId("icon-LucideSend").click();
|
await page.getByTestId("icon-LucideSend").click();
|
||||||
await page.getByText("Close", { exact: true }).click();
|
await page.getByText("Close", { exact: true }).click();
|
||||||
|
|
@ -89,9 +89,9 @@ test("user must interact with chat with Input/Output", async ({ page }) => {
|
||||||
await page
|
await page
|
||||||
.getByText(
|
.getByText(
|
||||||
"testtesttesttesttesttestte;.;.,;,.;,.;.,;,..,;;;;;;;;;;;;;;;;;;;;;,;.;,.;,.,;.,;.;.,~~çççççççççççççççççççççççççççççççççççççççisdajfdasiopjfaodisjhvoicxjiovjcxizopjviopasjioasfhjaiohf23432432432423423sttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttestççççççççççççççççççççççççççççççççç,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,!",
|
"testtesttesttesttesttestte;.;.,;,.;,.;.,;,..,;;;;;;;;;;;;;;;;;;;;;,;.;,.;,.,;.,;.;.,~~çççççççççççççççççççççççççççççççççççççççisdajfdasiopjfaodisjhvoicxjiovjcxizopjviopasjioasfhjaiohf23432432432423423sttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttesttestççççççççççççççççççççççççççççççççç,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,.,!",
|
||||||
{ exact: true },
|
{ exact: true }
|
||||||
)
|
)
|
||||||
.isVisible(),
|
.isVisible()
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -197,7 +197,7 @@ test("user must be able to send an image on chat", async ({ page }) => {
|
||||||
await page.getByTestId("edit-button-modal").click();
|
await page.getByTestId("edit-button-modal").click();
|
||||||
await page.getByTestId("toggle-edit-return_record").click();
|
await page.getByTestId("toggle-edit-return_record").click();
|
||||||
expect(
|
expect(
|
||||||
await page.getByTestId("toggle-edit-return_record").isChecked(),
|
await page.getByTestId("toggle-edit-return_record").isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
await page.getByText("Save Changes").click();
|
await page.getByText("Save Changes").click();
|
||||||
|
|
||||||
|
|
@ -205,7 +205,7 @@ test("user must be able to send an image on chat", async ({ page }) => {
|
||||||
|
|
||||||
const jsonContent = readFileSync(
|
const jsonContent = readFileSync(
|
||||||
"src/frontend/tests/end-to-end/assets/chain.png",
|
"src/frontend/tests/end-to-end/assets/chain.png",
|
||||||
"utf-8",
|
"utf-8"
|
||||||
);
|
);
|
||||||
|
|
||||||
// Create the DataTransfer and File
|
// Create the DataTransfer and File
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ test("curl_api_generation", async ({ page, context }) => {
|
||||||
await page.getByRole("tab", { name: "cURL" }).click();
|
await page.getByRole("tab", { name: "cURL" }).click();
|
||||||
await page.getByRole("button", { name: "Copy Code" }).click();
|
await page.getByRole("button", { name: "Copy Code" }).click();
|
||||||
const handle = await page.evaluateHandle(() =>
|
const handle = await page.evaluateHandle(() =>
|
||||||
navigator.clipboard.readText(),
|
navigator.clipboard.readText()
|
||||||
);
|
);
|
||||||
const clipboardContent = await handle.jsonValue();
|
const clipboardContent = await handle.jsonValue();
|
||||||
expect(clipboardContent.length).toBeGreaterThan(0);
|
expect(clipboardContent.length).toBeGreaterThan(0);
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ test.describe("drag and drop test", () => {
|
||||||
// Read your file into a buffer.
|
// Read your file into a buffer.
|
||||||
const jsonContent = readFileSync(
|
const jsonContent = readFileSync(
|
||||||
"src/frontend/tests/end-to-end/assets/collection.json",
|
"src/frontend/tests/end-to-end/assets/collection.json",
|
||||||
"utf-8",
|
"utf-8"
|
||||||
);
|
);
|
||||||
|
|
||||||
// Create the DataTransfer and File
|
// Create the DataTransfer and File
|
||||||
|
|
@ -47,7 +47,7 @@ test.describe("drag and drop test", () => {
|
||||||
"drop",
|
"drop",
|
||||||
{
|
{
|
||||||
dataTransfer,
|
dataTransfer,
|
||||||
},
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
const genericNoda = page.getByTestId("div-generic-node");
|
const genericNoda = page.getByTestId("div-generic-node");
|
||||||
|
|
|
||||||
|
|
@ -80,32 +80,32 @@ test("dropDownComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.locator('//*[@id="showcredentials_profile_name"]').click();
|
await page.locator('//*[@id="showcredentials_profile_name"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showcredentials_profile_name"]').isChecked(),
|
await page.locator('//*[@id="showcredentials_profile_name"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showcredentials_profile_name"]').click();
|
await page.locator('//*[@id="showcredentials_profile_name"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showcredentials_profile_name"]').isChecked(),
|
await page.locator('//*[@id="showcredentials_profile_name"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showendpoint_url"]').click();
|
await page.locator('//*[@id="showendpoint_url"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showendpoint_url"]').isChecked(),
|
await page.locator('//*[@id="showendpoint_url"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showendpoint_url"]').click();
|
await page.locator('//*[@id="showendpoint_url"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showendpoint_url"]').isChecked(),
|
await page.locator('//*[@id="showendpoint_url"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showregion_name"]').click();
|
await page.locator('//*[@id="showregion_name"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showregion_name"]').isChecked(),
|
await page.locator('//*[@id="showregion_name"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showregion_name"]').click();
|
await page.locator('//*[@id="showregion_name"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showregion_name"]').isChecked(),
|
await page.locator('//*[@id="showregion_name"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
// showmodel_id
|
// showmodel_id
|
||||||
|
|
@ -115,7 +115,7 @@ test("dropDownComponent", async ({ page }) => {
|
||||||
// showmodel_id
|
// showmodel_id
|
||||||
await page.locator('//*[@id="showmodel_id"]').click();
|
await page.locator('//*[@id="showmodel_id"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showmodel_id"]').isChecked(),
|
await page.locator('//*[@id="showmodel_id"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showcache"]').click();
|
await page.locator('//*[@id="showcache"]').click();
|
||||||
|
|
@ -126,32 +126,32 @@ test("dropDownComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.locator('//*[@id="showcredentials_profile_name"]').click();
|
await page.locator('//*[@id="showcredentials_profile_name"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showcredentials_profile_name"]').isChecked(),
|
await page.locator('//*[@id="showcredentials_profile_name"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showcredentials_profile_name"]').click();
|
await page.locator('//*[@id="showcredentials_profile_name"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showcredentials_profile_name"]').isChecked(),
|
await page.locator('//*[@id="showcredentials_profile_name"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showendpoint_url"]').click();
|
await page.locator('//*[@id="showendpoint_url"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showendpoint_url"]').isChecked(),
|
await page.locator('//*[@id="showendpoint_url"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showendpoint_url"]').click();
|
await page.locator('//*[@id="showendpoint_url"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showendpoint_url"]').isChecked(),
|
await page.locator('//*[@id="showendpoint_url"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showregion_name"]').click();
|
await page.locator('//*[@id="showregion_name"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showregion_name"]').isChecked(),
|
await page.locator('//*[@id="showregion_name"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showregion_name"]').click();
|
await page.locator('//*[@id="showregion_name"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showregion_name"]').isChecked(),
|
await page.locator('//*[@id="showregion_name"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
// showmodel_id
|
// showmodel_id
|
||||||
|
|
@ -161,7 +161,7 @@ test("dropDownComponent", async ({ page }) => {
|
||||||
// showmodel_id
|
// showmodel_id
|
||||||
await page.locator('//*[@id="showmodel_id"]').click();
|
await page.locator('//*[@id="showmodel_id"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showmodel_id"]').isChecked(),
|
await page.locator('//*[@id="showmodel_id"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.getByTestId("dropdown-edit-model_id").click();
|
await page.getByTestId("dropdown-edit-model_id").click();
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ test("dropDownComponent", async ({ page }) => {
|
||||||
// Click and hold on the first element
|
// Click and hold on the first element
|
||||||
await page
|
await page
|
||||||
.locator(
|
.locator(
|
||||||
'//*[@id="react-flow-id"]/div/div[1]/div[1]/div/div[2]/div[1]/div/div[2]/div[6]/button/div/div',
|
'//*[@id="react-flow-id"]/div/div[1]/div[1]/div/div[2]/div[1]/div/div[2]/div[6]/button/div/div'
|
||||||
)
|
)
|
||||||
.hover();
|
.hover();
|
||||||
await page.mouse.down();
|
await page.mouse.down();
|
||||||
|
|
@ -72,7 +72,7 @@ test("dropDownComponent", async ({ page }) => {
|
||||||
// Move to the second element
|
// Move to the second element
|
||||||
await page
|
await page
|
||||||
.locator(
|
.locator(
|
||||||
'//*[@id="react-flow-id"]/div/div[1]/div[1]/div/div[2]/div[2]/div/div[2]/div[3]/div/button/div/div',
|
'//*[@id="react-flow-id"]/div/div[1]/div[1]/div/div[2]/div[2]/div/div[2]/div[3]/div/button/div/div'
|
||||||
)
|
)
|
||||||
.hover();
|
.hover();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ test("LLMChain - Tooltip", async ({ page }) => {
|
||||||
|
|
||||||
await page
|
await page
|
||||||
.locator(
|
.locator(
|
||||||
'//*[@id="react-flow-id"]/div[1]/div[1]/div/div/div[2]/div/div/div[2]/div[3]/div/button/div/div',
|
'//*[@id="react-flow-id"]/div[1]/div[1]/div/div/div[2]/div/div/div[2]/div[3]/div/button/div/div'
|
||||||
)
|
)
|
||||||
.hover()
|
.hover()
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
|
|
@ -60,17 +60,17 @@ test("LLMChain - Tooltip", async ({ page }) => {
|
||||||
await page.getByTitle("zoom out").click();
|
await page.getByTitle("zoom out").click();
|
||||||
await page
|
await page
|
||||||
.locator(
|
.locator(
|
||||||
'//*[@id="react-flow-id"]/div[1]/div[1]/div/div/div[2]/div/div/div[2]/div[4]/div/button/div/div',
|
'//*[@id="react-flow-id"]/div[1]/div[1]/div/div/div[2]/div/div/div[2]/div[4]/div/button/div/div'
|
||||||
)
|
)
|
||||||
.hover()
|
.hover()
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
await expect(
|
await expect(
|
||||||
page.getByTestId("tooltip-Model Specs").first(),
|
page.getByTestId("tooltip-Model Specs").first()
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
await page.waitForTimeout(2000);
|
await page.waitForTimeout(2000);
|
||||||
|
|
||||||
await expect(
|
await expect(
|
||||||
page.getByTestId("tooltip-Model Specs").first(),
|
page.getByTestId("tooltip-Model Specs").first()
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
|
|
||||||
await page.getByTestId("icon-Search").click();
|
await page.getByTestId("icon-Search").click();
|
||||||
|
|
@ -81,12 +81,12 @@ test("LLMChain - Tooltip", async ({ page }) => {
|
||||||
|
|
||||||
await page
|
await page
|
||||||
.locator(
|
.locator(
|
||||||
'//*[@id="react-flow-id"]/div[1]/div[1]/div/div/div[2]/div/div/div[2]/div[5]/div/button/div/div',
|
'//*[@id="react-flow-id"]/div[1]/div[1]/div/div/div[2]/div/div/div[2]/div[5]/div/button/div/div'
|
||||||
)
|
)
|
||||||
.hover()
|
.hover()
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
await expect(
|
await expect(
|
||||||
page.getByTestId("empty-tooltip-filter").first(),
|
page.getByTestId("empty-tooltip-filter").first()
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
@ -113,7 +113,7 @@ test("LLMChain - Filter", async ({ page }) => {
|
||||||
await page.waitForTimeout(1000);
|
await page.waitForTimeout(1000);
|
||||||
|
|
||||||
await page.getByTestId(
|
await page.getByTestId(
|
||||||
"input-list-plus-btn-edit_metadata_indexing_include-2",
|
"input-list-plus-btn-edit_metadata_indexing_include-2"
|
||||||
);
|
);
|
||||||
|
|
||||||
await page.getByTestId("blank-flow").click();
|
await page.getByTestId("blank-flow").click();
|
||||||
|
|
@ -136,7 +136,7 @@ test("LLMChain - Filter", async ({ page }) => {
|
||||||
|
|
||||||
await page
|
await page
|
||||||
.locator(
|
.locator(
|
||||||
'//*[@id="react-flow-id"]/div/div[1]/div[1]/div/div[2]/div/div/div[2]/div[4]/div/button/div/div',
|
'//*[@id="react-flow-id"]/div/div[1]/div[1]/div/div[2]/div/div/div[2]/div[4]/div/button/div/div'
|
||||||
)
|
)
|
||||||
.click();
|
.click();
|
||||||
|
|
||||||
|
|
@ -149,14 +149,14 @@ test("LLMChain - Filter", async ({ page }) => {
|
||||||
await expect(page.getByTestId("model_specsChatOpenAI")).toBeVisible();
|
await expect(page.getByTestId("model_specsChatOpenAI")).toBeVisible();
|
||||||
await expect(page.getByTestId("model_specsChatVertexAI")).toBeVisible();
|
await expect(page.getByTestId("model_specsChatVertexAI")).toBeVisible();
|
||||||
await expect(
|
await expect(
|
||||||
page.getByTestId("model_specsGoogle Generative AI"),
|
page.getByTestId("model_specsGoogle Generative AI")
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
await expect(
|
await expect(
|
||||||
page.getByTestId("model_specsHugging Face Inference API"),
|
page.getByTestId("model_specsHugging Face Inference API")
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
await expect(page.getByTestId("model_specsOllama")).toBeVisible();
|
await expect(page.getByTestId("model_specsOllama")).toBeVisible();
|
||||||
await expect(
|
await expect(
|
||||||
page.getByTestId("model_specsQianfanChatEndpoint"),
|
page.getByTestId("model_specsQianfanChatEndpoint")
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
await expect(page.getByTestId("model_specsQianfanLLMEndpoint")).toBeVisible();
|
await expect(page.getByTestId("model_specsQianfanLLMEndpoint")).toBeVisible();
|
||||||
await expect(page.getByTestId("model_specsVertexAI")).toBeVisible();
|
await expect(page.getByTestId("model_specsVertexAI")).toBeVisible();
|
||||||
|
|
@ -168,7 +168,7 @@ test("LLMChain - Filter", async ({ page }) => {
|
||||||
await expect(page.getByTestId("model_specsAmazon Bedrock")).not.toBeVisible();
|
await expect(page.getByTestId("model_specsAmazon Bedrock")).not.toBeVisible();
|
||||||
await expect(page.getByTestId("modelsAzure OpenAI")).not.toBeVisible();
|
await expect(page.getByTestId("modelsAzure OpenAI")).not.toBeVisible();
|
||||||
await expect(
|
await expect(
|
||||||
page.getByTestId("model_specsAzureChatOpenAI"),
|
page.getByTestId("model_specsAzureChatOpenAI")
|
||||||
).not.toBeVisible();
|
).not.toBeVisible();
|
||||||
await expect(page.getByTestId("model_specsChatAnthropic")).not.toBeVisible();
|
await expect(page.getByTestId("model_specsChatAnthropic")).not.toBeVisible();
|
||||||
await expect(page.getByTestId("model_specsChatLiteLLM")).not.toBeVisible();
|
await expect(page.getByTestId("model_specsChatLiteLLM")).not.toBeVisible();
|
||||||
|
|
@ -178,13 +178,13 @@ test("LLMChain - Filter", async ({ page }) => {
|
||||||
|
|
||||||
await page
|
await page
|
||||||
.locator(
|
.locator(
|
||||||
'//*[@id="react-flow-id"]/div/div[1]/div[1]/div/div[2]/div/div/div[2]/div[7]/button/div/div',
|
'//*[@id="react-flow-id"]/div/div[1]/div[1]/div/div[2]/div/div/div[2]/div[7]/button/div/div'
|
||||||
)
|
)
|
||||||
.click();
|
.click();
|
||||||
|
|
||||||
await page
|
await page
|
||||||
.locator(
|
.locator(
|
||||||
'//*[@id="react-flow-id"]/div/div[1]/div[1]/div/div[2]/div/div/div[2]/div[7]/button/div/div',
|
'//*[@id="react-flow-id"]/div/div[1]/div[1]/div/div[2]/div/div/div[2]/div[7]/button/div/div'
|
||||||
)
|
)
|
||||||
.click();
|
.click();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -71,27 +71,27 @@ test("FloatComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.getByTestId("showmirostat").click();
|
await page.getByTestId("showmirostat").click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showmirostat"]').isChecked(),
|
await page.locator('//*[@id="showmirostat"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.getByTestId("showmirostat_eta").click();
|
await page.getByTestId("showmirostat_eta").click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showmirostat_eta"]').isChecked(),
|
await page.locator('//*[@id="showmirostat_eta"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.getByTestId("showmirostat_eta").click();
|
await page.getByTestId("showmirostat_eta").click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showmirostat_eta"]').isChecked(),
|
await page.locator('//*[@id="showmirostat_eta"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.getByTestId("showmirostat_tau").click();
|
await page.getByTestId("showmirostat_tau").click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showmirostat_tau"]').isChecked(),
|
await page.locator('//*[@id="showmirostat_tau"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.getByTestId("showmirostat_tau").click();
|
await page.getByTestId("showmirostat_tau").click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showmirostat_tau"]').isChecked(),
|
await page.locator('//*[@id="showmirostat_tau"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.getByTestId("showmodel").click();
|
await page.getByTestId("showmodel").click();
|
||||||
|
|
@ -114,22 +114,22 @@ test("FloatComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.getByTestId("shownum_thread").click();
|
await page.getByTestId("shownum_thread").click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="shownum_thread"]').isChecked(),
|
await page.locator('//*[@id="shownum_thread"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.getByTestId("shownum_thread").click();
|
await page.getByTestId("shownum_thread").click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="shownum_thread"]').isChecked(),
|
await page.locator('//*[@id="shownum_thread"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.getByTestId("showrepeat_last_n").click();
|
await page.getByTestId("showrepeat_last_n").click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showrepeat_last_n"]').isChecked(),
|
await page.locator('//*[@id="showrepeat_last_n"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.getByTestId("showrepeat_last_n").click();
|
await page.getByTestId("showrepeat_last_n").click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showrepeat_last_n"]').isChecked(),
|
await page.locator('//*[@id="showrepeat_last_n"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.getByText("Save Changes", { exact: true }).click();
|
await page.getByText("Save Changes", { exact: true }).click();
|
||||||
|
|
@ -145,7 +145,7 @@ test("FloatComponent", async ({ page }) => {
|
||||||
// showtemperature
|
// showtemperature
|
||||||
await page.locator('//*[@id="showtemperature"]').click();
|
await page.locator('//*[@id="showtemperature"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showtemperature"]').isChecked(),
|
await page.locator('//*[@id="showtemperature"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.getByText("Save Changes", { exact: true }).click();
|
await page.getByText("Save Changes", { exact: true }).click();
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ test("flowSettings", async ({ page }) => {
|
||||||
await page
|
await page
|
||||||
.getByPlaceholder("Flow name")
|
.getByPlaceholder("Flow name")
|
||||||
.fill(
|
.fill(
|
||||||
"Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test",
|
"Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test"
|
||||||
);
|
);
|
||||||
|
|
||||||
await page.getByText("Character limit reached").isVisible();
|
await page.getByText("Character limit reached").isVisible();
|
||||||
|
|
@ -41,7 +41,7 @@ test("flowSettings", async ({ page }) => {
|
||||||
await page
|
await page
|
||||||
.getByPlaceholder("Flow description")
|
.getByPlaceholder("Flow description")
|
||||||
.fill(
|
.fill(
|
||||||
"Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test",
|
"Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test Flow Name Test"
|
||||||
);
|
);
|
||||||
|
|
||||||
await page.getByTestId("save-flow-settings").click();
|
await page.getByTestId("save-flow-settings").click();
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ test("add folder by drag and drop", async ({ page }) => {
|
||||||
|
|
||||||
const jsonContent = readFileSync(
|
const jsonContent = readFileSync(
|
||||||
"src/frontend/tests/end-to-end/assets/collection.json",
|
"src/frontend/tests/end-to-end/assets/collection.json",
|
||||||
"utf-8",
|
"utf-8"
|
||||||
);
|
);
|
||||||
|
|
||||||
// Create the DataTransfer and File
|
// Create the DataTransfer and File
|
||||||
|
|
@ -78,7 +78,7 @@ test("add folder by drag and drop", async ({ page }) => {
|
||||||
"drop",
|
"drop",
|
||||||
{
|
{
|
||||||
dataTransfer,
|
dataTransfer,
|
||||||
},
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
await page.getByText("Getting Started").first().isVisible();
|
await page.getByText("Getting Started").first().isVisible();
|
||||||
|
|
|
||||||
|
|
@ -60,69 +60,69 @@ test("InputComponent", async ({ page }) => {
|
||||||
expect(
|
expect(
|
||||||
await page
|
await page
|
||||||
.locator('//*[@id="showchroma_server_cors_allow_origins"]')
|
.locator('//*[@id="showchroma_server_cors_allow_origins"]')
|
||||||
.isChecked(),
|
.isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showchroma_server_grpc_port"]').click();
|
await page.locator('//*[@id="showchroma_server_grpc_port"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showchroma_server_grpc_port"]').isChecked(),
|
await page.locator('//*[@id="showchroma_server_grpc_port"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showchroma_server_host"]').click();
|
await page.locator('//*[@id="showchroma_server_host"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showchroma_server_host"]').isChecked(),
|
await page.locator('//*[@id="showchroma_server_host"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showchroma_server_http_port"]').click();
|
await page.locator('//*[@id="showchroma_server_http_port"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showchroma_server_http_port"]').isChecked(),
|
await page.locator('//*[@id="showchroma_server_http_port"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showchroma_server_ssl_enabled"]').click();
|
await page.locator('//*[@id="showchroma_server_ssl_enabled"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showchroma_server_ssl_enabled"]').isChecked(),
|
await page.locator('//*[@id="showchroma_server_ssl_enabled"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showcollection_name"]').click();
|
await page.locator('//*[@id="showcollection_name"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showcollection_name"]').isChecked(),
|
await page.locator('//*[@id="showcollection_name"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showindex_directory"]').click();
|
await page.locator('//*[@id="showindex_directory"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showindex_directory"]').isChecked(),
|
await page.locator('//*[@id="showindex_directory"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showchroma_server_cors_allow_origins"]').click();
|
await page.locator('//*[@id="showchroma_server_cors_allow_origins"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page
|
await page
|
||||||
.locator('//*[@id="showchroma_server_cors_allow_origins"]')
|
.locator('//*[@id="showchroma_server_cors_allow_origins"]')
|
||||||
.isChecked(),
|
.isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showchroma_server_grpc_port"]').click();
|
await page.locator('//*[@id="showchroma_server_grpc_port"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showchroma_server_grpc_port"]').isChecked(),
|
await page.locator('//*[@id="showchroma_server_grpc_port"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showchroma_server_host"]').click();
|
await page.locator('//*[@id="showchroma_server_host"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showchroma_server_host"]').isChecked(),
|
await page.locator('//*[@id="showchroma_server_host"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showchroma_server_http_port"]').click();
|
await page.locator('//*[@id="showchroma_server_http_port"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showchroma_server_http_port"]').isChecked(),
|
await page.locator('//*[@id="showchroma_server_http_port"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showchroma_server_ssl_enabled"]').click();
|
await page.locator('//*[@id="showchroma_server_ssl_enabled"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showchroma_server_ssl_enabled"]').isChecked(),
|
await page.locator('//*[@id="showchroma_server_ssl_enabled"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showindex_directory"]').click();
|
await page.locator('//*[@id="showindex_directory"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showindex_directory"]').isChecked(),
|
await page.locator('//*[@id="showindex_directory"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
let valueEditNode = await page
|
let valueEditNode = await page
|
||||||
|
|
@ -152,7 +152,7 @@ test("InputComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.locator('//*[@id="showcollection_name"]').click();
|
await page.locator('//*[@id="showcollection_name"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showcollection_name"]').isChecked(),
|
await page.locator('//*[@id="showcollection_name"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.getByText("Save Changes", { exact: true }).click();
|
await page.getByText("Save Changes", { exact: true }).click();
|
||||||
|
|
|
||||||
|
|
@ -41,19 +41,19 @@ test("InputListComponent", async ({ page }) => {
|
||||||
await page.getByTestId("edit-button-modal").click();
|
await page.getByTestId("edit-button-modal").click();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.getByTestId("showmetadata_indexing_exclude").isChecked(),
|
await page.getByTestId("showmetadata_indexing_exclude").isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
await page.getByTestId("showmetadata_indexing_exclude").click();
|
await page.getByTestId("showmetadata_indexing_exclude").click();
|
||||||
expect(
|
expect(
|
||||||
await page.getByTestId("showmetadata_indexing_exclude").isChecked(),
|
await page.getByTestId("showmetadata_indexing_exclude").isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.getByTestId("showmetadata_indexing_include").isChecked(),
|
await page.getByTestId("showmetadata_indexing_include").isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
await page.getByTestId("showmetadata_indexing_include").click();
|
await page.getByTestId("showmetadata_indexing_include").click();
|
||||||
expect(
|
expect(
|
||||||
await page.getByTestId("showmetadata_indexing_include").isChecked(),
|
await page.getByTestId("showmetadata_indexing_include").isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page
|
await page
|
||||||
|
|
@ -93,7 +93,7 @@ test("InputListComponent", async ({ page }) => {
|
||||||
.click();
|
.click();
|
||||||
|
|
||||||
const plusButtonLocator = page.getByTestId(
|
const plusButtonLocator = page.getByTestId(
|
||||||
"input-list-plus-btn_metadata_indexing_include-1",
|
"input-list-plus-btn_metadata_indexing_include-1"
|
||||||
);
|
);
|
||||||
const elementCount = await plusButtonLocator?.count();
|
const elementCount = await plusButtonLocator?.count();
|
||||||
|
|
||||||
|
|
@ -164,12 +164,12 @@ test("InputListComponent", async ({ page }) => {
|
||||||
.click();
|
.click();
|
||||||
|
|
||||||
const plusButtonLocatorEdit0 = await page.getByTestId(
|
const plusButtonLocatorEdit0 = await page.getByTestId(
|
||||||
"input-list-plus-btn-edit_metadata_indexing_include-0",
|
"input-list-plus-btn-edit_metadata_indexing_include-0"
|
||||||
);
|
);
|
||||||
const elementCountEdit0 = await plusButtonLocatorEdit0?.count();
|
const elementCountEdit0 = await plusButtonLocatorEdit0?.count();
|
||||||
|
|
||||||
const plusButtonLocatorEdit2 = await page.getByTestId(
|
const plusButtonLocatorEdit2 = await page.getByTestId(
|
||||||
"input-list-plus-btn-edit_metadata_indexing_include-2",
|
"input-list-plus-btn-edit_metadata_indexing_include-2"
|
||||||
);
|
);
|
||||||
const elementCountEdit2 = await plusButtonLocatorEdit2?.count();
|
const elementCountEdit2 = await plusButtonLocatorEdit2?.count();
|
||||||
|
|
||||||
|
|
@ -178,13 +178,13 @@ test("InputListComponent", async ({ page }) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const minusButtonLocatorEdit1 = await page.getByTestId(
|
const minusButtonLocatorEdit1 = await page.getByTestId(
|
||||||
"input-list-minus-btn-edit_metadata_indexing_include-1",
|
"input-list-minus-btn-edit_metadata_indexing_include-1"
|
||||||
);
|
);
|
||||||
|
|
||||||
const elementCountMinusEdit1 = await minusButtonLocatorEdit1?.count();
|
const elementCountMinusEdit1 = await minusButtonLocatorEdit1?.count();
|
||||||
|
|
||||||
const minusButtonLocatorEdit2 = await page.getByTestId(
|
const minusButtonLocatorEdit2 = await page.getByTestId(
|
||||||
"input-list-minus-btn-edit_metadata_indexing_include-2",
|
"input-list-minus-btn-edit_metadata_indexing_include-2"
|
||||||
);
|
);
|
||||||
|
|
||||||
const elementCountMinusEdit2 = await minusButtonLocatorEdit2?.count();
|
const elementCountMinusEdit2 = await minusButtonLocatorEdit2?.count();
|
||||||
|
|
|
||||||
|
|
@ -87,77 +87,77 @@ test("IntComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.locator('//*[@id="showmodel_kwargs"]').click();
|
await page.locator('//*[@id="showmodel_kwargs"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showmodel_kwargs"]').isChecked(),
|
await page.locator('//*[@id="showmodel_kwargs"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showmodel_name"]').click();
|
await page.locator('//*[@id="showmodel_name"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showmodel_name"]').isChecked(),
|
await page.locator('//*[@id="showmodel_name"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showopenai_api_base"]').click();
|
await page.locator('//*[@id="showopenai_api_base"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showopenai_api_base"]').isChecked(),
|
await page.locator('//*[@id="showopenai_api_base"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showopenai_api_key"]').click();
|
await page.locator('//*[@id="showopenai_api_key"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showopenai_api_key"]').isChecked(),
|
await page.locator('//*[@id="showopenai_api_key"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showtemperature"]').click();
|
await page.locator('//*[@id="showtemperature"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showtemperature"]').isChecked(),
|
await page.locator('//*[@id="showtemperature"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showmodel_kwargs"]').click();
|
await page.locator('//*[@id="showmodel_kwargs"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showmodel_kwargs"]').isChecked(),
|
await page.locator('//*[@id="showmodel_kwargs"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showmodel_name"]').click();
|
await page.locator('//*[@id="showmodel_name"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showmodel_name"]').isChecked(),
|
await page.locator('//*[@id="showmodel_name"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showopenai_api_base"]').click();
|
await page.locator('//*[@id="showopenai_api_base"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showopenai_api_base"]').isChecked(),
|
await page.locator('//*[@id="showopenai_api_base"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showopenai_api_key"]').click();
|
await page.locator('//*[@id="showopenai_api_key"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showopenai_api_key"]').isChecked(),
|
await page.locator('//*[@id="showopenai_api_key"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showtemperature"]').click();
|
await page.locator('//*[@id="showtemperature"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showtemperature"]').isChecked(),
|
await page.locator('//*[@id="showtemperature"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showmodel_kwargs"]').click();
|
await page.locator('//*[@id="showmodel_kwargs"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showmodel_kwargs"]').isChecked(),
|
await page.locator('//*[@id="showmodel_kwargs"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showmodel_name"]').click();
|
await page.locator('//*[@id="showmodel_name"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showmodel_name"]').isChecked(),
|
await page.locator('//*[@id="showmodel_name"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showopenai_api_base"]').click();
|
await page.locator('//*[@id="showopenai_api_base"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showopenai_api_base"]').isChecked(),
|
await page.locator('//*[@id="showopenai_api_base"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showopenai_api_key"]').click();
|
await page.locator('//*[@id="showopenai_api_key"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showopenai_api_key"]').isChecked(),
|
await page.locator('//*[@id="showopenai_api_key"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showtemperature"]').click();
|
await page.locator('//*[@id="showtemperature"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showtemperature"]').isChecked(),
|
await page.locator('//*[@id="showtemperature"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.getByText("Save Changes", { exact: true }).click();
|
await page.getByText("Save Changes", { exact: true }).click();
|
||||||
|
|
@ -172,7 +172,7 @@ test("IntComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.locator('//*[@id="showtimeout"]').click();
|
await page.locator('//*[@id="showtimeout"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showtimeout"]').isChecked(),
|
await page.locator('//*[@id="showtimeout"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
const valueEditNode = await page
|
const valueEditNode = await page
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ test("KeypairListComponent", async ({ page }) => {
|
||||||
expect(await page.locator('//*[@id="showcache"]').isChecked()).toBeFalsy();
|
expect(await page.locator('//*[@id="showcache"]').isChecked()).toBeFalsy();
|
||||||
await page.locator('//*[@id="showcredentials_profile_name"]').click();
|
await page.locator('//*[@id="showcredentials_profile_name"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showcredentials_profile_name"]').isChecked(),
|
await page.locator('//*[@id="showcredentials_profile_name"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
await page.getByText("Save Changes", { exact: true }).click();
|
await page.getByText("Save Changes", { exact: true }).click();
|
||||||
|
|
||||||
|
|
@ -96,7 +96,7 @@ test("KeypairListComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.locator('//*[@id="showcredentials_profile_name"]').click();
|
await page.locator('//*[@id="showcredentials_profile_name"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showcredentials_profile_name"]').isChecked(),
|
await page.locator('//*[@id="showcredentials_profile_name"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
await page.locator('//*[@id="showcache"]').click();
|
await page.locator('//*[@id="showcache"]').click();
|
||||||
expect(await page.locator('//*[@id="showcache"]').isChecked()).toBeTruthy();
|
expect(await page.locator('//*[@id="showcache"]').isChecked()).toBeTruthy();
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ test("LangflowShortcuts", async ({ page }) => {
|
||||||
|
|
||||||
await page
|
await page
|
||||||
.locator(
|
.locator(
|
||||||
'//*[@id="react-flow-id"]/div[1]/div[1]/div[1]/div/div[2]/div[2]/div/div[1]/div/div[1]/div/div/div[1]',
|
'//*[@id="react-flow-id"]/div[1]/div[1]/div[1]/div/div[2]/div[2]/div/div[1]/div/div[1]/div/div/div[1]'
|
||||||
)
|
)
|
||||||
.click();
|
.click();
|
||||||
await page.keyboard.press("Backspace");
|
await page.keyboard.press("Backspace");
|
||||||
|
|
@ -84,7 +84,7 @@ test("LangflowShortcuts", async ({ page }) => {
|
||||||
|
|
||||||
await page
|
await page
|
||||||
.locator(
|
.locator(
|
||||||
'//*[@id="react-flow-id"]/div[1]/div[1]/div[1]/div/div[2]/div[2]/div/div[1]/div/div[1]/div/div/div[1]',
|
'//*[@id="react-flow-id"]/div[1]/div[1]/div[1]/div/div[2]/div[2]/div/div[1]/div/div[1]/div/div/div[1]'
|
||||||
)
|
)
|
||||||
.click();
|
.click();
|
||||||
await page.keyboard.press("Backspace");
|
await page.keyboard.press("Backspace");
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ test("NestedComponent", async ({ page }) => {
|
||||||
await page.locator('//*[@id="showpool_threads"]').click();
|
await page.locator('//*[@id="showpool_threads"]').click();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showpool_threads"]').isChecked(),
|
await page.locator('//*[@id="showpool_threads"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
//showtext_key
|
//showtext_key
|
||||||
|
|
@ -53,140 +53,140 @@ test("NestedComponent", async ({ page }) => {
|
||||||
await page.locator('//*[@id="showindex_name"]').click();
|
await page.locator('//*[@id="showindex_name"]').click();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showindex_name"]').isChecked(),
|
await page.locator('//*[@id="showindex_name"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
// shownamespace
|
// shownamespace
|
||||||
await page.locator('//*[@id="shownamespace"]').click();
|
await page.locator('//*[@id="shownamespace"]').click();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="shownamespace"]').isChecked(),
|
await page.locator('//*[@id="shownamespace"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
// showpinecone_api_key
|
// showpinecone_api_key
|
||||||
await page.locator('//*[@id="showpinecone_api_key"]').click();
|
await page.locator('//*[@id="showpinecone_api_key"]').click();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showpinecone_api_key"]').isChecked(),
|
await page.locator('//*[@id="showpinecone_api_key"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
// showindex_name
|
// showindex_name
|
||||||
await page.locator('//*[@id="showindex_name"]').click();
|
await page.locator('//*[@id="showindex_name"]').click();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showindex_name"]').isChecked(),
|
await page.locator('//*[@id="showindex_name"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
// shownamespace
|
// shownamespace
|
||||||
await page.locator('//*[@id="shownamespace"]').click();
|
await page.locator('//*[@id="shownamespace"]').click();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="shownamespace"]').isChecked(),
|
await page.locator('//*[@id="shownamespace"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
// showpinecone_api_key
|
// showpinecone_api_key
|
||||||
await page.locator('//*[@id="showpinecone_api_key"]').click();
|
await page.locator('//*[@id="showpinecone_api_key"]').click();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showpinecone_api_key"]').isChecked(),
|
await page.locator('//*[@id="showpinecone_api_key"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
// showindex_name
|
// showindex_name
|
||||||
await page.locator('//*[@id="showindex_name"]').click();
|
await page.locator('//*[@id="showindex_name"]').click();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showindex_name"]').isChecked(),
|
await page.locator('//*[@id="showindex_name"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
// shownamespace
|
// shownamespace
|
||||||
await page.locator('//*[@id="shownamespace"]').click();
|
await page.locator('//*[@id="shownamespace"]').click();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="shownamespace"]').isChecked(),
|
await page.locator('//*[@id="shownamespace"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
// showpinecone_api_key
|
// showpinecone_api_key
|
||||||
await page.locator('//*[@id="showpinecone_api_key"]').click();
|
await page.locator('//*[@id="showpinecone_api_key"]').click();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showpinecone_api_key"]').isChecked(),
|
await page.locator('//*[@id="showpinecone_api_key"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
// showindex_name
|
// showindex_name
|
||||||
await page.locator('//*[@id="showindex_name"]').click();
|
await page.locator('//*[@id="showindex_name"]').click();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showindex_name"]').isChecked(),
|
await page.locator('//*[@id="showindex_name"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
// shownamespace
|
// shownamespace
|
||||||
await page.locator('//*[@id="shownamespace"]').click();
|
await page.locator('//*[@id="shownamespace"]').click();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="shownamespace"]').isChecked(),
|
await page.locator('//*[@id="shownamespace"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
// showpinecone_api_key
|
// showpinecone_api_key
|
||||||
await page.locator('//*[@id="showpinecone_api_key"]').click();
|
await page.locator('//*[@id="showpinecone_api_key"]').click();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showpinecone_api_key"]').isChecked(),
|
await page.locator('//*[@id="showpinecone_api_key"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
// showindex_name
|
// showindex_name
|
||||||
await page.locator('//*[@id="showindex_name"]').click();
|
await page.locator('//*[@id="showindex_name"]').click();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showindex_name"]').isChecked(),
|
await page.locator('//*[@id="showindex_name"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
// shownamespace
|
// shownamespace
|
||||||
await page.locator('//*[@id="shownamespace"]').click();
|
await page.locator('//*[@id="shownamespace"]').click();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="shownamespace"]').isChecked(),
|
await page.locator('//*[@id="shownamespace"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
// showpinecone_api_key
|
// showpinecone_api_key
|
||||||
await page.locator('//*[@id="showpinecone_api_key"]').click();
|
await page.locator('//*[@id="showpinecone_api_key"]').click();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showpinecone_api_key"]').isChecked(),
|
await page.locator('//*[@id="showpinecone_api_key"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
// showindex_name
|
// showindex_name
|
||||||
await page.locator('//*[@id="showindex_name"]').click();
|
await page.locator('//*[@id="showindex_name"]').click();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showindex_name"]').isChecked(),
|
await page.locator('//*[@id="showindex_name"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
// shownamespace
|
// shownamespace
|
||||||
await page.locator('//*[@id="shownamespace"]').click();
|
await page.locator('//*[@id="shownamespace"]').click();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="shownamespace"]').isChecked(),
|
await page.locator('//*[@id="shownamespace"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
// showpinecone_api_key
|
// showpinecone_api_key
|
||||||
await page.locator('//*[@id="showpinecone_api_key"]').click();
|
await page.locator('//*[@id="showpinecone_api_key"]').click();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showpinecone_api_key"]').isChecked(),
|
await page.locator('//*[@id="showpinecone_api_key"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
//showpool_threads
|
//showpool_threads
|
||||||
await page.locator('//*[@id="showpool_threads"]').click();
|
await page.locator('//*[@id="showpool_threads"]').click();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showpool_threads"]').isChecked(),
|
await page.locator('//*[@id="showpool_threads"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
//showtext_key
|
//showtext_key
|
||||||
await page.locator('//*[@id="showtext_key"]').click();
|
await page.locator('//*[@id="showtext_key"]').click();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showtext_key"]').isChecked(),
|
await page.locator('//*[@id="showtext_key"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.getByText("Save Changes", { exact: true }).click();
|
await page.getByText("Save Changes", { exact: true }).click();
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,7 @@ test("PromptTemplateComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.locator('//*[@id="showtemplate"]').click();
|
await page.locator('//*[@id="showtemplate"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showtemplate"]').isChecked(),
|
await page.locator('//*[@id="showtemplate"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showprompt"]').click();
|
await page.locator('//*[@id="showprompt"]').click();
|
||||||
|
|
@ -158,7 +158,7 @@ test("PromptTemplateComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.locator('//*[@id="showtemplate"]').click();
|
await page.locator('//*[@id="showtemplate"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showtemplate"]').isChecked(),
|
await page.locator('//*[@id="showtemplate"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showprompt"]').click();
|
await page.locator('//*[@id="showprompt"]').click();
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ test("python_api_generation", async ({ page, context }) => {
|
||||||
await page.getByRole("tab", { name: "Python API" }).click();
|
await page.getByRole("tab", { name: "Python API" }).click();
|
||||||
await page.getByRole("button", { name: "Copy Code" }).click();
|
await page.getByRole("button", { name: "Copy Code" }).click();
|
||||||
const handle = await page.evaluateHandle(() =>
|
const handle = await page.evaluateHandle(() =>
|
||||||
navigator.clipboard.readText(),
|
navigator.clipboard.readText()
|
||||||
);
|
);
|
||||||
const clipboardContent = await handle.jsonValue();
|
const clipboardContent = await handle.jsonValue();
|
||||||
expect(clipboardContent.length).toBeGreaterThan(0);
|
expect(clipboardContent.length).toBeGreaterThan(0);
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ test.describe("save component tests", () => {
|
||||||
// Read your file into a buffer.
|
// Read your file into a buffer.
|
||||||
const jsonContent = readFileSync(
|
const jsonContent = readFileSync(
|
||||||
"src/frontend/tests/end-to-end/assets/flow_group_test.json",
|
"src/frontend/tests/end-to-end/assets/flow_group_test.json",
|
||||||
"utf-8",
|
"utf-8"
|
||||||
);
|
);
|
||||||
|
|
||||||
// Create the DataTransfer and File
|
// Create the DataTransfer and File
|
||||||
|
|
@ -49,7 +49,7 @@ test.describe("save component tests", () => {
|
||||||
"drop",
|
"drop",
|
||||||
{
|
{
|
||||||
dataTransfer,
|
dataTransfer,
|
||||||
},
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
const genericNoda = page.getByTestId("div-generic-node");
|
const genericNoda = page.getByTestId("div-generic-node");
|
||||||
|
|
|
||||||
|
|
@ -262,7 +262,7 @@ test("should share component with share button", async ({ page }) => {
|
||||||
await page.getByText("Set workflow status to public").isVisible();
|
await page.getByText("Set workflow status to public").isVisible();
|
||||||
await page
|
await page
|
||||||
.getByText(
|
.getByText(
|
||||||
"Attention: API keys in specified fields are automatically removed upon sharing.",
|
"Attention: API keys in specified fields are automatically removed upon sharing."
|
||||||
)
|
)
|
||||||
.isVisible();
|
.isVisible();
|
||||||
await page.getByText("Export").first().isVisible();
|
await page.getByText("Export").first().isVisible();
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ test("TextAreaModalComponent", async ({ page }) => {
|
||||||
await page
|
await page
|
||||||
.getByTestId("textarea-text")
|
.getByTestId("textarea-text")
|
||||||
.fill(
|
.fill(
|
||||||
"test test test test test test test test test test test !@#%*)( 123456789101010101010101111111111 !!!!!!!!!!",
|
"test test test test test test test test test test test !@#%*)( 123456789101010101010101111111111 !!!!!!!!!!"
|
||||||
);
|
);
|
||||||
|
|
||||||
await page.getByTestId("textarea-text-ExternalLink").click();
|
await page.getByTestId("textarea-text-ExternalLink").click();
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ test("TextInputOutputComponent", async ({ page }) => {
|
||||||
// Click and hold on the first element
|
// Click and hold on the first element
|
||||||
await page
|
await page
|
||||||
.locator(
|
.locator(
|
||||||
'//*[@id="react-flow-id"]/div/div[1]/div[1]/div/div[2]/div[1]/div/div[2]/div[6]/button/div/div',
|
'//*[@id="react-flow-id"]/div/div[1]/div[1]/div/div[2]/div[1]/div/div[2]/div[6]/button/div/div'
|
||||||
)
|
)
|
||||||
.hover();
|
.hover();
|
||||||
await page.mouse.down();
|
await page.mouse.down();
|
||||||
|
|
@ -68,7 +68,7 @@ test("TextInputOutputComponent", async ({ page }) => {
|
||||||
// Move to the second element
|
// Move to the second element
|
||||||
await page
|
await page
|
||||||
.locator(
|
.locator(
|
||||||
'//*[@id="react-flow-id"]/div/div[1]/div[1]/div/div[2]/div[2]/div/div[2]/div[9]/div/button/div/div',
|
'//*[@id="react-flow-id"]/div/div[1]/div[1]/div/div[2]/div[2]/div/div[2]/div[9]/div/button/div/div'
|
||||||
)
|
)
|
||||||
.hover();
|
.hover();
|
||||||
|
|
||||||
|
|
@ -92,7 +92,7 @@ test("TextInputOutputComponent", async ({ page }) => {
|
||||||
// Click and hold on the first element
|
// Click and hold on the first element
|
||||||
await page
|
await page
|
||||||
.locator(
|
.locator(
|
||||||
'//*[@id="react-flow-id"]/div/div[1]/div[1]/div/div[2]/div[2]/div/div[2]/div[13]/button/div/div',
|
'//*[@id="react-flow-id"]/div/div[1]/div[1]/div/div[2]/div[2]/div/div[2]/div[13]/button/div/div'
|
||||||
)
|
)
|
||||||
.hover();
|
.hover();
|
||||||
await page.mouse.down();
|
await page.mouse.down();
|
||||||
|
|
@ -100,7 +100,7 @@ test("TextInputOutputComponent", async ({ page }) => {
|
||||||
// Move to the second element
|
// Move to the second element
|
||||||
await page
|
await page
|
||||||
.locator(
|
.locator(
|
||||||
'//*[@id="react-flow-id"]/div/div[1]/div[1]/div/div[2]/div[3]/div/div[2]/div[3]/div/button/div/div',
|
'//*[@id="react-flow-id"]/div/div[1]/div[1]/div/div[2]/div[3]/div/div[2]/div[3]/div/button/div/div'
|
||||||
)
|
)
|
||||||
.hover();
|
.hover();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ test("ToggleComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.locator('//*[@id="showload_hidden"]').click();
|
await page.locator('//*[@id="showload_hidden"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showload_hidden"]').isChecked(),
|
await page.locator('//*[@id="showload_hidden"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.getByText("Save Changes", { exact: true }).click();
|
await page.getByText("Save Changes", { exact: true }).click();
|
||||||
|
|
@ -81,12 +81,12 @@ test("ToggleComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.locator('//*[@id="showload_hidden"]').click();
|
await page.locator('//*[@id="showload_hidden"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showload_hidden"]').isChecked(),
|
await page.locator('//*[@id="showload_hidden"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showmax_concurrency"]').click();
|
await page.locator('//*[@id="showmax_concurrency"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showmax_concurrency"]').isChecked(),
|
await page.locator('//*[@id="showmax_concurrency"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showpath"]').click();
|
await page.locator('//*[@id="showpath"]').click();
|
||||||
|
|
@ -94,22 +94,22 @@ test("ToggleComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.locator('//*[@id="showrecursive"]').click();
|
await page.locator('//*[@id="showrecursive"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showrecursive"]').isChecked(),
|
await page.locator('//*[@id="showrecursive"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showsilent_errors"]').click();
|
await page.locator('//*[@id="showsilent_errors"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showsilent_errors"]').isChecked(),
|
await page.locator('//*[@id="showsilent_errors"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showuse_multithreading"]').click();
|
await page.locator('//*[@id="showuse_multithreading"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showuse_multithreading"]').isChecked(),
|
await page.locator('//*[@id="showuse_multithreading"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showmax_concurrency"]').click();
|
await page.locator('//*[@id="showmax_concurrency"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showmax_concurrency"]').isChecked(),
|
await page.locator('//*[@id="showmax_concurrency"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showpath"]').click();
|
await page.locator('//*[@id="showpath"]').click();
|
||||||
|
|
@ -117,17 +117,17 @@ test("ToggleComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.locator('//*[@id="showrecursive"]').click();
|
await page.locator('//*[@id="showrecursive"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showrecursive"]').isChecked(),
|
await page.locator('//*[@id="showrecursive"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showsilent_errors"]').click();
|
await page.locator('//*[@id="showsilent_errors"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showsilent_errors"]').isChecked(),
|
await page.locator('//*[@id="showsilent_errors"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.locator('//*[@id="showuse_multithreading"]').click();
|
await page.locator('//*[@id="showuse_multithreading"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showuse_multithreading"]').isChecked(),
|
await page.locator('//*[@id="showuse_multithreading"]').isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.getByText("Save Changes", { exact: true }).click();
|
await page.getByText("Save Changes", { exact: true }).click();
|
||||||
|
|
@ -144,38 +144,38 @@ test("ToggleComponent", async ({ page }) => {
|
||||||
|
|
||||||
await page.locator('//*[@id="showload_hidden"]').click();
|
await page.locator('//*[@id="showload_hidden"]').click();
|
||||||
expect(
|
expect(
|
||||||
await page.locator('//*[@id="showload_hidden"]').isChecked(),
|
await page.locator('//*[@id="showload_hidden"]').isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
expect(
|
expect(
|
||||||
await page.getByTestId("toggle-edit-load_hidden").isChecked(),
|
await page.getByTestId("toggle-edit-load_hidden").isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.getByText("Save Changes", { exact: true }).click();
|
await page.getByText("Save Changes", { exact: true }).click();
|
||||||
|
|
||||||
await page.getByTestId("toggle-load_hidden").click();
|
await page.getByTestId("toggle-load_hidden").click();
|
||||||
expect(
|
expect(
|
||||||
await page.getByTestId("toggle-load_hidden").isChecked(),
|
await page.getByTestId("toggle-load_hidden").isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.getByTestId("toggle-load_hidden").click();
|
await page.getByTestId("toggle-load_hidden").click();
|
||||||
expect(
|
expect(
|
||||||
await page.getByTestId("toggle-load_hidden").isChecked(),
|
await page.getByTestId("toggle-load_hidden").isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.getByTestId("toggle-load_hidden").click();
|
await page.getByTestId("toggle-load_hidden").click();
|
||||||
expect(
|
expect(
|
||||||
await page.getByTestId("toggle-load_hidden").isChecked(),
|
await page.getByTestId("toggle-load_hidden").isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
|
|
||||||
await page.getByTestId("toggle-load_hidden").click();
|
await page.getByTestId("toggle-load_hidden").click();
|
||||||
expect(
|
expect(
|
||||||
await page.getByTestId("toggle-load_hidden").isChecked(),
|
await page.getByTestId("toggle-load_hidden").isChecked()
|
||||||
).toBeTruthy();
|
).toBeTruthy();
|
||||||
|
|
||||||
await page.getByTestId("toggle-load_hidden").click();
|
await page.getByTestId("toggle-load_hidden").click();
|
||||||
expect(
|
expect(
|
||||||
await page.getByTestId("toggle-load_hidden").isChecked(),
|
await page.getByTestId("toggle-load_hidden").isChecked()
|
||||||
).toBeFalsy();
|
).toBeFalsy();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ test("curl_api_generation", async ({ page, context }) => {
|
||||||
await page.getByRole("tab", { name: "cURL" }).click();
|
await page.getByRole("tab", { name: "cURL" }).click();
|
||||||
await page.getByRole("button", { name: "Copy Code" }).click();
|
await page.getByRole("button", { name: "Copy Code" }).click();
|
||||||
const handle = await page.evaluateHandle(() =>
|
const handle = await page.evaluateHandle(() =>
|
||||||
navigator.clipboard.readText(),
|
navigator.clipboard.readText()
|
||||||
);
|
);
|
||||||
const clipboardContent = await handle.jsonValue();
|
const clipboardContent = await handle.jsonValue();
|
||||||
const oldValue = clipboardContent;
|
const oldValue = clipboardContent;
|
||||||
|
|
@ -50,7 +50,7 @@ test("curl_api_generation", async ({ page, context }) => {
|
||||||
await page.getByRole("tab", { name: "cURL" }).click();
|
await page.getByRole("tab", { name: "cURL" }).click();
|
||||||
await page.getByRole("button", { name: "Copy Code" }).click();
|
await page.getByRole("button", { name: "Copy Code" }).click();
|
||||||
const handle2 = await page.evaluateHandle(() =>
|
const handle2 = await page.evaluateHandle(() =>
|
||||||
navigator.clipboard.readText(),
|
navigator.clipboard.readText()
|
||||||
);
|
);
|
||||||
const clipboardContent2 = await handle2.jsonValue();
|
const clipboardContent2 = await handle2.jsonValue();
|
||||||
const newValue = clipboardContent2;
|
const newValue = clipboardContent2;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue