using JdeScoping.Ui.Tests.Support;
namespace JdeScoping.Ui.Tests;
///
/// Playwright UI tests for the "Time Span + Profit Center + Operator" search type (TC-160).
/// Validates search form interaction in smoke mode and full submission in strict mode.
/// Requires a running Docker host (Category: RequiresDockerHost).
///
public sealed class TimeSpanPcOperatorSearchTests(PlaywrightFixture fixture) : SearchFlowTestBase(fixture)
{
///
/// Verifies the Time Span + Profit Center + Operator search form submits with autocomplete filters (TC-160).
///
///
/// Steps (smoke mode stops after step 4; strict mode runs all steps):
///
/// - Navigate to the search page.
/// - Enter the search name "MIGRATED-TC-160".
/// - Select the "Time Span + Profit Center + Operator" 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 "1AM" to the "Filter by Profit Center" panel (strict only).
/// - Add autocomplete value "ADAMSSN" to the "Filter by Operator" panel (strict only).
/// - Click Submit (strict only).
/// - Assert no error notification is present (strict only).
///
///
[Fact]
[Trait("Category", "RequiresDockerHost")]
public Task TimeSpanPcOperator_Submits()
{
return RunSearchSubmissionAsync(
UiSearchTypes.TimeSpanPcOperator,
"MIGRATED-TC-160",
"01/01/2019",
"12/31/2019",
[
("Filter by Profit Center", "1AM"),
("Filter by Operator", "ADAMSSN")
]);
}
}