Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AudioCuesheetEditor.End2EndTests/MSTestSettings.cs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[assembly: Parallelize()]
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]
3 changes: 2 additions & 1 deletion AudioCuesheetEditor.End2EndTests/Models/DetailView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,12 @@ internal async Task OpenRenameAudiofileDialogAsync(int audiofileIndex)

async Task EditTrackFieldAsync(int trackPosition, string dataLabel, string value)
{
var row = _page.Locator("tbody tr:not([aria-hidden='true'])").Nth(trackPosition - 1);
var row = _page.Locator("tbody tr").Nth(trackPosition);
var cell = row.Locator($"td[data-label='{dataLabel}']");
await cell.ClickAsync();
var textbox = cell.Locator("input[type='text']");
await textbox.FillAsync(value);
await textbox.PressAsync("Tab");
// Click outside the autocomplete to have an focus lost event for getting the value written to model
await _page.GetByRole(AriaRole.Heading, new() { Name = "Playback" }).ClickAsync(new() { Force = true });
await _page.WaitForTimeoutAsync(100);
Expand Down
2 changes: 2 additions & 0 deletions AudioCuesheetEditor.End2EndTests/Tests/PlaywrightTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public async Task TestInitializeAsync()
_testContextInstance = Context;
TestPage = Page;
}
await _testContextInstance.ClearCookiesAsync();
await _testContextInstance.Tracing.StartAsync(new()
{
Title = $"{TestContext.FullyQualifiedTestClassName}.{TestContext.TestName}",
Expand Down Expand Up @@ -68,6 +69,7 @@ await _testContextInstance.Tracing.StopAsync(new()
$"{TestContext.FullyQualifiedTestClassName}.{TestContext.TestName}.zip"
) : null,
});
await _testContextInstance.CloseAsync();
}
}
}