File tree Expand file tree Collapse file tree 3 files changed +4
-159
lines changed
src/test/java/com/serenitydojo/playwright/toolshop Expand file tree Collapse file tree 3 files changed +4
-159
lines changed Original file line number Diff line number Diff line change 1212import org .junit .jupiter .api .AfterEach ;
1313import org .junit .jupiter .api .BeforeEach ;
1414import org .junit .jupiter .api .Test ;
15+ import org .junit .jupiter .api .TestInfo ;
1516import org .junit .jupiter .api .parallel .Execution ;
1617import org .junit .jupiter .api .parallel .ExecutionMode ;
1718
@@ -52,10 +53,11 @@ void setupTrace(BrowserContext context) {
5253 }
5354
5455 @ AfterEach
55- void recordTrace (BrowserContext context ) {
56+ void recordTrace (TestInfo testInfo , BrowserContext context ) {
57+ String traceName = testInfo .getDisplayName ().replace (" " ,"-" );
5658 context .tracing ().stop (
5759 new Tracing .StopOptions ()
58- .setPath (Paths .get ("trace.zip" ))
60+ .setPath (Paths .get ("trace-" + traceName + " .zip" ))
5961 );
6062 }
6163
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments