@@ -24,7 +24,7 @@ describe('Unit testing for ButtonContainer', () => {
24
24
sliderIndex : 0 ,
25
25
viewIndex : - 1 ,
26
26
mode : {
27
- paused : false ,
27
+ paused : true ,
28
28
locked : false ,
29
29
persist : false ,
30
30
} ,
@@ -46,7 +46,7 @@ describe('Unit testing for ButtonContainer', () => {
46
46
dispatch . mockClear ( ) ;
47
47
mockedUsedStoreContext . mockClear ( ) ;
48
48
currentTab . mode = {
49
- paused : false ,
49
+ paused : true ,
50
50
persist : false ,
51
51
} ;
52
52
} ) ;
@@ -55,7 +55,7 @@ describe('Unit testing for ButtonContainer', () => {
55
55
test ( 'should have 4 buttons ' , ( ) => {
56
56
render ( < ButtonsContainer /> ) ;
57
57
expect ( screen . getAllByRole ( 'button' ) ) . toHaveLength ( 4 ) ;
58
- expect ( screen . getAllByRole ( 'button' ) [ 0 ] ) . toHaveTextContent ( 'Unlocked ' ) ;
58
+ expect ( screen . getAllByRole ( 'button' ) [ 0 ] ) . toHaveTextContent ( 'Locked ' ) ;
59
59
expect ( screen . getAllByRole ( 'button' ) [ 1 ] ) . toHaveTextContent ( 'Download' ) ;
60
60
expect ( screen . getAllByRole ( 'button' ) [ 2 ] ) . toHaveTextContent ( 'Upload' ) ;
61
61
expect ( screen . getAllByRole ( 'button' ) [ 3 ] ) . toHaveTextContent ( 'Tutorial' ) ;
@@ -64,9 +64,9 @@ describe('Unit testing for ButtonContainer', () => {
64
64
65
65
describe ( 'When view is unlock' , ( ) => {
66
66
test ( 'Button should show as unlocked' , ( ) => {
67
- state . tabs [ '87' ] . mode . paused = true ;
67
+ state . tabs [ '87' ] . mode . paused = false ;
68
68
render ( < ButtonsContainer /> ) ;
69
- expect ( screen . getAllByRole ( 'button' ) [ 0 ] ) . toHaveTextContent ( 'Locked ' ) ;
69
+ expect ( screen . getAllByRole ( 'button' ) [ 0 ] ) . toHaveTextContent ( 'Unlocked ' ) ;
70
70
} ) ;
71
71
} ) ;
72
72
0 commit comments