From b92edae8dd9a54722ebafc4d2496639824b0563b Mon Sep 17 00:00:00 2001 From: Luca Stauble Date: Tue, 1 Oct 2024 18:05:35 +0200 Subject: [PATCH 1/3] test: fix App tests --- src/app.test.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/app.test.tsx b/src/app.test.tsx index d846da33d..b1970bded 100644 --- a/src/app.test.tsx +++ b/src/app.test.tsx @@ -5,6 +5,7 @@ */ import React from 'react'; +import { JSNS } from '@zextras/carbonio-shell-ui'; import * as shellUi from '@zextras/carbonio-shell-ui'; import { HttpResponse } from 'msw'; import { act } from 'react-dom/test-utils'; @@ -13,6 +14,11 @@ import App from './app'; import * as addComponentsToShell from './app-utils/add-shell-components'; import * as registerShellActions from './app-utils/register-shell-actions'; import * as registerShellIntegrations from './app-utils/register-shell-integrations'; +import { + GetShareInfoRequest, + GetShareInfoResponse +} from './carbonio-ui-commons/soap/get-share-info'; +import { generateFolder } from './carbonio-ui-commons/test/mocks/folders/folders-generator'; import { createAPIInterceptor, createSoapAPIInterceptor @@ -58,7 +64,13 @@ describe('App', () => { beforeEach(() => { createAPIInterceptor('get', 'zx/login/v3/account', HttpResponse.json({})); - createSoapAPIInterceptor('GetFolder', HttpResponse.json({})); + createSoapAPIInterceptor('GetFolder', { + folder: [{}] + }); + createSoapAPIInterceptor('GetShareInfo', { + _jsns: JSNS.account, + share: [generateFolder()] + }); jest.clearAllMocks(); }); From c8572ff0a3cbe520dc28fae8435d1469de6f3cbe Mon Sep 17 00:00:00 2001 From: Luca Stauble Date: Wed, 2 Oct 2024 09:32:23 +0200 Subject: [PATCH 2/3] refactor: update Commons commit --- src/carbonio-ui-commons | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/carbonio-ui-commons b/src/carbonio-ui-commons index b295f43d7..4d8bef017 160000 --- a/src/carbonio-ui-commons +++ b/src/carbonio-ui-commons @@ -1 +1 @@ -Subproject commit b295f43d7206cfae3e3a5a2b951a94c40ab51dcc +Subproject commit 4d8bef017352100d92e9cdbf4ac435e57d512a4d From 6459843e78212ec580c98b3b4ed64f7c139d25fb Mon Sep 17 00:00:00 2001 From: Luca Stauble Date: Wed, 2 Oct 2024 10:19:42 +0200 Subject: [PATCH 3/3] refactor: update Commons commit --- src/carbonio-ui-commons | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/carbonio-ui-commons b/src/carbonio-ui-commons index 4d8bef017..71940b764 160000 --- a/src/carbonio-ui-commons +++ b/src/carbonio-ui-commons @@ -1 +1 @@ -Subproject commit 4d8bef017352100d92e9cdbf4ac435e57d512a4d +Subproject commit 71940b76478386a04c9c80af1adca14e4003bdfe