Migrate UI tests to Playwright dotta
This commit is contained in:
@@ -2,12 +2,36 @@ using JdeScoping.Ui.Tests.Support;
|
||||
|
||||
namespace JdeScoping.Ui.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// Playwright UI tests for the "Time Span + Profit Center + Work Order + Item/Operation/MIS" search type (TC-080).
|
||||
/// Validates search form interaction in smoke mode and full submission in strict mode.
|
||||
/// Requires a running Docker host (Category: RequiresDockerHost).
|
||||
/// </summary>
|
||||
public sealed class TimeSpanPcWoPartOpSearchTests(PlaywrightFixture fixture) : SearchFlowTestBase(fixture)
|
||||
{
|
||||
/// <summary>
|
||||
/// Verifies the Time Span + PC + Work Order + Item/Op/MIS search form submits with autocomplete and uploads (TC-080).
|
||||
/// </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-080".</item>
|
||||
/// <item>Select the "Time Span + Profit Center + Work Order + 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_workorder.xlsx" to the "Filter by Work Order" 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 TimeSpanPcWoPartOp_Submits() =>
|
||||
RunSearchSubmissionAsync(
|
||||
public Task TimeSpanPcWoPartOp_Submits()
|
||||
{
|
||||
return RunSearchSubmissionAsync(
|
||||
UiSearchTypes.TimeSpanPcWoPartOp,
|
||||
"MIGRATED-TC-080",
|
||||
"01/01/2019",
|
||||
@@ -19,4 +43,5 @@ public sealed class TimeSpanPcWoPartOpSearchTests(PlaywrightFixture fixture) : S
|
||||
("Filter by Work Order", "single_workorder.xlsx"),
|
||||
("Filter By Item/Operation/MIS", "single_operation.xlsx")
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user