fix: render step details when locatorName is null
This commit is contained in:
parent
f3da45d64a
commit
80eb6cbdcf
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue