pr comments
This commit is contained in:
parent
c89cebbece
commit
44702bbfb6
|
@ -299,9 +299,7 @@ describe("Loop automations", () => {
|
|||
{ name: "Row 3", value: 3, tableId: table._id },
|
||||
]
|
||||
|
||||
for (const row of rows) {
|
||||
await config.createRow(row)
|
||||
}
|
||||
await config.api.row.bulkImport(table._id!, { rows })
|
||||
|
||||
const builder = createAutomationBuilder({
|
||||
name: "Test Loop and Update Row",
|
||||
|
@ -385,9 +383,7 @@ describe("Loop automations", () => {
|
|||
{ name: "Row 3", value: 3, tableId: table._id },
|
||||
]
|
||||
|
||||
for (const row of rows) {
|
||||
await config.createRow(row)
|
||||
}
|
||||
await config.api.row.bulkImport(table._id!, { rows })
|
||||
|
||||
const builder = createAutomationBuilder({
|
||||
name: "Test Loop and Delete Row",
|
||||
|
|
|
@ -444,7 +444,9 @@ describe("Automation Scenarios", () => {
|
|||
},
|
||||
]
|
||||
|
||||
testCases.forEach(({ condition, value, rowValue, expectPass }) => {
|
||||
it.each(testCases)(
|
||||
"should pass the filter when condition is %s",
|
||||
async ({ condition, value, rowValue, expectPass }) => {
|
||||
it(`should ${
|
||||
expectPass ? "pass" : "fail"
|
||||
} the filter when condition is "${condition}" and value is ${value}`, async () => {
|
||||
|
@ -470,7 +472,9 @@ describe("Automation Scenarios", () => {
|
|||
value,
|
||||
})
|
||||
.serverLog({
|
||||
text: `${condition} condition ${expectPass ? "passed" : "failed"}`,
|
||||
text: `${condition} condition ${
|
||||
expectPass ? "passed" : "failed"
|
||||
}`,
|
||||
})
|
||||
.run()
|
||||
|
||||
|
@ -481,6 +485,7 @@ describe("Automation Scenarios", () => {
|
|||
expect(results.steps[3]).toBeUndefined()
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue