File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
src/test/java/com/serenitydojo/playwright/toolshop/cucumber/stepdefinitions Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 99
1010public class ScenarioTracingFixtures {
1111
12-
1312 @ Before
14- public void setupTrace () {
13+ public void setupTracing () {
1514 PlaywrightCucumberFixtures .getBrowserContext ().tracing ().start (
1615 new Tracing .StartOptions ()
1716 .setScreenshots (true )
@@ -20,14 +19,13 @@ public void setupTrace() {
2019 );
2120 }
2221
23- @ After (order = 1000 )
24- public void recordTrace (Scenario scenario ) {
25-
26- String traceName = scenario .getName ();
22+ @ After
23+ public void recordTraces (Scenario scenario ) {
24+ String traceName = scenario .getName ().replace (" " ,"-" ).toLowerCase ();
2725 PlaywrightCucumberFixtures .getBrowserContext ().tracing ().stop (
2826 new Tracing .StopOptions ()
2927 .setPath (Paths .get ("target/traces/trace-" + traceName + ".zip" ))
3028 );
31- }
3229
30+ }
3331}
You can’t perform that action at this time.
0 commit comments