Files
jdescopingtool/NEW/tests/JdeScoping.Ui.Tests/WorkOrderSearchTests.cs
T
2026-02-10 07:47:48 -05:00

39 lines
1.5 KiB
C#

using JdeScoping.Ui.Tests.Support;
namespace JdeScoping.Ui.Tests;
/// <summary>
/// Playwright UI tests for the "Work Order" search type (TC-010).
/// Validates search form interaction in smoke mode and full submission with workbook upload in strict mode.
/// Requires a running Docker host (Category: RequiresDockerHost).
/// </summary>
public sealed class WorkOrderSearchTests(PlaywrightFixture fixture) : SearchFlowTestBase(fixture)
{
/// <summary>
/// Verifies the Work Order search form submits with an uploaded workbook filter (TC-010).
/// </summary>
/// <remarks>
/// Steps (smoke mode stops after step 4; strict mode runs all steps):
/// <list type="number">
/// <item>Navigate to the search page.</item>
/// <item>Enter the search name "MIGRATED-TC-010".</item>
/// <item>Select the "Work Order" search type from the dropdown.</item>
/// <item>Verify the dropdown displays the selected type.</item>
/// <item>Upload "single_workorder.xlsx" to the "Filter by Work Order" panel (strict only).</item>
/// <item>Click Submit (strict only).</item>
/// <item>Assert no error notification is present (strict only).</item>
/// </list>
/// </remarks>
[Fact]
[Trait("Category", "RequiresDockerHost")]
public Task WorkOrder_SubmitsWithUploadedWorkbook()
{
return RunSearchSubmissionAsync(
UiSearchTypes.WorkOrder,
"MIGRATED-TC-010",
uploads:
[
("Filter by Work Order", "single_workorder.xlsx")
]);
}
}