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">
|
||||
<span className="step-index">Step {step.stepIndex || idx + 1}</span>
|
||||
<span className="action-tag">{step.actionName}</span>
|
||||
{step.locatorName && (
|
||||
<span className="step-locator text-muted">
|
||||
{step.locatorName}: {step.objectDetail || '—'}
|
||||
{(step.locatorName || step.objectDetail) && (
|
||||
<span className="step-locator text-muted" style={{ marginLeft: 8 }}>
|
||||
{step.locatorName ? `${step.locatorName}: ` : ''}{step.objectDetail || '—'}
|
||||
</span>
|
||||
)}
|
||||
{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>}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue