Skip to content

Commit 9dc48fc

Browse files
authored
fix: allow add test plans disclosure to add test plan versions without initial reports (#1649)
* fix: allow add test plans disclosure to add test plan versions without initial reports * Update snapshots
1 parent 5bb1446 commit 9dc48fc

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

client/components/ManageTestQueue/useAddTestPlansData.js

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,24 +56,20 @@ export const useAddTestPlansData = isOpen => {
5656

5757
if (mainQueryData.testPlanVersions) {
5858
mainQueryData.testPlanVersions.forEach(version => {
59-
if (version.testPlanReports && version.testPlanReports.length > 0) {
60-
const testPlanDirectory = version.testPlan?.directory;
61-
if (testPlanDirectory) {
62-
allTestPlanVersions.push(
63-
normalizeVersion(version, testPlanDirectory)
64-
);
65-
}
59+
const testPlanDirectory = version.testPlan?.directory;
60+
if (testPlanDirectory) {
61+
allTestPlanVersions.push(
62+
normalizeVersion(version, testPlanDirectory)
63+
);
6664
}
6765
});
6866
} else if (mainQueryData.testPlans) {
6967
mainQueryData.testPlans.forEach(testPlan => {
7068
const versions = testPlan.testPlanVersions || [];
7169
versions.forEach(version => {
72-
if (version.testPlanReports && version.testPlanReports.length > 0) {
73-
allTestPlanVersions.push(
74-
normalizeVersion(version, testPlan.directory)
75-
);
76-
}
70+
allTestPlanVersions.push(
71+
normalizeVersion(version, testPlan.directory)
72+
);
7773
});
7874
});
7975
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ <h2>Admin Actions</h2>
258258
<button type="button" class="btn btn-primary">
259259
Import Latest Test Plan Versions
260260
</button>
261-
<p>Date of latest test plan version: November 10, 2025 06:01 UTC</p>
261+
<p>Date of latest test plan version: November 13, 2025 23:25 UTC</p>
262262
</section>
263263
</main>
264264
</div>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ <h2>Test Plans Status Summary</h2>
15901590
<td>
15911591
<div class="status-cell">
15921592
<span class="pill full-width rd">R&amp;D</span>
1593-
<p class="review-text">Complete <b>Nov 6, 2025</b></p>
1593+
<p class="review-text">Complete <b>Nov 13, 2025</b></p>
15941594
</div>
15951595
</td>
15961596
<td>
@@ -1611,7 +1611,7 @@ <h2>Test Plans Status Summary</h2>
16111611
<path
16121612
fill="currentColor"
16131613
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
1614-
><b>V25.11.06</b></span
1614+
><b>V25.11.13</b></span
16151615
></a
16161616
></span
16171617
><button

0 commit comments

Comments
 (0)