From 742f93e229d1a51e4ad64f2fb3b87b84c9bf636f Mon Sep 17 00:00:00 2001 From: cristhianzl Date: Tue, 11 Jun 2024 15:46:59 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A1=20(index.tsx):=20remove=20trailing?= =?UTF-8?q?=20commas=20for=20cleaner=20code=20formatting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ (tests): remove unnecessary keyboard press and fix formatting in chatInputOutputUser.spec.ts ✅ (tests): update selector for copy button in curl_api_generation.spec.ts ✅ (tests): fix formatting in intComponent.spec.ts ✅ (tests): update end-to-end tests for improved stability and clarity - Remove redundant "Close" button clicks in logs and textInputOutput tests - Add "more-options-modal" click in promptModalComponent and saveComponents tests - Replace role-based selectors with test ID selectors for "Copy Code" button - Update API key section text in userSettings test for consistency --- .../components/codeTabsComponent/index.tsx | 42 +++++++++---------- .../components/nodeToolbarComponent/index.tsx | 40 +++++++++--------- .../end-to-end/chatInputOutputUser.spec.ts | 14 ++----- .../end-to-end/curl_api_generation.spec.ts | 4 +- .../tests/end-to-end/intComponent.spec.ts | 38 ++++++++--------- src/frontend/tests/end-to-end/logs.spec.ts | 2 - .../end-to-end/promptModalComponent.spec.ts | 6 ++- .../end-to-end/python_api_generation.spec.ts | 4 +- .../tests/end-to-end/saveComponents.spec.ts | 6 ++- .../tests/end-to-end/textInputOutput.spec.ts | 10 ++--- .../tests/end-to-end/tweaks_test.spec.ts | 8 ++-- .../tests/end-to-end/userSettings.spec.ts | 4 +- 12 files changed, 87 insertions(+), 91 deletions(-) diff --git a/src/frontend/src/components/codeTabsComponent/index.tsx b/src/frontend/src/components/codeTabsComponent/index.tsx index 0611de7cc..885de6442 100644 --- a/src/frontend/src/components/codeTabsComponent/index.tsx +++ b/src/frontend/src/components/codeTabsComponent/index.tsx @@ -138,7 +138,7 @@ export default function CodeTabsComponent({