Skip to content

Commit 9edc5f3

Browse files
committed
stable version
1 parent 540808b commit 9edc5f3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ void shouldReportDownloadWhenNavigationTurnsIntoDownload() throws IOException {
9494
byte[] bytes = readAllBytes(path);
9595
assertEquals("Hello world", new String(bytes, UTF_8));
9696
assertNotNull(error[0]);
97-
assertTrue(error[0].getMessage().contains("Download is starting"));
97+
if (!chromiumVersionLessThan(browser.version(), "140.0.0.0")) {
98+
assertTrue(error[0].getMessage().contains("Download is starting"));
99+
}
98100
if (!isFirefox())
99101
assertEquals("about:blank", page.url());
100102
page.close();

0 commit comments

Comments
 (0)