test(pageError): add a failing FF test for page error (#7417)
This commit is contained in:
parent
dc1e5638bb
commit
b9d3cccac0
|
|
@ -31,6 +31,17 @@ it('should fire', async ({page, server, browserName}) => {
|
||||||
expect(error.stack).toBe(stack);
|
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('should contain sourceURL', async ({page, server, browserName}) => {
|
||||||
it.fail(browserName === 'webkit');
|
it.fail(browserName === 'webkit');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue