diff --git a/packages/manager/apps/container/src/payment-modal/PaymentModal.spec.tsx b/packages/manager/apps/container/src/payment-modal/PaymentModal.spec.tsx index 4a6eb50fc8bc..f961c03e9723 100644 --- a/packages/manager/apps/container/src/payment-modal/PaymentModal.spec.tsx +++ b/packages/manager/apps/container/src/payment-modal/PaymentModal.spec.tsx @@ -4,6 +4,7 @@ import { PAYMENT_ALERTS } from './constants'; import PaymentModal, { IPaymentMethod } from './PaymentModal'; import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; import * as ManagerApi from '@ovh-ux/manager-core-api'; +import { ModalTypes } from '@/context/modals/modals.context'; vi.mock('@/context', () => ({ useShell: () => ({ @@ -13,6 +14,10 @@ vi.mock('@/context', () => ({ }), })); +vi.mock('@/context/modals', () => ({ + useModals: () => ({ current: ModalTypes.payment }) +})); + // Expired card in 50 days const mockValidResponse: ManagerApi.IcebergFetchResultV6 = { data: [