зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1698152 - [puppeteer] Improve "Page.close should run beforeunload if asked for" unittest for Firefox. r=remote-protocol-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D108636
This commit is contained in:
Родитель
46d2914958
Коммит
43261f7648
|
@ -66,10 +66,7 @@ describe('Page', function () {
|
|||
expect(dialog.type()).toBe('beforeunload');
|
||||
expect(dialog.defaultValue()).toBe('');
|
||||
if (isChrome) expect(dialog.message()).toBe('');
|
||||
else
|
||||
expect(dialog.message()).toBe(
|
||||
'This page is asking you to confirm that you want to leave - data you have entered may not be saved.'
|
||||
);
|
||||
else expect(dialog.message()).toBeTruthy();
|
||||
await dialog.accept();
|
||||
await pageClosingPromise;
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче