Commit bc972fe 1 parent 7ff73ea commit bc972fe Copy full SHA for bc972fe
File tree 2 files changed +10
-6
lines changed
client/src/components/TestSuite/TestSuiteDetails
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -112,11 +112,12 @@ const TestGroupListItem: FC<TestGroupListItemProps> = ({
112
112
disableGutters
113
113
elevation = { 0 }
114
114
className = { classes . accordion }
115
- sx = { view === 'report' ? { pointerEvents : 'none' } : { } }
116
115
expanded = { expanded }
117
116
onChange = { ( ) => {
118
- setExpanded ( ! expanded ) ;
119
- setManualExpand ( ! expanded ) ;
117
+ if ( view !== 'report' ) {
118
+ setExpanded ( ! expanded ) ;
119
+ setManualExpand ( ! expanded ) ;
120
+ }
120
121
} }
121
122
slotProps = { { transition : { unmountOnExit : true } } }
122
123
onMouseEnter = { ( ) => setGroupMouseHover ( true ) }
@@ -128,6 +129,7 @@ const TestGroupListItem: FC<TestGroupListItemProps> = ({
128
129
aria-controls = { `${ testGroup . id } -detail` }
129
130
className = { classes . accordionSummary }
130
131
expandIcon = { view === 'run' && < ExpandMoreIcon tabIndex = { 0 } aria-hidden = "false" /> }
132
+ sx = { view === 'report' ? { cursor : 'default !important' } : { } }
131
133
>
132
134
< Box display = "flex" alignItems = "center" width = "100%" >
133
135
< Box display = "inline-flex" >
Original file line number Diff line number Diff line change @@ -204,16 +204,17 @@ const TestListItem: FC<TestListItemProps> = ({
204
204
} ;
205
205
206
206
const handleAccordionClick = ( ) => {
207
- setTabIndex ( findPopulatedTabIndex ( ) ) ;
208
- setOpen ( ! open ) ;
207
+ if ( view !== 'report' ) {
208
+ setTabIndex ( findPopulatedTabIndex ( ) ) ;
209
+ setOpen ( ! open ) ;
210
+ }
209
211
} ;
210
212
211
213
return (
212
214
< Accordion
213
215
disableGutters
214
216
elevation = { 0 }
215
217
className = { classes . accordion }
216
- sx = { view === 'report' ? { pointerEvents : 'none' } : { } }
217
218
expanded = { open }
218
219
slotProps = { { transition : { unmountOnExit : true } } }
219
220
onClick = { handleAccordionClick }
@@ -247,6 +248,7 @@ const TestListItem: FC<TestListItemProps> = ({
247
248
setOpen ( ! open ) ;
248
249
}
249
250
} }
251
+ sx = { view === 'report' ? { cursor : 'default !important' } : { } }
250
252
>
251
253
< Box display = "flex" alignItems = "center" width = "100%" >
252
254
{ resultIcon }
You can’t perform that action at this time.
0 commit comments