refactor: Add steps to get execution tests

This commit is contained in:
Faruk AYDIN
2024-03-04 16:12:02 +01:00
parent 172bf4bd51
commit 1cb48c7760
2 changed files with 37 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
const getExecutionMock = async (execution, flow) => {
const getExecutionMock = async (execution, flow, steps) => {
const data = {
id: execution.id,
testRun: execution.testRun,
@@ -9,6 +9,17 @@ const getExecutionMock = async (execution, flow) => {
name: flow.name,
active: flow.active,
status: flow.active ? 'published' : 'draft',
steps: steps.map((step) => ({
id: step.id,
type: step.type,
key: step.key,
appKey: step.appKey,
iconUrl: step.iconUrl,
webhookUrl: step.webhookUrl,
status: step.status,
position: step.position,
parameters: step.parameters,
})),
},
};