Migrate UI tests to Playwright dotta
This commit is contained in:
@@ -2,12 +2,35 @@ using JdeScoping.Ui.Tests.Support;
|
||||
|
||||
namespace JdeScoping.Ui.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// Playwright UI tests for the "Time Span + Work Center + Operator" search type (TC-150).
|
||||
/// Validates search form interaction in smoke mode and full submission in strict mode.
|
||||
/// Requires a running Docker host (Category: RequiresDockerHost).
|
||||
/// </summary>
|
||||
public sealed class TimeSpanWcOperatorSearchTests(PlaywrightFixture fixture) : SearchFlowTestBase(fixture)
|
||||
{
|
||||
/// <summary>
|
||||
/// Verifies the Time Span + Work Center + Operator search form submits with autocomplete filters (TC-150).
|
||||
/// </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-150".</item>
|
||||
/// <item>Select the "Time Span + Work Center + Operator" 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 "0083AS" to the "Filter by Work Center" panel (strict only).</item>
|
||||
/// <item>Add autocomplete value "ADAMSSN" to the "Filter by Operator" 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 TimeSpanWcOperator_Submits() =>
|
||||
RunSearchSubmissionAsync(
|
||||
public Task TimeSpanWcOperator_Submits()
|
||||
{
|
||||
return RunSearchSubmissionAsync(
|
||||
UiSearchTypes.TimeSpanWcOperator,
|
||||
"MIGRATED-TC-150",
|
||||
"01/01/2019",
|
||||
@@ -16,4 +39,5 @@ public sealed class TimeSpanWcOperatorSearchTests(PlaywrightFixture fixture) : S
|
||||
("Filter by Work Center", "0083AS"),
|
||||
("Filter by Operator", "ADAMSSN")
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user