s/accept/dismiss

This commit is contained in:
Joel Einbinder 2019-11-26 17:17:57 -08:00
parent 8c7e29d6af
commit 27b39dfb0a

View file

@ -53,7 +53,7 @@ module.exports.addTests = function({testRunner, expect, FFOX, CHROME, WEBKIT}) {
const result = await page.evaluate(() => confirm('boolean?'));
expect(result).toBe(true);
});
it('should accept the confirm prompt', async({page, server}) => {
it('should dismiss the confirm prompt', async({page, server}) => {
page.on('dialog', dialog => {
dialog.dismiss();
});