From 035689fb89e1e7d3f2bae7dd4a3fc78f1b2783a4 Mon Sep 17 00:00:00 2001 From: Raphael <155643707+rw-bsi@users.noreply.github.com> Date: Fri, 1 Nov 2024 14:29:43 +0000 Subject: [PATCH] update pre/postfix --- frontend/src/GherkinResult.js | 4 ++-- frontend/src/SchemaResult.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/src/GherkinResult.js b/frontend/src/GherkinResult.js index b8584a1..7fcf6e5 100644 --- a/frontend/src/GherkinResult.js +++ b/frontend/src/GherkinResult.js @@ -175,7 +175,7 @@ export default function GherkinResult({ summary, content, status, instances }) { }, [page, content, checked]); function getSuffix(rows) { - return (rows && rows.length > 0) ? '(failed ' + rows.length.toLocaleString() + ' times)' : '' + return (rows && rows.length > 0) ? '(failed ' + rows.length.toLocaleString() + ' times)' : '' } return ( @@ -237,7 +237,7 @@ export default function GherkinResult({ summary, content, status, instances }) { > {feature} {getSuffix(rows)}} + label={
{feature} {getSuffix(rows)}
} sx={{ "backgroundColor": severityToColor[severity] }} >
diff --git a/frontend/src/SchemaResult.js b/frontend/src/SchemaResult.js index c251f88..ae595fa 100644 --- a/frontend/src/SchemaResult.js +++ b/frontend/src/SchemaResult.js @@ -57,7 +57,7 @@ export default function SchemaResult({ summary, content, status, instances }) { }, [page, content, checked]); function getSuffix(rows) { - return (rows && rows.length > 0) ? '(failed ' + rows.length.toLocaleString() + ' times)' : '' + return (rows && rows.length > 0) ? '(failed ' + rows.length.toLocaleString() + ' times)' : '' } return ( @@ -115,7 +115,7 @@ export default function SchemaResult({ summary, content, status, instances }) { defaultCollapseIcon={} defaultExpandIcon={} > -
{(rows[0].constraint_type || '').replace('_', ' ')}{rows[0].constraint_type && ' - '}{hd} {getSuffix(rows)}
{rows[0].constraint_type !== 'schema' ? (coerceToStr(rows[0].msg)).split('\n')[0] : ''}
} +
{(rows[0].constraint_type || '').replace('_', ' ')}{rows[0].constraint_type && ' - '}{hd} {getSuffix(rows)}
{rows[0].constraint_type !== 'schema' ? (coerceToStr(rows[0].msg)).split('\n')[0] : ''}
} sx={{ "backgroundColor": severityToColor[rows[0].severity] }} >