mirror of
https://github.com/microsoft/playwright-java.git
synced 2026-03-31 20:02:48 +00:00
test: update beforeunload expected text in firefox (#408)
This commit is contained in:
parent
c23afbf9cf
commit
e995996e4f
@ -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();
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user