@@ -24,7 +24,7 @@ describe('Unit testing for ButtonContainer', () => {
2424 sliderIndex : 0 ,
2525 viewIndex : - 1 ,
2626 mode : {
27- paused : false ,
27+ paused : true ,
2828 locked : false ,
2929 } ,
3030 } ,
@@ -45,15 +45,16 @@ describe('Unit testing for ButtonContainer', () => {
4545 dispatch . mockClear ( ) ;
4646 mockedUsedStoreContext . mockClear ( ) ;
4747 currentTab . mode = {
48- paused : false ,
48+ paused : true ,
49+ persist : false ,
4950 } ;
5051 } ) ;
5152
5253 describe ( 'When button container is loaded' , ( ) => {
5354 test ( 'should have 4 buttons ' , ( ) => {
5455 render ( < ButtonsContainer /> ) ;
5556 expect ( screen . getAllByRole ( 'button' ) ) . toHaveLength ( 4 ) ;
56- expect ( screen . getAllByRole ( 'button' ) [ 0 ] ) . toHaveTextContent ( 'Unlocked ' ) ;
57+ expect ( screen . getAllByRole ( 'button' ) [ 0 ] ) . toHaveTextContent ( 'Locked ' ) ;
5758 expect ( screen . getAllByRole ( 'button' ) [ 1 ] ) . toHaveTextContent ( 'Download' ) ;
5859 expect ( screen . getAllByRole ( 'button' ) [ 2 ] ) . toHaveTextContent ( 'Upload' ) ;
5960 expect ( screen . getAllByRole ( 'button' ) [ 3 ] ) . toHaveTextContent ( 'Tutorial' ) ;
@@ -62,9 +63,9 @@ describe('Unit testing for ButtonContainer', () => {
6263
6364 describe ( 'When view is unlock' , ( ) => {
6465 test ( 'Button should show as unlocked' , ( ) => {
65- state . tabs [ '87' ] . mode . paused = true ;
66+ state . tabs [ '87' ] . mode . paused = false ;
6667 render ( < ButtonsContainer /> ) ;
67- expect ( screen . getAllByRole ( 'button' ) [ 0 ] ) . toHaveTextContent ( 'Locked ' ) ;
68+ expect ( screen . getAllByRole ( 'button' ) [ 0 ] ) . toHaveTextContent ( 'Unlocked ' ) ;
6869 } ) ;
6970 } ) ;
7071
0 commit comments