Files
jdescopingtool/NEW/tests/JdeScoping.Ui.Tests/SearchPageTests.cs
T
Joseph Doherty 9bd5e340b0 Convert XML list markup to plain numbered text in UI test remarks
Replace <list type="number"><item>...</item></list> with plain numbered
lines in method-level <remarks> blocks across 23 UI test files to match
the codebase convention of using simple text in XML doc comments.
2026-02-10 08:05:42 -05:00

36 lines
1.4 KiB
C#

using JdeScoping.Ui.Tests.Helpers;
using JdeScoping.Ui.Tests.Support;
namespace JdeScoping.Ui.Tests;
/// <summary>
/// Playwright UI smoke tests for the Search page.
/// Validates that the search form loads with primary controls visible and no error notifications.
/// Requires a running Docker host (Category: RequiresDockerHost).
/// </summary>
public sealed class SearchPageTests(PlaywrightFixture fixture) : UiTestBase(fixture)
{
/// <summary>
/// Verifies the search page loads and displays the "Search Details" heading, Submit button, and no errors.
/// </summary>
/// <remarks>
/// Steps:
/// 1. Navigate to the search page.
/// 2. Assert the "Search Details" text is visible.
/// 3. Assert the Submit button is visible.
/// 4. Assert no error notification is present.
/// </remarks>
[Fact]
[Trait("Category", "RequiresDockerHost")]
public async Task SearchPage_LoadsAndShowsPrimaryControls()
{
await RunAsync(async page =>
{
await UiNavigationHelper.NavigateToSearchPageAsync(page);
await Assertions.Expect(page.GetByText("Search Details")).ToBeVisibleAsync();
await Assertions.Expect(page.GetByRole(AriaRole.Button, new PageGetByRoleOptions { Name = "Submit" }).First)
.ToBeVisibleAsync();
await UiSearchFormHelper.AssertNoErrorNotificationAsync(page);
});
}
}