test(pageError): add a failing FF test for page error (#7417)

This commit is contained in:
Pavel Feldman 2021-07-01 13:23:23 -07:00 committed by GitHub
parent dc1e5638bb
commit b9d3cccac0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,6 +31,17 @@ it('should fire', async ({page, server, browserName}) => {
expect(error.stack).toBe(stack);
});
it('should not receive console message for pageError', async ({ page, server, browserName }) => {
it.skip(browserName === 'firefox');
const messages = [];
page.on('console', e => messages.push(e));
await Promise.all([
page.waitForEvent('pageerror'),
page.goto(server.PREFIX + '/error.html'),
]);
expect(messages.length).toBe(1);
});
it('should contain sourceURL', async ({page, server, browserName}) => {
it.fail(browserName === 'webkit');