Skip to content

Commit c3ff00d

Browse files
committed
fix: correctly determine assertion priority in report feature rows
1 parent 397669c commit c3ff00d

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

client/tests/e2e/snapshots/saved/_account_settings.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ <h2>Admin Actions</h2>
9898
<button type="button" class="btn btn-primary">
9999
Import Latest Test Plan Versions
100100
</button>
101-
<p>Date of latest test plan version: October 20, 2025 23:15 UTC</p>
101+
<p>Date of latest test plan version: October 27, 2025 06:36 UTC</p>
102102
</section>
103103
</main>
104104
</div>

client/tests/e2e/snapshots/saved/_data-management.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ <h2>Test Plans Status Summary</h2>
548548
<path
549549
fill="currentColor"
550550
d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"></path></svg
551-
><b>V25.02.13</b></span
551+
><b>V25.10.26</b></span
552552
></span
553553
><span role="listitem" class="review-complete"
554554
>Review Completed&nbsp;<b>Sep 22, 2024</b></span
@@ -572,7 +572,7 @@ <h2>Test Plans Status Summary</h2>
572572
<path
573573
fill="currentColor"
574574
d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"></path></svg
575-
><b>V25.02.13</b></span
575+
><b>V25.10.26</b></span
576576
></span
577577
><span role="listitem" class="review-complete"
578578
>Review Completed&nbsp;<b>Sep 23, 2024</b></span
@@ -597,7 +597,7 @@ <h2>Test Plans Status Summary</h2>
597597
<path
598598
fill="currentColor"
599599
d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"></path></svg
600-
><b>V25.02.13</b></span
600+
><b>V25.10.26</b></span
601601
></a
602602
></span
603603
><span role="listitem"
@@ -1824,7 +1824,7 @@ <h2>Test Plans Status Summary</h2>
18241824
<td>
18251825
<div class="status-cell">
18261826
<span class="pill full-width rd">R&amp;D</span>
1827-
<p class="review-text">Complete <b>Mar 6, 2025</b></p>
1827+
<p class="review-text">Complete <b>Oct 27, 2025</b></p>
18281828
</div>
18291829
</td>
18301830
<td>
@@ -1845,7 +1845,7 @@ <h2>Test Plans Status Summary</h2>
18451845
<path
18461846
fill="currentColor"
18471847
d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"></path></svg
1848-
><b>V25.03.06</b></span
1848+
><b>V25.10.27</b></span
18491849
></a
18501850
></span
18511851
><button
@@ -2472,7 +2472,7 @@ <h2>Test Plans Status Summary</h2>
24722472
<td>
24732473
<div class="status-cell">
24742474
<span class="pill full-width rd">R&amp;D</span>
2475-
<p class="review-text">Complete <b>Feb 12, 2025</b></p>
2475+
<p class="review-text">Complete <b>Oct 27, 2025</b></p>
24762476
</div>
24772477
</td>
24782478
<td>
@@ -2493,7 +2493,7 @@ <h2>Test Plans Status Summary</h2>
24932493
<path
24942494
fill="currentColor"
24952495
d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"></path></svg
2496-
><b>V25.02.12</b></span
2496+
><b>V25.10.27</b></span
24972497
></a
24982498
></span
24992499
><button
@@ -2526,7 +2526,7 @@ <h2>Test Plans Status Summary</h2>
25262526
<td>
25272527
<div class="status-cell">
25282528
<span class="pill full-width rd">R&amp;D</span>
2529-
<p class="review-text">Complete <b>Feb 12, 2025</b></p>
2529+
<p class="review-text">Complete <b>Oct 26, 2025</b></p>
25302530
</div>
25312531
</td>
25322532
<td>
@@ -2547,7 +2547,7 @@ <h2>Test Plans Status Summary</h2>
25472547
<path
25482548
fill="currentColor"
25492549
d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"></path></svg
2550-
><b>V25.02.12</b></span
2550+
><b>V25.10.26</b></span
25512551
></a
25522552
></span
25532553
><button

server/services/extractFeatureAssertionRows.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const checkAssertionResultExceptionMatch = require('../../shared/checkAssertionResultExceptionMatch');
2+
const convertAssertionPriority = require('../../shared/convertAssertionPriority');
23

34
const extractFeatureAssertionRows = (
45
testPlanReport,
@@ -72,7 +73,10 @@ const extractFeatureAssertionRows = (
7273
commandSequence: scenarioResult.scenario.commands
7374
.map(cmd => cmd.text)
7475
.join(' then '),
75-
assertionPriority: assertion.priority === 1 ? 'Must' : 'Should',
76+
assertionPriority:
77+
convertAssertionPriority(assertion.priority) === 'MUST'
78+
? 'Must'
79+
: 'Should',
7680
assertionPhrase: assertion.phrase || assertion.text,
7781
result,
7882
testedOn: testResult.completedAt

0 commit comments

Comments
 (0)