diff --git a/packages/editor-ui/src/__tests__/server/factories/credential.ts b/packages/editor-ui/src/__tests__/server/factories/credential.ts index 1cd28a06e6fac..5612d0d4d9658 100644 --- a/packages/editor-ui/src/__tests__/server/factories/credential.ts +++ b/packages/editor-ui/src/__tests__/server/factories/credential.ts @@ -18,4 +18,7 @@ export const credentialFactory = Factory.extend({ updatedAt() { return ''; }, + isManaged() { + return false; + }, }); diff --git a/packages/editor-ui/src/components/CredentialCard.test.ts b/packages/editor-ui/src/components/CredentialCard.test.ts index 7b3abc6acb54e..e21edf0321ecc 100644 --- a/packages/editor-ui/src/components/CredentialCard.test.ts +++ b/packages/editor-ui/src/components/CredentialCard.test.ts @@ -17,6 +17,7 @@ const createCredential = (overrides = {}): ICredentialsResponse => ({ type: '', name: '', sharedWithProjects: [], + isManaged: false, homeProject: {} as ProjectSharingData, ...overrides, }); diff --git a/packages/editor-ui/src/components/CredentialCard.vue b/packages/editor-ui/src/components/CredentialCard.vue index c39166f15aa3c..d82c67d83ee87 100644 --- a/packages/editor-ui/src/components/CredentialCard.vue +++ b/packages/editor-ui/src/components/CredentialCard.vue @@ -39,6 +39,7 @@ const props = withDefaults( name: '', sharedWithProjects: [], homeProject: {} as ProjectSharingData, + isManaged: false, }), readOnly: false, }, diff --git a/packages/editor-ui/src/views/CredentialsView.test.ts b/packages/editor-ui/src/views/CredentialsView.test.ts index a9104db1dcd61..482cf6e767ca7 100644 --- a/packages/editor-ui/src/views/CredentialsView.test.ts +++ b/packages/editor-ui/src/views/CredentialsView.test.ts @@ -59,6 +59,7 @@ describe('CredentialsView', () => { type: 'test', createdAt: '2021-05-05T00:00:00Z', updatedAt: '2021-05-05T00:00:00Z', + isManaged: false, }, ]; const projectsStore = mockedStore(useProjectsStore); @@ -77,6 +78,7 @@ describe('CredentialsView', () => { createdAt: '2021-05-05T00:00:00Z', updatedAt: '2021-05-05T00:00:00Z', scopes: ['credential:update'], + isManaged: false, }, { id: '2', @@ -84,6 +86,7 @@ describe('CredentialsView', () => { type: 'test2', createdAt: '2021-05-05T00:00:00Z', updatedAt: '2021-05-05T00:00:00Z', + isManaged: false, }, ]; const projectsStore = mockedStore(useProjectsStore); @@ -124,6 +127,7 @@ describe('CredentialsView', () => { createdAt: '2021-05-05T00:00:00Z', updatedAt: '2021-05-05T00:00:00Z', scopes: ['credential:update'], + isManaged: false, }, ]; const { getByTestId } = renderComponent(); diff --git a/packages/editor-ui/src/views/SetupWorkflowFromTemplateView/__tests__/setupTemplate.store.testData.ts b/packages/editor-ui/src/views/SetupWorkflowFromTemplateView/__tests__/setupTemplate.store.testData.ts index be05e5b18e37b..b75373f93fa1a 100644 --- a/packages/editor-ui/src/views/SetupWorkflowFromTemplateView/__tests__/setupTemplate.store.testData.ts +++ b/packages/editor-ui/src/views/SetupWorkflowFromTemplateView/__tests__/setupTemplate.store.testData.ts @@ -51,5 +51,6 @@ export const newCredential = ( updatedAt: faker.date.past().toISOString(), id: faker.string.alphanumeric({ length: 16 }), name: faker.commerce.productName(), + isManaged: false, ...opts, });