Add test
This commit is contained in:
parent
015c48c6ab
commit
6fb0881d7b
|
@ -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' } } />
|
||||
|
|
Loading…
Reference in New Issue