Skip to content

Commit 5ecd986

Browse files
committed
fix more tests
1 parent c92e8d5 commit 5ecd986

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

static/app/views/dashboards/manage/dashboardGrid.spec.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ describe('Dashboards - DashboardGrid', () => {
299299
expect(dashboardUpdateMock).not.toHaveBeenCalled();
300300
});
301301

302-
it('renders favorite and Unstar buttons on cards', () => {
302+
it('renders star and unstar buttons on cards', () => {
303303
dashboards = [
304304
DashboardListItemFixture({
305305
id: '1',
@@ -330,8 +330,8 @@ describe('Dashboards - DashboardGrid', () => {
330330
}
331331
);
332332

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);
335335
expect(screen.queryAllByLabelText('Unstar')).toHaveLength(1);
336336
});
337337

@@ -373,14 +373,14 @@ describe('Dashboards - DashboardGrid', () => {
373373
}
374374
);
375375

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]!;
378378
await userEvent.click(favoriteButton);
379379

380380
await waitFor(() => {
381381
expect(putMock).toHaveBeenCalled();
382382
});
383383

384-
expect(screen.queryAllByLabelText('Favorite')).toHaveLength(0);
384+
expect(screen.queryAllByLabelText('Star')).toHaveLength(0);
385385
});
386386
});

0 commit comments

Comments
 (0)