fix: Fix credential setup for templates with unnamed credentials (no-changelog) (#7891)
The template credentials were matched before solely based on the credential name on the template. This fixes the matching to use both credential type name and credential name.
This commit is contained in:
16
packages/editor-ui/src/utils/testData/templateTestData.ts
Normal file
16
packages/editor-ui/src/utils/testData/templateTestData.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||
import { faker } from '@faker-js/faker/locale/en';
|
||||
import type { IWorkflowTemplateNode } from '@/Interface';
|
||||
|
||||
export const newWorkflowTemplateNode = ({
|
||||
type,
|
||||
...optionalOpts
|
||||
}: Pick<IWorkflowTemplateNode, 'type'> &
|
||||
Partial<IWorkflowTemplateNode>): IWorkflowTemplateNode => ({
|
||||
type,
|
||||
name: faker.commerce.productName(),
|
||||
position: [0, 0],
|
||||
parameters: {},
|
||||
typeVersion: 1,
|
||||
...optionalOpts,
|
||||
});
|
||||
Reference in New Issue
Block a user