fix loop not counting as step, test case failing

This commit is contained in:
Naveen Kumar 2024-11-29 16:52:55 +05:30
parent bc12ecd7c1
commit a6022c11a5
1 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ describe("Loop automations", () => {
.serverLog({ text: "{{steps.1.iterations}}" }) .serverLog({ text: "{{steps.1.iterations}}" })
.run() .run()
expect(results.steps[1].outputs.iterations).toBe(2) expect(results.steps[0].outputs.iterations).toBe(2)
}) })
it("should run an automation with loop and max iterations to ensure context correctness further down the tree", async () => { it("should run an automation with loop and max iterations to ensure context correctness further down the tree", async () => {
@ -187,7 +187,7 @@ describe("Loop automations", () => {
.serverLog({ text: "{{steps.1.iterations}}" }) .serverLog({ text: "{{steps.1.iterations}}" })
.run() .run()
expect(results.steps[2].outputs.message).toContain("- 2") expect(results.steps[1].outputs.message).toContain("- 2")
}) })
it("should run an automation where a loop is successfully run twice", async () => { it("should run an automation where a loop is successfully run twice", async () => {