@@ -322,6 +322,14 @@ describe("wrangler workflows", () => {
322322 } ,
323323 versionId : "14707576-2549-4848-82ed-f68f8a1b47c7" ,
324324 steps : [
325+ {
326+ type : "waitForEvent" ,
327+ end : "2021-01-01T00:00:00Z" ,
328+ name : "event" ,
329+ finished : true ,
330+ output : { } ,
331+ start : "2021-01-01T00:00:00Z" ,
332+ } ,
325333 {
326334 attempts : [
327335 {
@@ -374,11 +382,24 @@ describe("wrangler workflows", () => {
374382
375383 await runWrangler ( `workflows instances describe some-workflow bar` ) ;
376384 expect ( std . out ) . toMatchInlineSnapshot ( `
377- "┌───────────────────────┬───────────────────────┬───────────┬────────────┬────────────────┐
378- │ Start │ End │ Duration │ State │ Error │
379- ├───────────────────────┼───────────────────────┼───────────┼────────────┼────────────────┤
380- │ 1/1/2021, 12:00:00 AM │ 1/1/2021, 12:00:00 AM │ 0 seconds │ ✅ Success │ string: string │
381- └───────────────────────┴───────────────────────┴───────────┴────────────┴────────────────┘"
385+ " Name: event
386+ Type: 👀 Waiting for event
387+ Start: 1/1/2021, 12:00:00 AM
388+ End: 1/1/2021, 12:00:00 AM
389+ Duration: 0 seconds
390+ Output: {}
391+ Name: string
392+ Type: 🎯 Step
393+ Start: 1/1/2021, 12:00:00 AM
394+ End: 1/1/2021, 12:00:00 AM
395+ Duration: 0 seconds
396+ Success: ✅ Yes
397+ Output: {}
398+ ┌───────────────────────┬───────────────────────┬───────────┬────────────┬────────────────┐
399+ │ Start │ End │ Duration │ State │ Error │
400+ ├───────────────────────┼───────────────────────┼───────────┼────────────┼────────────────┤
401+ │ 1/1/2021, 12:00:00 AM │ 1/1/2021, 12:00:00 AM │ 0 seconds │ ✅ Success │ string: string │
402+ └───────────────────────┴───────────────────────┴───────────┴────────────┴────────────────┘"
382403 ` ) ;
383404 } ) ;
384405 } ) ;
0 commit comments