This commit is contained in:
2026-07-18 15:21:20 -04:00
parent 6062d5b60c
commit 74f065e0f5
51 changed files with 634 additions and 285 deletions
+4 -3
View File
@@ -15,7 +15,7 @@ public abstract class AuthenticatedPageTest : PageTest
public async Task SignIn()
{
// Use a browser with a UI as requested
await Context.Tracing.StartAsync(new()
await Context.Tracing.StartAsync(new TracingStartOptions
{
Title = TestContext.CurrentContext.Test.ClassName + "." + TestContext.CurrentContext.Test.Name,
Screenshots = true,
@@ -36,9 +36,10 @@ public abstract class AuthenticatedPageTest : PageTest
[TearDown]
public async Task TearDown()
{
await Context.Tracing.StopAsync(new()
await Context.Tracing.StopAsync(new TracingStopOptions
{
Path = Path.Combine(TestContext.CurrentContext.WorkDirectory, "playwright-traces", $"{TestContext.CurrentContext.Test.ClassName}.{TestContext.CurrentContext.Test.Name}.zip")
Path = Path.Combine(TestContext.CurrentContext.WorkDirectory, "playwright-traces",
$"{TestContext.CurrentContext.Test.ClassName}.{TestContext.CurrentContext.Test.Name}.zip")
});
}
}