import Box from '@mui/material/Box' import ListItem from '@mui/material/ListItem' import ListItemText from '@mui/material/ListItemText' import { TestResultShape } from '@seleniumhq/side-api' import { CommandShape, TestShape } from '@seleniumhq/side-model' import React, { FC } from 'react' import CommandOverlay from '../../Tests/TestCommandOverlay' const commandTextFormat = { color: 'primary.main', typography: 'body2' } const argTextFormat = { color: 'secondary.main', typography: 'subtitle2', ml: 2, } const errorTextFormat = { color: 'error.main', typography: 'caption', ml: 2, } interface SuiteViewerEntryProps { command: Pick | null result: TestResultShape | null test: TestShape } const SuiteViewerEntry: FC = ({ command, result, test, }) => ( {test.name}} secondary={ <> {command?.command} {command?.target} {command?.value} {result?.message} } /> ) export default SuiteViewerEntry