File tree Expand file tree Collapse file tree 1 file changed +2
-25
lines changed
static/app/views/dashboards Expand file tree Collapse file tree 1 file changed +2
-25
lines changed Original file line number Diff line number Diff 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 } >
You can’t perform that action at this time.
0 commit comments