test: add simple webhook flow test

This commit is contained in:
Jakub P.
2024-08-20 19:17:08 +02:00
parent 98e4b843ea
commit 2c21b7762c
6 changed files with 149 additions and 7 deletions

View File

@@ -41,6 +41,7 @@ function EditableTypography(props) {
if (editing) {
component = (
<TextField
data-test="editableTypographyInput"
onClick={handleTextFieldClick}
onKeyDown={handleTextFieldKeyDown}
onBlur={handleTextFieldBlur}

View File

@@ -101,6 +101,7 @@ export default function EditorLayout() {
{!isFlowLoading && (
<EditableTypography
data-test="editableTypography"
variant="body1"
onConfirm={onFlowNameUpdate}
noWrap

View File

@@ -118,7 +118,7 @@ function TestSubstep(props) {
)}
{hasNoOutput && (
<Alert severity="warning" sx={{ mb: 1, width: '100%' }}>
<Alert data-test="flow-test-substep-no-output" severity="warning" sx={{ mb: 1, width: '100%' }}>
<AlertTitle sx={{ fontWeight: 700 }}>
{formatMessage('flowEditor.noTestDataTitle')}
</AlertTitle>