From 694fa549dd2a21a3c0bcc65a5278c91cd9bdcc01 Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Wed, 26 Jun 2024 20:58:21 -0300 Subject: [PATCH] fix tests on CI --- .../components/NewFlowCardComponent/index.tsx | 4 -- .../components/undrawCards/index.tsx | 4 -- .../end-to-end}/actionsMainPage.spec.ts | 0 .../end-to-end}/auto_login.spec.ts | 0 .../end-to-end}/chatInputOutput.spec.ts | 0 .../end-to-end}/chatInputOutputUser.spec.ts | 0 .../codeAreaModalComponent.spec.ts | 0 .../end-to-end}/curl_api_generation.spec.ts | 0 .../end-to-end}/deleteComponentFlows.spec.ts | 0 .../end-to-end}/dragAndDrop.spec.ts | 0 .../end-to-end}/dropdownComponent.spec.ts | 0 .../end-to-end}/fileUploadComponent.spec.ts | 0 .../end-to-end}/filterEdge.spec.ts | 0 .../end-to-end}/floatComponent.spec.ts | 0 .../end-to-end}/flowPage.spec.ts | 0 .../end-to-end}/flowSettings.spec.ts | 0 .../{src => tests/end-to-end}/folders.spec.ts | 0 .../end-to-end}/generalBugs.spec.ts | 0 .../end-to-end}/globalVariables.spec.ts | 0 .../{src => tests/end-to-end}/group.spec.ts | 0 .../end-to-end}/inputComponent.spec.ts | 0 .../end-to-end}/inputListComponent.spec.ts | 0 .../end-to-end}/intComponent.spec.ts | 0 .../end-to-end}/keyPairListComponent.spec.ts | 0 .../end-to-end}/langflowShortcuts.spec.ts | 0 .../end-to-end}/nestedComponent.spec.ts | 0 .../end-to-end}/promptModalComponent.spec.ts | 0 .../end-to-end}/python_api_generation.spec.ts | 0 .../end-to-end}/saveComponents.spec.ts | 0 .../textAreaModalComponent.spec.ts | 0 .../end-to-end}/textInputOutput.spec.ts | 0 .../end-to-end}/toggleComponent.spec.ts | 0 .../end-to-end}/tweaks_test.spec.ts | 0 .../end-to-end}/twoEdges.spec.ts | 0 .../end-to-end}/userSettings.spec.ts | 0 src/frontend/tsconfig.json | 37 ++++++++++++++++++- 36 files changed, 36 insertions(+), 9 deletions(-) rename src/frontend/{src => tests/end-to-end}/actionsMainPage.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/auto_login.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/chatInputOutput.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/chatInputOutputUser.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/codeAreaModalComponent.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/curl_api_generation.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/deleteComponentFlows.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/dragAndDrop.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/dropdownComponent.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/fileUploadComponent.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/filterEdge.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/floatComponent.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/flowPage.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/flowSettings.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/folders.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/generalBugs.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/globalVariables.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/group.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/inputComponent.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/inputListComponent.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/intComponent.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/keyPairListComponent.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/langflowShortcuts.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/nestedComponent.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/promptModalComponent.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/python_api_generation.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/saveComponents.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/textAreaModalComponent.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/textInputOutput.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/toggleComponent.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/tweaks_test.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/twoEdges.spec.ts (100%) rename src/frontend/{src => tests/end-to-end}/userSettings.spec.ts (100%) diff --git a/src/frontend/src/modals/newFlowModal/components/NewFlowCardComponent/index.tsx b/src/frontend/src/modals/newFlowModal/components/NewFlowCardComponent/index.tsx index 10af19757..5d4a60385 100644 --- a/src/frontend/src/modals/newFlowModal/components/NewFlowCardComponent/index.tsx +++ b/src/frontend/src/modals/newFlowModal/components/NewFlowCardComponent/index.tsx @@ -18,11 +18,7 @@ export default function NewFlowCardComponent() { return ( { - console.error("flow.data", "new flow"); - console.error("flow.data", "new flow"); addFlow(true).then((id) => { - console.error("flow.data", id); - console.error("flow.data", id); setFolderUrl(folderId ?? ""); navigate(`/flow/${id}${folderId ? `/folder/${folderId}` : ""}`); }); diff --git a/src/frontend/src/modals/newFlowModal/components/undrawCards/index.tsx b/src/frontend/src/modals/newFlowModal/components/undrawCards/index.tsx index 33e8c8431..d872fabe3 100644 --- a/src/frontend/src/modals/newFlowModal/components/undrawCards/index.tsx +++ b/src/frontend/src/modals/newFlowModal/components/undrawCards/index.tsx @@ -105,12 +105,8 @@ export default function UndrawCardComponent({ return ( { - console.error("flow.data", flow.data); - console.error("flow.data", flow); - updateIds(flow.data!); addFlow(true, flow).then((id) => { - console.error("flow.data", flow); setFolderUrl(folderId ?? ""); navigate(`/flow/${id}${folderId ? `/folder/${folderId}` : ""}`); }); diff --git a/src/frontend/src/actionsMainPage.spec.ts b/src/frontend/tests/end-to-end/actionsMainPage.spec.ts similarity index 100% rename from src/frontend/src/actionsMainPage.spec.ts rename to src/frontend/tests/end-to-end/actionsMainPage.spec.ts diff --git a/src/frontend/src/auto_login.spec.ts b/src/frontend/tests/end-to-end/auto_login.spec.ts similarity index 100% rename from src/frontend/src/auto_login.spec.ts rename to src/frontend/tests/end-to-end/auto_login.spec.ts diff --git a/src/frontend/src/chatInputOutput.spec.ts b/src/frontend/tests/end-to-end/chatInputOutput.spec.ts similarity index 100% rename from src/frontend/src/chatInputOutput.spec.ts rename to src/frontend/tests/end-to-end/chatInputOutput.spec.ts diff --git a/src/frontend/src/chatInputOutputUser.spec.ts b/src/frontend/tests/end-to-end/chatInputOutputUser.spec.ts similarity index 100% rename from src/frontend/src/chatInputOutputUser.spec.ts rename to src/frontend/tests/end-to-end/chatInputOutputUser.spec.ts diff --git a/src/frontend/src/codeAreaModalComponent.spec.ts b/src/frontend/tests/end-to-end/codeAreaModalComponent.spec.ts similarity index 100% rename from src/frontend/src/codeAreaModalComponent.spec.ts rename to src/frontend/tests/end-to-end/codeAreaModalComponent.spec.ts diff --git a/src/frontend/src/curl_api_generation.spec.ts b/src/frontend/tests/end-to-end/curl_api_generation.spec.ts similarity index 100% rename from src/frontend/src/curl_api_generation.spec.ts rename to src/frontend/tests/end-to-end/curl_api_generation.spec.ts diff --git a/src/frontend/src/deleteComponentFlows.spec.ts b/src/frontend/tests/end-to-end/deleteComponentFlows.spec.ts similarity index 100% rename from src/frontend/src/deleteComponentFlows.spec.ts rename to src/frontend/tests/end-to-end/deleteComponentFlows.spec.ts diff --git a/src/frontend/src/dragAndDrop.spec.ts b/src/frontend/tests/end-to-end/dragAndDrop.spec.ts similarity index 100% rename from src/frontend/src/dragAndDrop.spec.ts rename to src/frontend/tests/end-to-end/dragAndDrop.spec.ts diff --git a/src/frontend/src/dropdownComponent.spec.ts b/src/frontend/tests/end-to-end/dropdownComponent.spec.ts similarity index 100% rename from src/frontend/src/dropdownComponent.spec.ts rename to src/frontend/tests/end-to-end/dropdownComponent.spec.ts diff --git a/src/frontend/src/fileUploadComponent.spec.ts b/src/frontend/tests/end-to-end/fileUploadComponent.spec.ts similarity index 100% rename from src/frontend/src/fileUploadComponent.spec.ts rename to src/frontend/tests/end-to-end/fileUploadComponent.spec.ts diff --git a/src/frontend/src/filterEdge.spec.ts b/src/frontend/tests/end-to-end/filterEdge.spec.ts similarity index 100% rename from src/frontend/src/filterEdge.spec.ts rename to src/frontend/tests/end-to-end/filterEdge.spec.ts diff --git a/src/frontend/src/floatComponent.spec.ts b/src/frontend/tests/end-to-end/floatComponent.spec.ts similarity index 100% rename from src/frontend/src/floatComponent.spec.ts rename to src/frontend/tests/end-to-end/floatComponent.spec.ts diff --git a/src/frontend/src/flowPage.spec.ts b/src/frontend/tests/end-to-end/flowPage.spec.ts similarity index 100% rename from src/frontend/src/flowPage.spec.ts rename to src/frontend/tests/end-to-end/flowPage.spec.ts diff --git a/src/frontend/src/flowSettings.spec.ts b/src/frontend/tests/end-to-end/flowSettings.spec.ts similarity index 100% rename from src/frontend/src/flowSettings.spec.ts rename to src/frontend/tests/end-to-end/flowSettings.spec.ts diff --git a/src/frontend/src/folders.spec.ts b/src/frontend/tests/end-to-end/folders.spec.ts similarity index 100% rename from src/frontend/src/folders.spec.ts rename to src/frontend/tests/end-to-end/folders.spec.ts diff --git a/src/frontend/src/generalBugs.spec.ts b/src/frontend/tests/end-to-end/generalBugs.spec.ts similarity index 100% rename from src/frontend/src/generalBugs.spec.ts rename to src/frontend/tests/end-to-end/generalBugs.spec.ts diff --git a/src/frontend/src/globalVariables.spec.ts b/src/frontend/tests/end-to-end/globalVariables.spec.ts similarity index 100% rename from src/frontend/src/globalVariables.spec.ts rename to src/frontend/tests/end-to-end/globalVariables.spec.ts diff --git a/src/frontend/src/group.spec.ts b/src/frontend/tests/end-to-end/group.spec.ts similarity index 100% rename from src/frontend/src/group.spec.ts rename to src/frontend/tests/end-to-end/group.spec.ts diff --git a/src/frontend/src/inputComponent.spec.ts b/src/frontend/tests/end-to-end/inputComponent.spec.ts similarity index 100% rename from src/frontend/src/inputComponent.spec.ts rename to src/frontend/tests/end-to-end/inputComponent.spec.ts diff --git a/src/frontend/src/inputListComponent.spec.ts b/src/frontend/tests/end-to-end/inputListComponent.spec.ts similarity index 100% rename from src/frontend/src/inputListComponent.spec.ts rename to src/frontend/tests/end-to-end/inputListComponent.spec.ts diff --git a/src/frontend/src/intComponent.spec.ts b/src/frontend/tests/end-to-end/intComponent.spec.ts similarity index 100% rename from src/frontend/src/intComponent.spec.ts rename to src/frontend/tests/end-to-end/intComponent.spec.ts diff --git a/src/frontend/src/keyPairListComponent.spec.ts b/src/frontend/tests/end-to-end/keyPairListComponent.spec.ts similarity index 100% rename from src/frontend/src/keyPairListComponent.spec.ts rename to src/frontend/tests/end-to-end/keyPairListComponent.spec.ts diff --git a/src/frontend/src/langflowShortcuts.spec.ts b/src/frontend/tests/end-to-end/langflowShortcuts.spec.ts similarity index 100% rename from src/frontend/src/langflowShortcuts.spec.ts rename to src/frontend/tests/end-to-end/langflowShortcuts.spec.ts diff --git a/src/frontend/src/nestedComponent.spec.ts b/src/frontend/tests/end-to-end/nestedComponent.spec.ts similarity index 100% rename from src/frontend/src/nestedComponent.spec.ts rename to src/frontend/tests/end-to-end/nestedComponent.spec.ts diff --git a/src/frontend/src/promptModalComponent.spec.ts b/src/frontend/tests/end-to-end/promptModalComponent.spec.ts similarity index 100% rename from src/frontend/src/promptModalComponent.spec.ts rename to src/frontend/tests/end-to-end/promptModalComponent.spec.ts diff --git a/src/frontend/src/python_api_generation.spec.ts b/src/frontend/tests/end-to-end/python_api_generation.spec.ts similarity index 100% rename from src/frontend/src/python_api_generation.spec.ts rename to src/frontend/tests/end-to-end/python_api_generation.spec.ts diff --git a/src/frontend/src/saveComponents.spec.ts b/src/frontend/tests/end-to-end/saveComponents.spec.ts similarity index 100% rename from src/frontend/src/saveComponents.spec.ts rename to src/frontend/tests/end-to-end/saveComponents.spec.ts diff --git a/src/frontend/src/textAreaModalComponent.spec.ts b/src/frontend/tests/end-to-end/textAreaModalComponent.spec.ts similarity index 100% rename from src/frontend/src/textAreaModalComponent.spec.ts rename to src/frontend/tests/end-to-end/textAreaModalComponent.spec.ts diff --git a/src/frontend/src/textInputOutput.spec.ts b/src/frontend/tests/end-to-end/textInputOutput.spec.ts similarity index 100% rename from src/frontend/src/textInputOutput.spec.ts rename to src/frontend/tests/end-to-end/textInputOutput.spec.ts diff --git a/src/frontend/src/toggleComponent.spec.ts b/src/frontend/tests/end-to-end/toggleComponent.spec.ts similarity index 100% rename from src/frontend/src/toggleComponent.spec.ts rename to src/frontend/tests/end-to-end/toggleComponent.spec.ts diff --git a/src/frontend/src/tweaks_test.spec.ts b/src/frontend/tests/end-to-end/tweaks_test.spec.ts similarity index 100% rename from src/frontend/src/tweaks_test.spec.ts rename to src/frontend/tests/end-to-end/tweaks_test.spec.ts diff --git a/src/frontend/src/twoEdges.spec.ts b/src/frontend/tests/end-to-end/twoEdges.spec.ts similarity index 100% rename from src/frontend/src/twoEdges.spec.ts rename to src/frontend/tests/end-to-end/twoEdges.spec.ts diff --git a/src/frontend/src/userSettings.spec.ts b/src/frontend/tests/end-to-end/userSettings.spec.ts similarity index 100% rename from src/frontend/src/userSettings.spec.ts rename to src/frontend/tests/end-to-end/userSettings.spec.ts diff --git a/src/frontend/tsconfig.json b/src/frontend/tsconfig.json index 1879137c5..e95080e08 100644 --- a/src/frontend/tsconfig.json +++ b/src/frontend/tsconfig.json @@ -17,5 +17,40 @@ "jsx": "react-jsx", "noImplicitAny": false }, - "include": ["src"] + "include": [ + "src", + "tests/end-to-end/saveComponents.spec.ts", + "tests/end-to-end/actionsMainPage.spec.ts", + "tests/end-to-end/auto_login.spec.ts", + "tests/end-to-end/chatInputOutput.spec.ts", + "tests/end-to-end/chatInputOutputUser.spec.ts", + "tests/end-to-end/codeAreaModalComponent.spec.ts", + "tests/end-to-end/curl_api_generation.spec.ts", + "tests/end-to-end/deleteComponentFlows.spec.ts", + "tests/end-to-end/dragAndDrop.spec.ts", + "tests/end-to-end/dropdownComponent.spec.ts", + "tests/end-to-end/fileUploadComponent.spec.ts", + "tests/end-to-end/filterEdge.spec.ts", + "tests/end-to-end/floatComponent.spec.ts", + "tests/end-to-end/flowPage.spec.ts", + "tests/end-to-end/flowSettings.spec.ts", + "tests/end-to-end/generalBugs.spec.ts", + "tests/end-to-end/globalVariables.spec.ts", + "tests/end-to-end/group.spec.ts", + "tests/end-to-end/folders.spec.ts", + "tests/end-to-end/inputComponent.spec.ts", + "tests/end-to-end/inputListComponent.spec.ts", + "tests/end-to-end/intComponent.spec.ts", + "tests/end-to-end/keyPairListComponent.spec.ts", + "tests/end-to-end/langflowShortcuts.spec.ts", + "tests/end-to-end/nestedComponent.spec.ts", + "tests/end-to-end/promptModalComponent.spec.ts", + "tests/end-to-end/python_api_generation.spec.ts", + "tests/end-to-end/textAreaModalComponent.spec.ts", + "tests/end-to-end/textInputOutput.spec.ts", + "tests/end-to-end/toggleComponent.spec.ts", + "tests/end-to-end/tweaks_test.spec.ts", + "tests/end-to-end/twoEdges.spec.ts", + "tests/end-to-end/userSettings.spec.ts" + ] }