13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
+
16
17
import '@web/third_party/vscode/codicon.css' ;
17
18
import '@web/common.css' ;
18
19
import './statusLine.css' ;
19
20
import React from 'react' ;
20
21
import { clsx } from '@web/uiUtils' ;
21
22
import { testStatusIcon } from './testUtils' ;
23
+
22
24
interface StatusLineProps {
23
25
passed : number ;
24
26
failed : number ;
@@ -32,18 +34,18 @@ export const StatusLine: React.FC<StatusLineProps> = ({ passed, failed, skipped,
32
34
return (
33
35
< div data-testid = 'status-line' className = 'status-line' title = { `${ passed } passed, ${ failed } failed, ${ skipped } skipped` } >
34
36
< span className = 'status-line-count' >
35
- < span className = { clsx ( 'codicon' , isRunning ? testStatusIcon ( 'running' ) : testStatusIcon ( 'none' ) ) } />
37
+ < i className = { clsx ( 'codicon' , isRunning ? testStatusIcon ( 'running' ) : testStatusIcon ( 'none' ) ) } />
36
38
< span data-testid = 'test-count' > { count } /{ total } </ span >
37
39
</ span >
38
- < div className = 'status-passed' >
39
- < span className = { clsx ( 'codicon' , testStatusIcon ( 'passed' ) ) } /> { passed || 0 }
40
- </ div >
41
- < div className = 'status-failed' >
42
- < span className = { clsx ( 'codicon' , testStatusIcon ( 'failed' ) ) } /> { failed || 0 }
43
- </ div >
44
- < div className = 'status-skipped' >
45
- < span className = { clsx ( 'codicon' , testStatusIcon ( 'skipped' ) ) } /> { skipped || 0 }
46
- </ div >
40
+ < span className = 'status-passed' >
41
+ < i className = { clsx ( 'codicon' , testStatusIcon ( 'passed' ) ) } /> { passed || 0 }
42
+ </ span >
43
+ < span className = 'status-failed' >
44
+ < i className = { clsx ( 'codicon' , testStatusIcon ( 'failed' ) ) } /> { failed || 0 }
45
+ </ span >
46
+ < span className = 'status-skipped' >
47
+ < i className = { clsx ( 'codicon' , testStatusIcon ( 'skipped' ) ) } /> { skipped || 0 }
48
+ </ span >
47
49
</ div >
48
50
) ;
49
51
} ;
0 commit comments