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:
Henrik Skupin 2021-03-16 15:38:39 +00:00
Родитель 46d2914958
Коммит 43261f7648
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -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;
});