@@ -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 persist : false ,
3030 } ,
@@ -46,7 +46,7 @@ describe('Unit testing for ButtonContainer', () => {
4646 dispatch . mockClear ( ) ;
4747 mockedUsedStoreContext . mockClear ( ) ;
4848 currentTab . mode = {
49- paused : false ,
49+ paused : true ,
5050 persist : false ,
5151 } ;
5252 } ) ;
@@ -55,7 +55,7 @@ describe('Unit testing for ButtonContainer', () => {
5555 test ( 'should have 4 buttons ' , ( ) => {
5656 render ( < ButtonsContainer /> ) ;
5757 expect ( screen . getAllByRole ( 'button' ) ) . toHaveLength ( 4 ) ;
58- expect ( screen . getAllByRole ( 'button' ) [ 0 ] ) . toHaveTextContent ( 'Unlocked ' ) ;
58+ expect ( screen . getAllByRole ( 'button' ) [ 0 ] ) . toHaveTextContent ( 'Locked ' ) ;
5959 expect ( screen . getAllByRole ( 'button' ) [ 1 ] ) . toHaveTextContent ( 'Download' ) ;
6060 expect ( screen . getAllByRole ( 'button' ) [ 2 ] ) . toHaveTextContent ( 'Upload' ) ;
6161 expect ( screen . getAllByRole ( 'button' ) [ 3 ] ) . toHaveTextContent ( 'Tutorial' ) ;
@@ -64,9 +64,9 @@ describe('Unit testing for ButtonContainer', () => {
6464
6565 describe ( 'When view is unlock' , ( ) => {
6666 test ( 'Button should show as unlocked' , ( ) => {
67- state . tabs [ '87' ] . mode . paused = true ;
67+ state . tabs [ '87' ] . mode . paused = false ;
6868 render ( < ButtonsContainer /> ) ;
69- expect ( screen . getAllByRole ( 'button' ) [ 0 ] ) . toHaveTextContent ( 'Locked ' ) ;
69+ expect ( screen . getAllByRole ( 'button' ) [ 0 ] ) . toHaveTextContent ( 'Unlocked ' ) ;
7070 } ) ;
7171 } ) ;
7272
0 commit comments