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

45 lines
1.9 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using JdeScoping.Ui.Tests.Support;
namespace JdeScoping.Ui.Tests;
/// <summary>
/// Playwright UI tests for the "Time Span + Profit Center + Item/Operation/MIS" search type (TC-070).
/// Validates search form interaction in smoke mode and full submission in strict mode.
/// Requires a running Docker host (Category: RequiresDockerHost).
/// </summary>
public sealed class TimeSpanPcPartOpSearchTests(PlaywrightFixture fixture) : SearchFlowTestBase(fixture)
{
/// <summary>
/// Verifies the Time Span + Profit Center + Item/Operation/MIS search form submits with autocomplete and upload (TC-070).
/// </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-070".</item>
/// <item>Select the "Time Span + Profit Center + Item/Operation/MIS" search type from the dropdown.</item>
/// <item>Verify the dropdown displays the selected type.</item>
/// <item>Set the date range to 01/01/2019 12/31/2019 (strict only).</item>
/// <item>Add autocomplete value "1AM" to the "Filter by Profit Center" panel (strict only).</item>
/// <item>Upload "single_operation.xlsx" to the "Filter By Item/Operation/MIS" 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 TimeSpanPcPartOp_Submits()
{
return RunSearchSubmissionAsync(
UiSearchTypes.TimeSpanPcPartOp,
"MIGRATED-TC-070",
"01/01/2019",
"12/31/2019",
[
("Filter by Profit Center", "1AM")
],
[
("Filter By Item/Operation/MIS", "single_operation.xlsx")
]);
}
}