using JdeScoping.Ui.Tests.Support;
namespace JdeScoping.Ui.Tests;
///
/// Playwright UI tests for the "Time Span + Work Center + Work Order + Item/Operation/MIS" search type (TC-130).
/// Validates search form interaction in smoke mode and full submission in strict mode.
/// Requires a running Docker host (Category: RequiresDockerHost).
///
public sealed class TimeSpanWcWoPartOpSearchTests(PlaywrightFixture fixture) : SearchFlowTestBase(fixture)
{
///
/// Verifies the Time Span + WC + Work Order + Item/Op/MIS search form submits with autocomplete and uploads (TC-130).
///
///
/// Steps (smoke mode stops after step 4; strict mode runs all steps):
///
/// - Navigate to the search page.
/// - Enter the search name "MIGRATED-TC-130".
/// - Select the "Time Span + Work Center + Work Order + Item/Operation/MIS" search type from the dropdown.
/// - Verify the dropdown displays the selected type.
/// - Set the date range to 01/01/2019 – 12/31/2019 (strict only).
/// - Add autocomplete value "0083AS" to the "Filter by Work Center" panel (strict only).
/// - Upload "single_workorder.xlsx" to the "Filter by Work Order" panel (strict only).
/// - Upload "single_operation.xlsx" to the "Filter By Item/Operation/MIS" panel (strict only).
/// - Click Submit (strict only).
/// - Assert no error notification is present (strict only).
///
///
[Fact]
[Trait("Category", "RequiresDockerHost")]
public Task TimeSpanWcWoPartOp_Submits()
{
return RunSearchSubmissionAsync(
UiSearchTypes.TimeSpanWcWoPartOp,
"MIGRATED-TC-130",
"01/01/2019",
"12/31/2019",
[
("Filter by Work Center", "0083AS")
],
[
("Filter by Work Order", "single_workorder.xlsx"),
("Filter By Item/Operation/MIS", "single_operation.xlsx")
]);
}
}