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:
Joseph Doherty
2026-10-07 15:05:49 -04:00
parent 0ffd4bdbea
commit 513fa1aa16
998 changed files with 17896 additions and 2395 deletions
@@ -22,6 +22,8 @@ public class RoleNavigationTests
{
private readonly PlaywrightFixture _fixture;
/// <summary>Initializes the test class with the shared Playwright fixture.</summary>
/// <param name="fixture">The shared Playwright fixture.</param>
public RoleNavigationTests(PlaywrightFixture fixture)
{
_fixture = fixture;
@@ -29,6 +31,8 @@ public class RoleNavigationTests
// ── Admin-only user ─────────────────────────────────────────────
/// <summary>Verifies that the admin user sees the Admin navigation section.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task AdminUser_SeesAdminSection()
{
@@ -41,6 +45,8 @@ public class RoleNavigationTests
await AssertNavLinkVisible(page, "Audit Log");
}
/// <summary>Verifies that the admin user does not see the Design navigation section.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task AdminUser_DoesNotSeeDesignSection()
{
@@ -52,6 +58,8 @@ public class RoleNavigationTests
await AssertNavLinkHidden(page, "External Systems");
}
/// <summary>Verifies that the admin user does not see the Deployment navigation section.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task AdminUser_DoesNotSeeDeploymentSection()
{
@@ -62,6 +70,8 @@ public class RoleNavigationTests
await AssertNavLinkHidden(page, "Debug View");
}
/// <summary>Verifies that the admin user sees the Health Dashboard but not Deployment monitoring.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task AdminUser_SeesHealthDashboard_NotDeploymentMonitoring()
{
@@ -76,6 +86,8 @@ public class RoleNavigationTests
// ── Design-only user ────────────────────────────────────────────
/// <summary>Verifies that the design user sees the Design navigation section.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task DesignUser_SeesDesignSection()
{
@@ -87,6 +99,8 @@ public class RoleNavigationTests
await AssertNavLinkVisible(page, "External Systems");
}
/// <summary>Verifies that the design user does not see the Admin navigation section.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task DesignUser_DoesNotSeeAdminSection()
{
@@ -99,6 +113,8 @@ public class RoleNavigationTests
await AssertNavLinkHidden(page, "Audit Log");
}
/// <summary>Verifies that the design user does not see the Deployment navigation section.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task DesignUser_DoesNotSeeDeploymentSection()
{
@@ -109,6 +125,8 @@ public class RoleNavigationTests
await AssertNavLinkHidden(page, "Debug View");
}
/// <summary>Verifies that the design user sees the Health Dashboard but not Deployment monitoring or audit links.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task DesignUser_SeesHealthDashboard_NotDeploymentMonitoringOrAudit()
{
@@ -124,6 +142,8 @@ public class RoleNavigationTests
// ── Deployment-only user ────────────────────────────────────────
/// <summary>Verifies that the deployment user sees the Deployment navigation section.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task DeploymentUser_SeesDeploymentSection()
{
@@ -134,6 +154,8 @@ public class RoleNavigationTests
await AssertNavLinkVisible(page, "Debug View");
}
/// <summary>Verifies that the deployment user does not see the Admin navigation section.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task DeploymentUser_DoesNotSeeAdminSection()
{
@@ -146,6 +168,8 @@ public class RoleNavigationTests
await AssertNavLinkHidden(page, "Audit Log");
}
/// <summary>Verifies that the deployment user does not see the Design navigation section.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task DeploymentUser_DoesNotSeeDesignSection()
{
@@ -157,6 +181,8 @@ public class RoleNavigationTests
await AssertNavLinkHidden(page, "External Systems");
}
/// <summary>Verifies that the deployment user sees monitoring links but not the configuration audit log.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task DeploymentUser_SeesMonitoringButNotConfigurationAuditLog()
{
@@ -172,6 +198,8 @@ public class RoleNavigationTests
// ── Multi-role user (Admin + Design + Deployment) ───────────────
/// <summary>Verifies that the multi-role user sees every navigation section.</summary>
/// <returns>A task that represents the asynchronous operation.</returns>
[Fact]
public async Task MultiRoleUser_SeesAllSections()
{
@@ -203,6 +231,9 @@ public class RoleNavigationTests
// ── All users see Dashboard ─────────────────────────────────────
/// <summary>Verifies that every user sees the Dashboard link.</summary>
/// <param name="username">The username to sign in with.</param>
/// <returns>A task that represents the asynchronous operation.</returns>
[Theory]
[InlineData("admin")]
[InlineData("designer")]