From ba1d4b24e3b97eb50b977dc212adbb2aa439b705 Mon Sep 17 00:00:00 2001 From: brysonjbest <103070659+brysonjbest@users.noreply.github.com> Date: Tue, 1 Oct 2024 16:38:23 -0700 Subject: [PATCH 1/4] Draft scenario generation of test cases. --- app/components/InputStyler/InputStyler.tsx | 1 - .../subcomponents/InputComponents.tsx | 8 +- .../RuleInputOutputFieldsComponent.tsx | 4 +- .../IsolationTester.module.css | 74 ++++++++++ .../IsolationTester/IsolationTester.tsx | 136 ++++++++++++++++++ .../ScenariosManager/IsolationTester/index.ts | 1 + .../ScenariosManager/ScenariosManager.tsx | 25 ++++ app/utils/api.ts | 40 +++++- app/utils/utils.ts | 13 ++ 9 files changed, 294 insertions(+), 8 deletions(-) create mode 100644 app/components/ScenariosManager/IsolationTester/IsolationTester.module.css create mode 100644 app/components/ScenariosManager/IsolationTester/IsolationTester.tsx create mode 100644 app/components/ScenariosManager/IsolationTester/index.ts diff --git a/app/components/InputStyler/InputStyler.tsx b/app/components/InputStyler/InputStyler.tsx index bc4d626..3541fe9 100644 --- a/app/components/InputStyler/InputStyler.tsx +++ b/app/components/InputStyler/InputStyler.tsx @@ -80,7 +80,6 @@ export default function InputStyler( ruleProperties: any ) { const updateFieldValue = (field: string, value: any) => { - console.log(field, value, "this is input change"); const updatedData = { ...rawData, [field]: value }; if (typeof setRawData === "function") { setRawData(updatedData); diff --git a/app/components/InputStyler/subcomponents/InputComponents.tsx b/app/components/InputStyler/subcomponents/InputComponents.tsx index f8e676b..3331a10 100644 --- a/app/components/InputStyler/subcomponents/InputComponents.tsx +++ b/app/components/InputStyler/subcomponents/InputComponents.tsx @@ -39,11 +39,11 @@ export const ChildFieldInput = ({ rawData, value, }: ChildFieldInputProps) => ( -