diff --git a/playwright/src/test/java/com/microsoft/playwright/TestPageBasic.java b/playwright/src/test/java/com/microsoft/playwright/TestPageBasic.java index 53b3d0ea..86dbeef2 100644 --- a/playwright/src/test/java/com/microsoft/playwright/TestPageBasic.java +++ b/playwright/src/test/java/com/microsoft/playwright/TestPageBasic.java @@ -67,8 +67,10 @@ public class TestPageBasic extends TestBase { assertEquals("", dialog.message()); } else if (isWebKit()) { assertEquals("Leave?", dialog.message()); - } else { + } else if (isChromium()) { assertEquals("This page is asking you to confirm that you want to leave - data you have entered may not be saved.", dialog.message()); + } else { + assertEquals("This page is asking you to confirm that you want to leave — information you’ve entered may not be saved.", dialog.message()); } dialog.accept(); });