Skip to content

Commit d0e287e

Browse files
committed
what is happening
1 parent f302e4d commit d0e287e

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

static/app/views/dashboards/detail.spec.tsx

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -626,31 +626,8 @@ describe('Dashboards > Detail', () => {
626626
});
627627

628628
it('hides add widget option', async () => {
629-
const maxWidgets = Array.from({length: types.MAX_WIDGETS}, (_, index) =>
630-
WidgetFixture({
631-
id: String(index + 1),
632-
title: `Widget ${index + 1}`,
633-
queries: [
634-
{
635-
name: '',
636-
conditions: 'event.type:error',
637-
fields: ['count()'],
638-
columns: [],
639-
aggregates: ['count()'],
640-
orderby: '-count()',
641-
},
642-
],
643-
})
644-
);
645-
MockApiClient.addMockResponse({
646-
url: '/organizations/org-slug/dashboards/1/',
647-
body: DashboardFixture(maxWidgets, {
648-
id: '1',
649-
title: 'Custom Errors',
650-
filters: {},
651-
createdBy: UserFixture({id: '1'}),
652-
}),
653-
});
629+
// @ts-expect-error this is assigning to readonly property...
630+
types.MAX_WIDGETS = 1;
654631

655632
render(
656633
<OrganizationContext value={initialData.organization}>

0 commit comments

Comments
 (0)