add: error indicator in test tab

This commit is contained in:
pooja-bruno
2025-06-27 16:54:20 +05:30
committed by Maintainer Bruno
parent 47bedec590
commit cb880840a2

View File

@@ -164,7 +164,11 @@ const HttpRequestPane = ({ item, collection }) => {
</div>
<div className={getTabClassname('tests')} role="tab" onClick={() => selectTab('tests')}>
Tests
{tests && tests.length > 0 && <ContentIndicator />}
{tests && tests.length > 0 && (
item.testScriptErrorMessage ?
<ErrorIndicator /> :
<ContentIndicator />
)}
</div>
<div className={getTabClassname('docs')} role="tab" onClick={() => selectTab('docs')}>
Docs