Skip to content

Commit 65a92c8

Browse files
committed
fixes #79 - BDD
1 parent cd3b45a commit 65a92c8

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

extentreports-dotnet-core/Views/Html/Partials/SparkBDD.cshtml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
</h5>
3232
</div>
3333
<div class="card-body collapse mt-3">
34+
@if (child.HasScreenCapture) { foreach (var sc in child.ScreenCaptureContext.All()) { @sc.Source } }
3435
@foreach (var step in child.NodeContext.All())
3536
{
3637
<div class="d-flex align-items-center justify-content-start @step.BehaviorDrivenTypeName.Replace(" ","").ToLower()" title="@step.Description">
@@ -40,6 +41,7 @@
4041
<span>@step.BehaviorDrivenTypeName @step.Name</span>
4142
</div>
4243
@Include("SparkStepDetails", step)
44+
@if (step.HasScreenCapture) { foreach (var sc in step.ScreenCaptureContext.All()) { @sc.Source } }
4345
}
4446
</div>
4547
</div>
@@ -49,18 +51,20 @@
4951
else
5052
{
5153
<div class="collapse">
52-
<div class="card-body">
53-
@foreach (var child in node.NodeContext.All())
54-
{
55-
<div class="d-flex align-items-center justify-content-start @child.BehaviorDrivenTypeName.Replace(" ","").ToLower()" title="@child.Description">
56-
<span class="alert-icon @child.Status.ToString().ToLower()-bg">
57-
<i class="fa [email protected](child.Status) text-white"></i>
58-
</span>
59-
<span>@child.BehaviorDrivenTypeName @child.Name</span>
60-
</div>
61-
@Include("SparkStepDetails", child)
62-
}
63-
</div>
54+
<div class="card-body">
55+
@if (node.HasScreenCapture) { foreach (var sc in node.ScreenCaptureContext.All()) { @sc.Source } }
56+
@foreach (var child in node.NodeContext.All())
57+
{
58+
<div class="d-flex align-items-center justify-content-start @child.BehaviorDrivenTypeName.Replace(" ","").ToLower()" title="@child.Description">
59+
<span class="alert-icon @child.Status.ToString().ToLower()-bg">
60+
<i class="fa [email protected](child.Status) text-white"></i>
61+
</span>
62+
<span>@child.BehaviorDrivenTypeName @child.Name</span>
63+
</div>
64+
@Include("SparkStepDetails", child)
65+
@if (child.HasScreenCapture) { foreach (var sc in child.ScreenCaptureContext.All()) { @sc.Source } }
66+
}
67+
</div>
6468
</div>
6569
}
6670
}

0 commit comments

Comments
 (0)