From e0c2dee2b32125821013238abf0de69c1b977b72 Mon Sep 17 00:00:00 2001 From: MichalKinas Date: Thu, 8 Aug 2024 08:50:56 +0200 Subject: [PATCH] [ACS-6423] Unit tests fixes --- .../content-widget/attach-file-widget.component.spec.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/process-services/src/lib/form/widgets/content-widget/attach-file-widget.component.spec.ts b/lib/process-services/src/lib/form/widgets/content-widget/attach-file-widget.component.spec.ts index 36b77fa30dd..0f8db079f43 100644 --- a/lib/process-services/src/lib/form/widgets/content-widget/attach-file-widget.component.spec.ts +++ b/lib/process-services/src/lib/form/widgets/content-widget/attach-file-widget.component.spec.ts @@ -269,7 +269,7 @@ describe('AttachFileWidgetComponent', () => { await fixture.whenStable(); fixture.debugElement.query(By.css('#attach-SHAREME')).nativeElement.click(); - expect(applyAlfrescoNodeSpy).toHaveBeenCalledWith({ ...fakeNode, isLink: true }, undefined, 'alfresco-1000-SHAREME'); + expect(applyAlfrescoNodeSpy).toHaveBeenCalledWith({ ...fakeNode, isLink: true }, undefined, 'alfresco-1000-SHAREMEAlfresco'); }); it('should isLink property of the selected node become false when the widget has link disabled', async () => { @@ -294,7 +294,7 @@ describe('AttachFileWidgetComponent', () => { await fixture.whenStable(); fixture.debugElement.query(By.css('#attach-SHAREME')).nativeElement.click(); - expect(applyAlfrescoNodeSpy).toHaveBeenCalledWith({ ...fakeNode, isLink: false }, undefined, 'alfresco-1000-SHAREME'); + expect(applyAlfrescoNodeSpy).toHaveBeenCalledWith({ ...fakeNode, isLink: false }, undefined, 'alfresco-1000-SHAREMEAlfresco'); }); it('should be able to upload files coming from content node selector', async () => { @@ -617,7 +617,7 @@ describe('AttachFileWidgetComponent', () => { fixture.detectChanges(); await fixture.whenStable(); - expect(openLoginSpy).toHaveBeenCalledWith(fakeRepositoryListAnswer[2], undefined, 'alfresco-2000-external'); + expect(openLoginSpy).toHaveBeenCalledWith(fakeRepositoryListAnswer[2], undefined, 'alfresco-2000-externalAlfresco'); }); it('should open fileBrowserDialog if devMode flag is on', async () => {