Skip to content

Commit 0e9667f

Browse files
committed
fix failing tests
1 parent bd13678 commit 0e9667f

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

packages/backend/src/graphql/__tests__/mutations/create-flow-with-steps.itest.ts

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ describe('createFlowWithSteps mutation integration tests', () => {
5353
config: {},
5454
},
5555
],
56+
traceId: '123',
5657
},
5758
}
5859

@@ -61,7 +62,10 @@ describe('createFlowWithSteps mutation integration tests', () => {
6162
// Verify flow was created
6263
expect(result).toBeDefined()
6364
expect(result.name).toBe('My Test Flow')
64-
expect(result.config).toEqual({ aiBuilder: true })
65+
expect(result.config).toEqual({
66+
aiBuilder: true,
67+
aiBuilderTraceId: '123',
68+
})
6569
expect(result.userId).toBe(testUser.id)
6670

6771
// Verify steps were created and inserted correctly
@@ -103,6 +107,7 @@ describe('createFlowWithSteps mutation integration tests', () => {
103107
config: {},
104108
},
105109
],
110+
traceId: '123',
106111
},
107112
}
108113

@@ -129,6 +134,7 @@ describe('createFlowWithSteps mutation integration tests', () => {
129134
position: 2,
130135
},
131136
],
137+
traceId: '123',
132138
},
133139
}
134140

@@ -175,6 +181,7 @@ describe('createFlowWithSteps mutation integration tests', () => {
175181
config: {},
176182
},
177183
],
184+
traceId: '123',
178185
},
179186
}
180187

@@ -205,6 +212,7 @@ describe('createFlowWithSteps mutation integration tests', () => {
205212
config: {},
206213
},
207214
],
215+
traceId: '123',
208216
},
209217
}
210218

@@ -230,6 +238,7 @@ describe('createFlowWithSteps mutation integration tests', () => {
230238
config: {},
231239
},
232240
],
241+
traceId: '123',
233242
},
234243
}
235244

@@ -264,6 +273,7 @@ describe('createFlowWithSteps mutation integration tests', () => {
264273
config: {},
265274
},
266275
],
276+
traceId: '123',
267277
},
268278
}
269279

@@ -303,6 +313,7 @@ describe('createFlowWithSteps mutation integration tests', () => {
303313
config: {},
304314
},
305315
],
316+
traceId: '123',
306317
},
307318
}
308319

@@ -335,6 +346,7 @@ describe('createFlowWithSteps mutation integration tests', () => {
335346
config: {},
336347
},
337348
],
349+
traceId: '123',
338350
},
339351
}
340352

@@ -369,6 +381,7 @@ describe('createFlowWithSteps mutation integration tests', () => {
369381
config: {},
370382
},
371383
],
384+
traceId: '123',
372385
},
373386
}
374387

@@ -401,6 +414,7 @@ describe('createFlowWithSteps mutation integration tests', () => {
401414
config: {},
402415
},
403416
],
417+
traceId: '123',
404418
},
405419
}
406420

@@ -441,6 +455,7 @@ describe('createFlowWithSteps mutation integration tests', () => {
441455
config: {},
442456
},
443457
],
458+
traceId: '123',
444459
},
445460
}
446461

@@ -508,6 +523,7 @@ describe('createFlowWithSteps mutation integration tests', () => {
508523
},
509524
},
510525
],
526+
traceId: '123',
511527
},
512528
}
513529

@@ -551,6 +567,7 @@ describe('createFlowWithSteps mutation integration tests', () => {
551567
},
552568
},
553569
],
570+
traceId: '123',
554571
},
555572
}
556573

@@ -586,6 +603,7 @@ describe('createFlowWithSteps mutation integration tests', () => {
586603
},
587604
},
588605
],
606+
traceId: '123',
589607
},
590608
}
591609

@@ -618,6 +636,7 @@ describe('createFlowWithSteps mutation integration tests', () => {
618636
// missing parameters entirely
619637
},
620638
],
639+
traceId: '123',
621640
},
622641
}
623642

@@ -650,6 +669,7 @@ describe('createFlowWithSteps mutation integration tests', () => {
650669
parameters: {},
651670
},
652671
],
672+
traceId: '123',
653673
},
654674
}
655675

0 commit comments

Comments
 (0)