mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +00:00
fix: Hide cred setup button from canvas (no-changelog) (#8255)
This commit is contained in:
@@ -609,6 +609,25 @@ describe('PATCH /workflows/:id', () => {
|
||||
expect(versionId).toBe(workflow.versionId);
|
||||
expect(active).toBe(false);
|
||||
});
|
||||
|
||||
test('should update workflow meta', async () => {
|
||||
const workflow = await createWorkflow({}, owner);
|
||||
const payload = {
|
||||
...workflow,
|
||||
meta: {
|
||||
templateCredsSetupCompleted: true,
|
||||
},
|
||||
};
|
||||
|
||||
const response = await authOwnerAgent.patch(`/workflows/${workflow.id}`).send(payload);
|
||||
|
||||
const { data: updatedWorkflow } = response.body;
|
||||
|
||||
expect(response.statusCode).toBe(200);
|
||||
|
||||
expect(updatedWorkflow.id).toBe(workflow.id);
|
||||
expect(updatedWorkflow.meta).toEqual(payload.meta);
|
||||
});
|
||||
});
|
||||
|
||||
describe('POST /workflows/run', () => {
|
||||
|
||||
Reference in New Issue
Block a user