diff --git a/plugins/woocommerce-admin/client/marketing/overview-multichannel/Campaigns/Campaigns.test.tsx b/plugins/woocommerce-admin/client/marketing/overview-multichannel/Campaigns/Campaigns.test.tsx index 57e2a7e97ed..66513850819 100644 --- a/plugins/woocommerce-admin/client/marketing/overview-multichannel/Campaigns/Campaigns.test.tsx +++ b/plugins/woocommerce-admin/client/marketing/overview-multichannel/Campaigns/Campaigns.test.tsx @@ -20,7 +20,7 @@ jest.mock( '~/marketing/hooks', () => ( { } ) ); jest.mock( './CreateNewCampaignModal', () => ( { - CreateNewCampaignModal: () =>
Create a new campaign
, + CreateNewCampaignModal: () =>
Mocked CreateNewCampaignModal
, } ) ); /** @@ -175,9 +175,9 @@ describe( 'Campaigns component', () => { screen.getByRole( 'button', { name: 'Create new campaign' } ) ); - // Modal with "Create a new campaign" should be displayed. + // Mocked CreateNewCampaignModal should be displayed. expect( - screen.getByText( 'Create a new campaign' ) + screen.getByText( 'Mocked CreateNewCampaignModal' ) ).toBeInTheDocument(); } ); } );