Skip to content

Commit

Permalink
fix: check status in tree view for skipped tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowusr committed Nov 26, 2024
1 parent a3ff4d8 commit 7bc3cb9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {ImageEntityFail} from '@/static/new-ui/types/store';
import styles from './index.module.css';
import {getAssertViewStatusMessage} from '@/static/new-ui/utils/assert-view-status';
import {makeLinksClickable} from '@/static/new-ui/utils';
import {TestStatus} from '@/constants';

interface TreeViewItemSubtitleProps {
item: TreeViewItemData;
Expand All @@ -17,7 +18,7 @@ interface TreeViewItemSubtitleProps {
}

export function TreeViewItemSubtitle(props: TreeViewItemSubtitleProps): ReactNode {
if (props.item.skipReason) {
if (props.item.status === TestStatus.SKIPPED && props.item.skipReason) {
return <div className={styles.skipReasonContainer}>
<div className={styles.skipReason}>Skipped ⋅ {makeLinksClickable(props.item.skipReason)}</div>
</div>;
Expand Down

0 comments on commit 7bc3cb9

Please sign in to comment.