Apply suggestions from code review

Co-authored-by: Max Schmitt <max@schmitt.mx>
Signed-off-by: Debbie O'Brien <debs-obrien@users.noreply.github.com>
This commit is contained in:
Debbie O'Brien 2024-05-06 17:41:50 +02:00 committed by GitHub
parent c38f7bd034
commit 4deca61b75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,7 +38,7 @@ public class Tests : PageTest
{
await Context.Tracing.StartAsync(new()
{
Title = TestContext.CurrentContext.Test.ClassName + "." + TestContext.CurrentContext.Test.Name,
Title = $"{TestContext.CurrentContext.Test.ClassName}.{TestContext.CurrentContext.Test.Name}",
Screenshots = true,
Snapshots = true,
Sources = true
@ -84,8 +84,7 @@ public class ExampleTest : PageTest
{
await Context.Tracing.StartAsync(new()
{
Title = TestContext.CurrentContext.Test.ClassName + "." + TestContext.
CurrentContext.Test.Name,
Title = $"{TestContext.FullyQualifiedTestClassName}.{TestContext.TestName}",
Screenshots = true,
Snapshots = true,
Sources = true
@ -100,7 +99,7 @@ public class ExampleTest : PageTest
Path = Path.Combine(
Environment.CurrentDirectory,
"playwright-traces",
$"{TestContext.CurrentContext.Test.ClassName}.{TestContext.CurrentContext.Test.Name}.zip"
$"{TestContext.FullyQualifiedTestClassName}.{TestContext.TestName}.zip"
)
});
}