Migrate UI tests to Playwright dotta
This commit is contained in:
@@ -2,12 +2,34 @@ using JdeScoping.Ui.Tests.Support;
|
||||
|
||||
namespace JdeScoping.Ui.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// Playwright UI tests for the "Time Span + Item Number" search type (TC-140).
|
||||
/// Validates search form interaction in smoke mode and full submission with workbook upload in strict mode.
|
||||
/// Requires a running Docker host (Category: RequiresDockerHost).
|
||||
/// </summary>
|
||||
public sealed class TimeSpanItemNumberSearchTests(PlaywrightFixture fixture) : SearchFlowTestBase(fixture)
|
||||
{
|
||||
/// <summary>
|
||||
/// Verifies the Time Span + Item Number search form submits with an uploaded workbook filter (TC-140).
|
||||
/// </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-140".</item>
|
||||
/// <item>Select the "Time Span + Item Number" 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>Upload "single_item.xlsx" to the "Filter by Item Number" 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 TimeSpanItemNumber_Submits() =>
|
||||
RunSearchSubmissionAsync(
|
||||
public Task TimeSpanItemNumber_Submits()
|
||||
{
|
||||
return RunSearchSubmissionAsync(
|
||||
UiSearchTypes.TimeSpanItem,
|
||||
"MIGRATED-TC-140",
|
||||
"01/01/2019",
|
||||
@@ -16,4 +38,5 @@ public sealed class TimeSpanItemNumberSearchTests(PlaywrightFixture fixture) : S
|
||||
[
|
||||
("Filter by Item Number", "single_item.xlsx")
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user