Skip to content

Commit 540808b

Browse files
committed
update tests
1 parent f244345 commit 540808b

File tree

6 files changed

+3
-139
lines changed

6 files changed

+3
-139
lines changed

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

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -93,18 +93,10 @@ void shouldReportDownloadWhenNavigationTurnsIntoDownload() throws IOException {
9393
assertTrue(Files.exists(path));
9494
byte[] bytes = readAllBytes(path);
9595
assertEquals("Hello world", new String(bytes, UTF_8));
96-
if (isChromium()) {
97-
assertNotNull(error[0]);
98-
assertTrue(error[0].getMessage().contains("net::ERR_ABORTED"));
96+
assertNotNull(error[0]);
97+
assertTrue(error[0].getMessage().contains("Download is starting"));
98+
if (!isFirefox())
9999
assertEquals("about:blank", page.url());
100-
} else if (isWebKit()) {
101-
assertNotNull(error[0]);
102-
assertTrue(error[0].getMessage().contains("Download is starting"));
103-
assertEquals("about:blank", page.url());
104-
} else {
105-
assertNotNull(error[0]);
106-
assertTrue(error[0].getMessage().contains("Download is starting"));
107-
}
108100
page.close();
109101
}
110102

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

Lines changed: 0 additions & 88 deletions
This file was deleted.

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

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -269,27 +269,6 @@ void shouldTraceVariousAPIs(@TempDir Path tempDir) throws Exception {
269269
calls);
270270
}
271271

272-
@Test
273-
public void shouldNotRecordNetworkActions(@TempDir Path tempDir) throws IOException {
274-
context.tracing().start(new Tracing.StartOptions());
275-
276-
page.onRequest(request -> {
277-
request.allHeaders();
278-
});
279-
page.onResponse(response -> {
280-
response.text();
281-
});
282-
page.navigate(server.EMPTY_PAGE);
283-
284-
Path traceFile1 = tempDir.resolve("trace1.zip");
285-
context.tracing().stop(new Tracing.StopOptions().setPath(traceFile1));
286-
287-
List<TraceEvent> events = parseTraceEvents(traceFile1);
288-
List<String> calls = events.stream().filter(e -> e.renderedTitle() != null).map(e -> e.renderedTitle())
289-
.collect(Collectors.toList());
290-
assertEquals(asList("Frame.goto"), calls);
291-
}
292-
293272
private static class TraceEvent {
294273
String type;
295274
String name;

playwright/src/test/resources/simple-extension/content-script.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

playwright/src/test/resources/simple-extension/index.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

playwright/src/test/resources/simple-extension/manifest.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)