diff --git a/packages/server/src/sdk/app/automations/tests/index.spec.ts b/packages/server/src/sdk/app/automations/tests/index.spec.ts index bf4c886cf0..6c70392300 100644 --- a/packages/server/src/sdk/app/automations/tests/index.spec.ts +++ b/packages/server/src/sdk/app/automations/tests/index.spec.ts @@ -1,5 +1,5 @@ import { sample } from "lodash/fp" -import { Automation, AutomationTriggerStepId } from "@budibase/types" +import { Automation } from "@budibase/types" import { generator } from "@budibase/backend-core/tests" import TestConfiguration from "../../../../tests/utilities/TestConfiguration" import automationSdk from "../" @@ -26,25 +26,6 @@ describe("automation sdk", () => { }) }) - it("cannot rename row action automations", async () => { - await config.doInContext(config.getAppId(), async () => { - const automation = structures.newAutomation({ - trigger: { - ...structures.automationTrigger(), - stepId: AutomationTriggerStepId.ROW_ACTION, - }, - }) - - const response = await automationSdk.create(automation) - - const newName = generator.guid() - const update = { ...response, name: newName } - await expect(automationSdk.update(update)).rejects.toThrow( - "Row actions cannot be renamed" - ) - }) - }) - it.each([ ["trigger", (a: Automation) => a.definition.trigger], ["step", (a: Automation) => a.definition.steps[0]],