2
0

chore(bubbles): Add e2e tests

This commit is contained in:
Baptiste Arnaud
2022-01-07 07:33:01 +01:00
parent 6fe27bd8ea
commit 2a040308db
6 changed files with 107 additions and 18 deletions

View File

@ -83,5 +83,5 @@ const blockContainsInput = (
stepIsInput(typebot.steps.byId[stepId])
)
const stepIsInput = (step: Step): step is InputStep =>
export const stepIsInput = (step: Step): step is InputStep =>
step.type === StepType.TEXT_INPUT

View File

@ -211,3 +211,6 @@ export const parseNewTypebot = ({
settings,
}
}
export const isStepText = (step: Step): step is TextStep =>
step.type === StepType.TEXT