@@ -299,7 +299,7 @@ describe('Dashboards - DashboardGrid', () => {
299
299
expect ( dashboardUpdateMock ) . not . toHaveBeenCalled ( ) ;
300
300
} ) ;
301
301
302
- it ( 'renders favorite and Unstar buttons on cards' , ( ) => {
302
+ it ( 'renders star and unstar buttons on cards' , ( ) => {
303
303
dashboards = [
304
304
DashboardListItemFixture ( {
305
305
id : '1' ,
@@ -330,8 +330,8 @@ describe('Dashboards - DashboardGrid', () => {
330
330
}
331
331
) ;
332
332
333
- expect ( screen . queryAllByLabelText ( 'Dashboards Favorite ' ) ) . toHaveLength ( 2 ) ;
334
- expect ( screen . queryAllByLabelText ( 'Favorite ' ) ) . toHaveLength ( 1 ) ;
333
+ expect ( screen . queryAllByLabelText ( 'Starred Dashboard ' ) ) . toHaveLength ( 1 ) ;
334
+ expect ( screen . queryAllByLabelText ( 'Star ' ) ) . toHaveLength ( 1 ) ;
335
335
expect ( screen . queryAllByLabelText ( 'Unstar' ) ) . toHaveLength ( 1 ) ;
336
336
} ) ;
337
337
@@ -373,14 +373,14 @@ describe('Dashboards - DashboardGrid', () => {
373
373
}
374
374
) ;
375
375
376
- expect ( screen . queryAllByLabelText ( 'Favorite ' ) ) . toHaveLength ( 1 ) ;
377
- const favoriteButton = screen . queryAllByLabelText ( 'Favorite ' ) [ 0 ] ! ;
376
+ expect ( screen . queryAllByLabelText ( 'Star ' ) ) . toHaveLength ( 1 ) ;
377
+ const favoriteButton = screen . queryAllByLabelText ( 'Star ' ) [ 0 ] ! ;
378
378
await userEvent . click ( favoriteButton ) ;
379
379
380
380
await waitFor ( ( ) => {
381
381
expect ( putMock ) . toHaveBeenCalled ( ) ;
382
382
} ) ;
383
383
384
- expect ( screen . queryAllByLabelText ( 'Favorite ' ) ) . toHaveLength ( 0 ) ;
384
+ expect ( screen . queryAllByLabelText ( 'Star ' ) ) . toHaveLength ( 0 ) ;
385
385
} ) ;
386
386
} ) ;
0 commit comments