This commit is contained in:
Fernando Marichal 2022-04-22 10:09:32 -03:00
parent 015c48c6ab
commit 6fb0881d7b
1 changed files with 6 additions and 0 deletions

View File

@ -90,6 +90,12 @@ describe( 'Activity Panel', () => {
expect( screen.queryByText( 'Inbox' ) ).toBeNull();
} );
it( 'should render preview 2 tab on home screen', () => {
render( <ActivityPanel query={ { page: 'wc-admin' } } /> );
expect( screen.getByText( 'Preview store' ) ).toBeDefined();
} );
it( 'should not render help tab if not on home screen', () => {
render(
<ActivityPanel query={ { page: 'wc-admin', path: '/customers' } } />