@@ -14,10 +14,9 @@ describe('AppUpdatePrompt', () => {
1414 const onUpdate = jest . fn ( ) ;
1515
1616 const messages : Record < string , string > = {
17- 'appUpdate.title' : 'Update available' ,
18- 'appUpdate.description' :
19- 'A new version of the app is ready. Update to load the latest cached files.' ,
20- 'appUpdate.action' : 'Update app' ,
17+ 'appUpdate.title' : 'New version ready' ,
18+ 'appUpdate.description' : 'Refresh to get the latest fixes and schedule updates.' ,
19+ 'appUpdate.action' : 'Refresh now' ,
2120 } ;
2221
2322 jest . mocked ( useTranslation ) . mockReturnValue ( {
@@ -28,9 +27,9 @@ describe('AppUpdatePrompt', () => {
2827
2928 render ( < AppUpdatePrompt onUpdate = { onUpdate } /> ) ;
3029
31- expect ( screen . getByRole ( 'heading' , { name : / u p d a t e a v a i l a b l e / i } ) ) . toBeVisible ( ) ;
30+ expect ( screen . getByRole ( 'heading' , { name : / n e w v e r s i o n r e a d y / i } ) ) . toBeVisible ( ) ;
3231
33- await user . click ( screen . getByRole ( 'button' , { name : / u p d a t e a p p / i } ) ) ;
32+ await user . click ( screen . getByRole ( 'button' , { name : / r e f r e s h n o w / i } ) ) ;
3433
3534 expect ( onUpdate ) . toHaveBeenCalledTimes ( 1 ) ;
3635 } ) ;
0 commit comments