Skip to content

Commit

Permalink
Fixed entry status icon - status category mapping on webUI (#1160)
Browse files Browse the repository at this point in the history
  • Loading branch information
rnemes authored Dec 12, 2024
1 parent c363b12 commit c704044
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/newsfragments/3170_changed.status_icon_xfail.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed an issue where enabling Status icons crashed the report when a test was marked as XFAIL.
3 changes: 2 additions & 1 deletion testplan/web_ui/testing/src/Nav/navUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import TagList from "./TagList";
import Column from "./Column";
import CommonStyles, { statusStyles } from "../Common/Styles.js";
import { STATUS_CATEGORY } from "../Common/defaults.js";
import { navStyles } from "../Common/Styles";
import {
generateURLWithParameters,
Expand Down Expand Up @@ -304,7 +305,7 @@ const GetStatusIcon = (status) => (
<FontAwesomeIcon
title={status}
size="sm"
icon={statusStyles[status].icon}
icon={statusStyles[STATUS_CATEGORY[status]].icon}
className={css(navStyles.icon)}
/>
</span>
Expand Down

0 comments on commit c704044

Please sign in to comment.