docs(tests): fix CommentChecker findings across tests/ — 13,392 → 0 (repo-wide scan clean)
Comment/XML-doc changes only: - add summaries to ~10k test methods, fixtures, fakes and helpers (+ <param> on theories, <returns> on async Task methods, <inheritdoc/> on interface implementations the checker can resolve) - strip ~2.6k project-tracking references (WP*, P*-*, row-NN, Task N, #NN, Component-0NN) from comments, keeping the explanatory text; reword false positives in comments only - real docs on fakes implementing BCL/library interfaces (IDisposable, ILogger, IOptionsMonitor, IAsyncLifetime) - reword the last 5 src/ false positives (CWE-1236, failures-1, year-0001, M365) Only non-comment edits: four one-line nested classes split across lines so members can carry docs. Build 0 errors / 0 warnings.
This commit is contained in:
+8
-4
@@ -4,7 +4,7 @@ using ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests.Cluster;
|
||||
namespace ZB.MOM.WW.ScadaBridge.CentralUI.PlaywrightTests.Transport;
|
||||
|
||||
/// <summary>
|
||||
/// Happy-path end-to-end for the Transport Export wizard (Component #24, Task T21).
|
||||
/// Happy-path end-to-end for the Transport Export wizard.
|
||||
///
|
||||
/// <para>
|
||||
/// Drives the full four-step wizard at <c>/design/transport/export</c> against the
|
||||
@@ -40,11 +40,15 @@ public sealed class TransportExportTests
|
||||
{
|
||||
private readonly PlaywrightFixture _fixture;
|
||||
|
||||
/// <summary>Initializes the test class with the shared Playwright fixture.</summary>
|
||||
/// <param name="fixture">The shared Playwright fixture.</param>
|
||||
public TransportExportTests(PlaywrightFixture fixture)
|
||||
{
|
||||
_fixture = fixture;
|
||||
}
|
||||
|
||||
/// <summary>Verifies that exporting a throwaway template through the wizard reaches the download summary.</summary>
|
||||
/// <returns>A task that represents the asynchronous operation.</returns>
|
||||
[SkippableFact]
|
||||
public async Task ExportTemplate_ReachesDownloadSummary()
|
||||
{
|
||||
@@ -57,7 +61,7 @@ public sealed class TransportExportTests
|
||||
{
|
||||
var page = await _fixture.NewAuthenticatedPageAsync("multi-role", "password");
|
||||
await page.GotoAsync($"{PlaywrightFixture.BaseUrl}/design/transport/export");
|
||||
// Wait for Step-1 to render (OnInitializedAsync makes 8 repo calls over SignalR
|
||||
// Wait for step 1 to render (OnInitializedAsync makes 8 repo calls over SignalR
|
||||
// before the template tree appears — NetworkIdle is an unreliable proxy for this).
|
||||
await Assertions.Expect(page.Locator("[data-testid='group-templates']"))
|
||||
.ToBeVisibleAsync(new() { Timeout = 15_000 });
|
||||
@@ -85,8 +89,8 @@ public sealed class TransportExportTests
|
||||
|
||||
// ── STEP 2: Review ────────────────────────────────────────────────────────
|
||||
// The seed group lists the picked template; Next is always enabled here.
|
||||
// Scope the Next click to the Step-2 panel — identified by its unique
|
||||
// #include-deps toggle — so it cannot accidentally match a Step-1 button.
|
||||
// Scope the Next click to the step 2 panel — identified by its unique
|
||||
// #include-deps toggle — so it cannot accidentally match a step 1 button.
|
||||
await Assertions.Expect(page.Locator("[data-testid='seed-group']"))
|
||||
.ToBeVisibleAsync(new() { Timeout = 15_000 });
|
||||
await page.Locator("div:has(#include-deps) button.btn.btn-primary:has-text('Next')")
|
||||
|
||||
Reference in New Issue
Block a user