File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
packages/reporter/src/studio Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 6
6
7
7
.studio-header__test-section {
8
8
display : flex ;
9
- align-items : center ;
9
+ align-items : flex-start ;
10
10
border-bottom : 1px solid $gray-900 ;
11
11
padding : 16px ;
12
12
gap : 8px ;
13
13
font-size : 14px ;
14
14
line-height : 20px ;
15
15
flex-shrink : 0 ;
16
16
17
+ .state-icon {
18
+ margin-top : 3px ;
19
+ }
20
+
17
21
svg {
18
22
flex-shrink : 0 ;
19
23
}
Original file line number Diff line number Diff line change @@ -35,20 +35,22 @@ const getParentTitlesListElements = (parentTitles: string[]) => {
35
35
}
36
36
37
37
const StatusIcon = ( { test } : { test : Test } ) => {
38
+ let className = 'state-icon'
39
+
38
40
if ( test . state === 'active' ) {
39
- return < IconStatusRunningOutline data-cy = 'running-icon' size = '16' fillColor = 'gray-700' strokeColor = 'indigo-400' />
41
+ return < IconStatusRunningOutline className = { className } data-cy = 'running-icon' size = '16' fillColor = 'gray-700' strokeColor = 'indigo-400' />
40
42
}
41
43
42
44
if ( test . state === 'failed' ) {
43
- return < IconStatusFailedSolid data-cy = 'failed-icon' size = '16' strokeColor = 'red-400' />
45
+ return < IconStatusFailedSolid className = { className } data-cy = 'failed-icon' size = '16' strokeColor = 'red-400' />
44
46
}
45
47
46
48
if ( test . state === 'passed' ) {
47
- return < IconStatusPassedSolid data-cy = 'passed-icon' size = '16' strokeColor = 'jade-400' />
49
+ return < IconStatusPassedSolid className = { className } data-cy = 'passed-icon' size = '16' strokeColor = 'jade-400' />
48
50
}
49
51
50
52
// processing state or default state
51
- return < IconStatusQueuedOutline data-cy = 'queued-icon' size = '16' strokeColor = "gray-700" />
53
+ return < IconStatusQueuedOutline className = { className } data-cy = 'queued-icon' size = '16' strokeColor = "gray-700" />
52
54
}
53
55
54
56
interface StudioTestProps {
You can’t perform that action at this time.
0 commit comments