feat: show test runs in executions

This commit is contained in:
Ali BARIN
2022-09-01 18:45:30 +02:00
parent 92053ea25a
commit 0246d48584
10 changed files with 19 additions and 35 deletions

View File

@@ -43,7 +43,6 @@ function FlowSubstep(props: FlowSubstepProps): React.ReactElement {
expanded = false,
onExpand,
onCollapse,
onChange,
onSubmit,
step,
} = props;
@@ -57,24 +56,6 @@ function FlowSubstep(props: FlowSubstepProps): React.ReactElement {
const formContext = useFormContext();
const [validationStatus, setValidationStatus] = React.useState<boolean | null>(validateSubstep(substep, formContext.getValues() as IStep));
const handleChangeOnBlur = React.useCallback((key: string) => {
return (value: string) => {
const currentValue = step.parameters?.[key];
if (currentValue !== value) {
onChange({
step: {
...step,
parameters: {
...step.parameters,
[key]: value,
}
},
});
}
}
}, [step, onChange]);
React.useEffect(() => {
function validate (step: unknown) {
const validationResult = validateSubstep(substep, step as IStep);