2020-11-06 01:21:05 +00:00
|
|
|
|
/**
|
|
|
|
|
* External dependencies
|
|
|
|
|
*/
|
|
|
|
|
import { render, screen } from '@testing-library/react';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Internal dependencies
|
|
|
|
|
*/
|
|
|
|
|
import OrdersPanel from '../';
|
|
|
|
|
|
|
|
|
|
describe( 'OrdersPanel', () => {
|
|
|
|
|
it( 'should render an empty order card', () => {
|
|
|
|
|
render(
|
|
|
|
|
<OrdersPanel
|
|
|
|
|
countUnreadOrders={ 0 }
|
|
|
|
|
isError={ false }
|
|
|
|
|
isRequesting={ false }
|
|
|
|
|
orderStatuses={ [] }
|
2020-11-23 15:06:55 +00:00
|
|
|
|
totalOrderCount={ 10 }
|
2020-11-06 01:21:05 +00:00
|
|
|
|
/>
|
|
|
|
|
);
|
|
|
|
|
expect(
|
|
|
|
|
screen.queryByText( 'You’ve fulfilled all your orders' )
|
|
|
|
|
).toBeInTheDocument();
|
|
|
|
|
} );
|
|
|
|
|
} );
|