@@ -29,18 +29,6 @@ describe('GroupSummary', function () {
29
29
} ,
30
30
} ;
31
31
32
- const mockSummaryDataWithLowScores = {
33
- groupId : '1' ,
34
- whatsWrong : 'Test whats wrong' ,
35
- trace : 'Test trace' ,
36
- possibleCause : 'Test possible cause' ,
37
- headline : 'Test headline' ,
38
- scores : {
39
- possibleCauseConfidence : 0.5 ,
40
- possibleCauseNovelty : 0.0 ,
41
- } ,
42
- } ;
43
-
44
32
const mockSummaryDataWithNullScores = {
45
33
groupId : '1' ,
46
34
whatsWrong : 'Test whats wrong' ,
@@ -119,27 +107,6 @@ describe('GroupSummary', function () {
119
107
expect ( screen . getByText ( 'Test possible cause' ) ) . toBeInTheDocument ( ) ;
120
108
} ) ;
121
109
122
- it ( 'renders the summary without possible cause when scores are low' , async function ( ) {
123
- MockApiClient . addMockResponse ( {
124
- url : `/organizations/${ mockProject . organization . slug } /issues/${ mockGroup . id } /summarize/` ,
125
- method : 'POST' ,
126
- body : mockSummaryDataWithLowScores ,
127
- } ) ;
128
-
129
- render ( < GroupSummary event = { mockEvent } group = { mockGroup } project = { mockProject } /> , {
130
- organization,
131
- } ) ;
132
-
133
- await waitFor ( ( ) => {
134
- expect ( screen . getByText ( 'What Happened' ) ) . toBeInTheDocument ( ) ;
135
- } ) ;
136
- expect ( await screen . findByText ( 'Test whats wrong' ) ) . toBeInTheDocument ( ) ;
137
- expect ( screen . getByText ( 'In the Trace' ) ) . toBeInTheDocument ( ) ;
138
- expect ( screen . getByText ( 'Test trace' ) ) . toBeInTheDocument ( ) ;
139
- expect ( screen . queryByText ( 'Initial Guess' ) ) . not . toBeInTheDocument ( ) ;
140
- expect ( screen . queryByText ( 'Test possible cause' ) ) . not . toBeInTheDocument ( ) ;
141
- } ) ;
142
-
143
110
it ( 'shows loading state' , function ( ) {
144
111
MockApiClient . addMockResponse ( {
145
112
url : `/organizations/${ mockProject . organization . slug } /issues/${ mockGroup . id } /summarize/` ,
0 commit comments