Skip to content

Commit

Permalink
Merge pull request #112 from buildingSMART/features/IVS-204_display_n…
Browse files Browse the repository at this point in the history
…umber_of_outcomes

update pre/postfix
  • Loading branch information
rw-bsi authored Nov 1, 2024
2 parents 64e514e + 035689f commit 3291c88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/src/GherkinResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export default function GherkinResult({ summary, content, status, instances }) {
}, [page, content, checked]);

function getSuffix(rows) {
return (rows && rows.length > 0) ? '<i>(failed ' + rows.length.toLocaleString() + ' times)</i>' : ''
return (rows && rows.length > 0) ? '(failed ' + rows.length.toLocaleString() + ' times)' : ''
}

return (
Expand Down Expand Up @@ -237,7 +237,7 @@ export default function GherkinResult({ summary, content, status, instances }) {
>
<TreeItem
nodeId={feature}
label={<div class='caption'>{feature} {getSuffix(rows)}</div>}
label={<div class='caption'>{feature} <i>{getSuffix(rows)}</i></div>}
sx={{ "backgroundColor": severityToColor[severity] }}
>
<div>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/SchemaResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default function SchemaResult({ summary, content, status, instances }) {
}, [page, content, checked]);

function getSuffix(rows) {
return (rows && rows.length > 0) ? '<i>(failed ' + rows.length.toLocaleString() + ' times)</i>' : ''
return (rows && rows.length > 0) ? '(failed ' + rows.length.toLocaleString() + ' times)' : ''
}

return (
Expand Down Expand Up @@ -115,7 +115,7 @@ export default function SchemaResult({ summary, content, status, instances }) {
defaultCollapseIcon={<ExpandMoreIcon />}
defaultExpandIcon={<ChevronRightIcon />}
>
<TreeItem nodeId={hd} label={<div><div class='caption'>{(rows[0].constraint_type || '').replace('_', ' ')}{rows[0].constraint_type && ' - '}{hd} {getSuffix(rows)}</div><div class='subcaption'>{rows[0].constraint_type !== 'schema' ? (coerceToStr(rows[0].msg)).split('\n')[0] : ''}</div></div>}
<TreeItem nodeId={hd} label={<div><div class='caption'>{(rows[0].constraint_type || '').replace('_', ' ')}{rows[0].constraint_type && ' - '}{hd} <i>{getSuffix(rows)}</i></div><div class='subcaption'>{rows[0].constraint_type !== 'schema' ? (coerceToStr(rows[0].msg)).split('\n')[0] : ''}</div></div>}
sx={{ "backgroundColor": severityToColor[rows[0].severity] }}
>

Expand Down

0 comments on commit 3291c88

Please sign in to comment.