diff --git a/packages/web/src/components/TestSubstep/index.tsx b/packages/web/src/components/TestSubstep/index.tsx index ea65a20a..345acaff 100644 --- a/packages/web/src/components/TestSubstep/index.tsx +++ b/packages/web/src/components/TestSubstep/index.tsx @@ -3,6 +3,7 @@ import { useMutation } from '@apollo/client'; import Box from '@mui/material/Box'; import Collapse from '@mui/material/Collapse'; import ListItem from '@mui/material/ListItem'; +import Alert from '@mui/material/Alert'; import Button from '@mui/material/Button'; import JSONViewer from 'components/JSONViewer'; @@ -30,8 +31,7 @@ function TestSubstep(props: TestSubstepProps): React.ReactElement { step, } = props; - const [executeFlow, { data }] = useMutation(EXECUTE_FLOW); - + const [executeFlow, { data, error }] = useMutation(EXECUTE_FLOW, { context: { autoSnackbar: false }}); const response = data?.executeFlow?.data; const { @@ -58,6 +58,9 @@ function TestSubstep(props: TestSubstepProps): React.ReactElement { /> + {error?.graphQLErrors?.length && + {error?.graphQLErrors.map((error) => (<>{error.message}
))} +
} {response && (