Skip to content

Commit e8527cb

Browse files
committed
update tracing tests
1 parent 69c71aa commit e8527cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

playwright/src/test/java/com/microsoft/playwright/TestTracing.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ void canCallTracingGroupGroupEndAtAnyTimeAndAutoClose(@TempDir Path tempDir) thr
181181
List<TraceEvent> events = parseTraceEvents(traceFile1);
182182
List<TraceEvent> groups = events.stream().filter(e -> "tracingGroup".equals(e.method)).collect(Collectors.toList());
183183
assertEquals(1, groups.size());
184-
assertEquals("actual", groups.get(0).apiName);
184+
assertEquals("actual", groups.get(0).title);
185185

186186
}
187187

@@ -202,7 +202,7 @@ void traceGroupGroupEnd(@TempDir Path tempDir) throws Exception {
202202
context.tracing().stop(new Tracing.StopOptions().setPath(traceFile1));
203203

204204
List<TraceEvent> events = parseTraceEvents(traceFile1);
205-
List<String> calls = events.stream().filter(e -> e.apiName != null).map(e -> e.apiName).collect(Collectors.toList());
205+
List<String> calls = events.stream().filter(e -> e.title != null).map(e -> e.title).collect(Collectors.toList());
206206
assertEquals(asList("outer group", "Page.navigate", "inner group 1", "Frame.click", "inner group 2", "Page.isVisible"), calls);
207207
}
208208

@@ -284,7 +284,7 @@ public void shouldNotRecordNetworkActions(@TempDir Path tempDir) throws IOExcept
284284
context.tracing().stop(new Tracing.StopOptions().setPath(traceFile1));
285285

286286
List<TraceEvent> events = parseTraceEvents(traceFile1);
287-
List<String> calls = events.stream().filter(e -> e.apiName != null).map(e -> e.apiName)
287+
List<String> calls = events.stream().filter(e -> e.title != null).map(e -> e.title)
288288
.collect(Collectors.toList());
289289
assertEquals(asList("Page.navigate"), calls);
290290
}

0 commit comments

Comments
 (0)