From eb0a70f6464f865a880c6ececf9076285f195177 Mon Sep 17 00:00:00 2001 From: Cristhian Zanforlin Lousa <72977554+Cristhianzl@users.noreply.github.com> Date: Fri, 12 Jul 2024 14:14:38 -0300 Subject: [PATCH] fix: adjust function that add incremental name on flows that already exists + tests (#2645) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🐛 (reactflowUtils.ts): fix addVersionToDuplicates to exclude the updated flow from existing names to prevent naming conflicts * ✅ (menuBar): add data-testid to flow configuration button for testing ✅ (sideBarFolderButtons): add data-testid to delete folder button for testing ✅ (folders.spec.ts): update test to use new data-testid for delete folder button ✅ (generalBugs-shard-4.spec.ts): add new end-to-end test for flow operations --------- Co-authored-by: anovazzi1 --- .../components/menuBar/index.tsx | 7 +- .../components/sideBarFolderButtons/index.tsx | 1 + src/frontend/src/utils/reactflowUtils.ts | 4 +- src/frontend/tests/end-to-end/folders.spec.ts | 2 +- .../end-to-end/generalBugs-shard-4.spec.ts | 125 ++++++++++++++++++ 5 files changed, 136 insertions(+), 3 deletions(-) create mode 100644 src/frontend/tests/end-to-end/generalBugs-shard-4.spec.ts diff --git a/src/frontend/src/components/headerComponent/components/menuBar/index.tsx b/src/frontend/src/components/headerComponent/components/menuBar/index.tsx index ba3b0e9ad..a6e6c30d8 100644 --- a/src/frontend/src/components/headerComponent/components/menuBar/index.tsx +++ b/src/frontend/src/components/headerComponent/components/menuBar/index.tsx @@ -75,7 +75,12 @@ export const MenuBar = ({}: {}): JSX.Element => {
-