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:
parent
c38f7bd034
commit
4deca61b75
|
|
@ -38,7 +38,7 @@ public class Tests : PageTest
|
||||||
{
|
{
|
||||||
await Context.Tracing.StartAsync(new()
|
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,
|
Screenshots = true,
|
||||||
Snapshots = true,
|
Snapshots = true,
|
||||||
Sources = true
|
Sources = true
|
||||||
|
|
@ -84,8 +84,7 @@ public class ExampleTest : PageTest
|
||||||
{
|
{
|
||||||
await Context.Tracing.StartAsync(new()
|
await Context.Tracing.StartAsync(new()
|
||||||
{
|
{
|
||||||
Title = TestContext.CurrentContext.Test.ClassName + "." + TestContext.
|
Title = $"{TestContext.FullyQualifiedTestClassName}.{TestContext.TestName}",
|
||||||
CurrentContext.Test.Name,
|
|
||||||
Screenshots = true,
|
Screenshots = true,
|
||||||
Snapshots = true,
|
Snapshots = true,
|
||||||
Sources = true
|
Sources = true
|
||||||
|
|
@ -100,7 +99,7 @@ public class ExampleTest : PageTest
|
||||||
Path = Path.Combine(
|
Path = Path.Combine(
|
||||||
Environment.CurrentDirectory,
|
Environment.CurrentDirectory,
|
||||||
"playwright-traces",
|
"playwright-traces",
|
||||||
$"{TestContext.CurrentContext.Test.ClassName}.{TestContext.CurrentContext.Test.Name}.zip"
|
$"{TestContext.FullyQualifiedTestClassName}.{TestContext.TestName}.zip"
|
||||||
)
|
)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue