1
0
Fork 0
mirror of synced 2024-09-20 19:33:10 +12:00

Check automation creation

This commit is contained in:
Adria Navarro 2024-07-19 10:58:09 +02:00
parent eaa38c5c2d
commit 292c87350a

View file

@ -233,6 +233,17 @@ describe("/rowsActions", () => {
await createRowAction(otherTable._id!, { name: action.name }) await createRowAction(otherTable._id!, { name: action.name })
}) })
it("an automation is created when creating a new row action", async () => {
const action1 = await createRowAction(tableId, createRowActionRequest())
const action2 = await createRowAction(tableId, createRowActionRequest())
for (const automationId of [action1.automationId, action2.automationId]) {
expect(
await config.api.automation.get(automationId, { status: 200 })
).toEqual(expect.objectContaining({ _id: automationId }))
}
})
}) })
describe("find", () => { describe("find", () => {