From 2d6a1d193fccbe0ab257ff6b589927251f9922c5 Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Fri, 8 Mar 2024 18:05:19 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix(NewFlowCard2):=20add=20missi?= =?UTF-8?q?ng=20data-testid=20attribute=20to=20the=20NewFlowCardComponent?= =?UTF-8?q?=20to=20improve=20testability=20=F0=9F=94=A7=20fix(nodeToolbarC?= =?UTF-8?q?omponent):=20add=20missing=20data-testid=20attribute=20to=20the?= =?UTF-8?q?=20save=20button=20to=20improve=20testability=20=F0=9F=94=A7=20?= =?UTF-8?q?fix(nodeToolbarComponent):=20add=20missing=20data-testid=20attr?= =?UTF-8?q?ibute=20to=20the=20edit=20button=20to=20improve=20testability?= =?UTF-8?q?=20=F0=9F=94=A7=20fix(nodeToolbarComponent):=20add=20missing=20?= =?UTF-8?q?data-testid=20attribute=20to=20the=20duplicate=20button=20to=20?= =?UTF-8?q?improve=20testability=20=F0=9F=94=A7=20fix(codeAreaModalCompone?= =?UTF-8?q?nt.spec):=20add=20click=20on=20the=20blank-flow=20element=20bef?= =?UTF-8?q?ore=20performing=20other=20actions=20to=20ensure=20proper=20tes?= =?UTF-8?q?t=20setup=20=F0=9F=94=A7=20fix(dropdownComponent.spec):=20add?= =?UTF-8?q?=20click=20on=20the=20blank-flow=20element=20before=20performin?= =?UTF-8?q?g=20other=20actions=20to=20ensure=20proper=20test=20setup=20?= =?UTF-8?q?=F0=9F=94=A7=20fix(floatComponent.spec):=20add=20click=20on=20t?= =?UTF-8?q?he=20blank-flow=20element=20before=20performing=20other=20actio?= =?UTF-8?q?ns=20to=20ensure=20proper=20test=20setup=20=F0=9F=94=A7=20fix(f?= =?UTF-8?q?lowPage.spec):=20add=20click=20on=20the=20blank-flow=20element?= =?UTF-8?q?=20before=20performing=20other=20actions=20to=20ensure=20proper?= =?UTF-8?q?=20test=20setup=20=F0=9F=94=A7=20fix(group.spec):=20add=20click?= =?UTF-8?q?=20on=20the=20blank-flow=20element=20before=20performing=20othe?= =?UTF-8?q?r=20actions=20to=20ensure=20proper=20test=20setup=20?= =?UTF-8?q?=F0=9F=94=A7=20fix(inputComponent.spec):=20add=20click=20on=20t?= =?UTF-8?q?he=20blank-flow=20element=20before=20performing=20other=20actio?= =?UTF-8?q?ns=20to=20ensure=20proper=20test=20setup=20=F0=9F=94=A7=20fix(i?= =?UTF-8?q?ntComponent.spec):=20add=20click=20on=20the=20blank-flow=20elem?= =?UTF-8?q?ent=20before=20performing=20other=20actions=20to=20ensure=20pro?= =?UTF-8?q?per=20test=20setup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🐛 fix(keyPairListComponent.spec.ts): update key pair IDs and values to match test expectations ✨ feat(keyPairListComponent.spec.ts): add support for dynamic key pair creation and deletion 🔀 merge(langflowShortcuts.spec.ts): add end-to-end tests for langflow shortcuts 🔀 merge(nestedComponent.spec.ts): add end-to-end tests for nested components 🔀 merge(promptModalComponent.spec.ts): add end-to-end tests for prompt modal component 🔀 merge(saveComponents.spec.ts): add end-to-end tests for save components ✅ test(toggleComponent.spec.ts): add test case to simulate clicking on "blank-flow" element and waiting for 2 seconds 🐛 fix(toggleComponent.spec.ts): fix typo in test case, change "locator" to "waitForSelector" for better readability --- .../src/components/NewFLowCard2/index.tsx | 1 + .../components/nodeToolbarComponent/index.tsx | 5 +- .../end-to-end/codeAreaModalComponent.spec.ts | 3 + .../end-to-end/dropdownComponent.spec.ts | 3 + .../tests/end-to-end/floatComponent.spec.ts | 3 + .../tests/end-to-end/flowPage.spec.ts | 5 +- src/frontend/tests/end-to-end/group.spec.ts | 4 + .../tests/end-to-end/inputComponent.spec.ts | 3 + .../tests/end-to-end/intComponent.spec.ts | 5 +- .../end-to-end/keyPairListComponent.spec.ts | 66 +++------------- .../end-to-end/langflowShortcuts.spec.ts | 78 +++++++++++++++++++ .../tests/end-to-end/nestedComponent.spec.ts | 3 + .../end-to-end/promptModalComponent.spec.ts | 6 +- .../tests/end-to-end/saveComponents.spec.ts | 3 + .../tests/end-to-end/toggleComponent.spec.ts | 3 + 15 files changed, 129 insertions(+), 62 deletions(-) create mode 100644 src/frontend/tests/end-to-end/langflowShortcuts.spec.ts diff --git a/src/frontend/src/components/NewFLowCard2/index.tsx b/src/frontend/src/components/NewFLowCard2/index.tsx index 7f364cfef..fb472207e 100644 --- a/src/frontend/src/components/NewFLowCard2/index.tsx +++ b/src/frontend/src/components/NewFLowCard2/index.tsx @@ -13,6 +13,7 @@ export default function NewFlowCardComponent() { }); }} className="h-64 w-80 cursor-pointer bg-background pt-4" + data-testid="blank-flow" >
diff --git a/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx b/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx index 39f5f6660..394d5393e 100644 --- a/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx +++ b/src/frontend/src/pages/FlowPage/components/nodeToolbarComponent/index.tsx @@ -343,6 +343,7 @@ export default function NodeToolbarComponent({