diff --git a/packages/core/admin/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoInput/tests/__snapshots__/index.test.js.snap b/packages/core/admin/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoInput/tests/__snapshots__/index.test.js.snap index 12276433d7..9f79194886 100644 --- a/packages/core/admin/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoInput/tests/__snapshots__/index.test.js.snap +++ b/packages/core/admin/admin/src/pages/SettingsPage/pages/ApplicationInfosPage/components/LogoInput/tests/__snapshots__/index.test.js.snap @@ -26,6 +26,7 @@ exports[`ApplicationsInfosPage || LogoInput from computer should render upload m display: -webkit-flex; display: -ms-flexbox; display: flex; + width: 100%; height: 124px; } @@ -1001,6 +1002,7 @@ exports[`ApplicationsInfosPage || LogoInput from url should render upload modal display: -webkit-flex; display: -ms-flexbox; display: flex; + width: 100%; height: 124px; } @@ -1920,6 +1922,7 @@ exports[`ApplicationsInfosPage || LogoInput logo input should match snapshot 1`] display: -webkit-flex; display: -ms-flexbox; display: flex; + width: 100%; height: 124px; } diff --git a/packages/core/admin/ee/admin/content-manager/pages/EditView/InformationBox/tests/InformationBoxEE.test.js b/packages/core/admin/ee/admin/content-manager/pages/EditView/InformationBox/tests/InformationBoxEE.test.js index 3433beddf6..37415351ec 100644 --- a/packages/core/admin/ee/admin/content-manager/pages/EditView/InformationBox/tests/InformationBoxEE.test.js +++ b/packages/core/admin/ee/admin/content-manager/pages/EditView/InformationBox/tests/InformationBoxEE.test.js @@ -100,7 +100,7 @@ describe('EE | Content Manager | EditView | InformationBox', () => { layout: { uid: 'api::articles:articles' }, }); - expect(useReviewWorkflows).toHaveBeenCalledWith(undefined, { + expect(useReviewWorkflows).toHaveBeenCalledWith({ filters: { contentTypes: 'api::articles:articles' }, }); }); diff --git a/packages/core/admin/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/hooks/tests/useReviewWorkflows.test.js b/packages/core/admin/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/hooks/tests/useReviewWorkflows.test.js index b22b4d5aa7..012288709a 100644 --- a/packages/core/admin/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/hooks/tests/useReviewWorkflows.test.js +++ b/packages/core/admin/ee/admin/pages/SettingsPage/pages/ReviewWorkflows/hooks/tests/useReviewWorkflows.test.js @@ -4,7 +4,6 @@ import { renderHook } from '@testing-library/react-hooks'; import { IntlProvider } from 'react-intl'; import { setupServer } from 'msw/node'; import { rest } from 'msw'; -import { useFetchClient } from '@strapi/helper-plugin'; import { useReviewWorkflows } from '../useReviewWorkflows'; @@ -73,14 +72,11 @@ describe('useReviewWorkflows', () => { }); test('fetch all workflows when calling the hook without a workflow id', async () => { - const { get } = useFetchClient(); const { result, waitFor } = setup(); - expect(result.current.workflows.isLoading).toBe(true); + expect(result.current.isLoading).toBe(true); - await waitFor(() => expect(result.current.workflows.isLoading).toBe(false)); - - expect(get).toBeCalledWith('/admin/review-workflows/workflows/?populate=stages&sort=name:asc'); + await waitFor(() => expect(result.current.isLoading).toBe(false)); expect(result.current).toStrictEqual( expect.objectContaining({ diff --git a/packages/core/upload/admin/src/components/MediaLibraryInput/tests/__snapshots__/MediaLibraryInput.test.js.snap b/packages/core/upload/admin/src/components/MediaLibraryInput/tests/__snapshots__/MediaLibraryInput.test.js.snap index c0ee65acf5..e8b2ad47d7 100644 --- a/packages/core/upload/admin/src/components/MediaLibraryInput/tests/__snapshots__/MediaLibraryInput.test.js.snap +++ b/packages/core/upload/admin/src/components/MediaLibraryInput/tests/__snapshots__/MediaLibraryInput.test.js.snap @@ -35,6 +35,7 @@ exports[` renders and matches the snapshot 1`] = ` display: -webkit-flex; display: -ms-flexbox; display: flex; + width: 100%; height: 124px; }