fix: render step details when locatorName is null

This commit is contained in:
vithobaa 2026-06-29 19:22:21 +05:30
parent f3da45d64a
commit 80eb6cbdcf
1 changed files with 4 additions and 4 deletions

View File

@ -280,13 +280,13 @@ export default function ExecutionDetailsView() {
<div className="step-header"> <div className="step-header">
<span className="step-index">Step {step.stepIndex || idx + 1}</span> <span className="step-index">Step {step.stepIndex || idx + 1}</span>
<span className="action-tag">{step.actionName}</span> <span className="action-tag">{step.actionName}</span>
{step.locatorName && ( {(step.locatorName || step.objectDetail) && (
<span className="step-locator text-muted"> <span className="step-locator text-muted" style={{ marginLeft: 8 }}>
{step.locatorName}: {step.objectDetail || '—'} {step.locatorName ? `${step.locatorName}: ` : ''}{step.objectDetail || '—'}
</span> </span>
)} )}
{step.testData && step.testData !== step.objectDetail && ( {step.testData && step.testData !== step.objectDetail && (
<span className="step-data text-muted"> {step.testData}</span> <span className="step-data text-muted" style={{ marginLeft: 8 }}> {step.testData}</span>
)} )}
{stepSkipped && <span className="skipped-tag"> Skipped (previous step failed)</span>} {stepSkipped && <span className="skipped-tag"> Skipped (previous step failed)</span>}
</div> </div>