test: run crash tests with chromium wire (#4026)

This commit is contained in:
Dmitry Gozman 2020-10-01 05:30:27 -07:00 committed by GitHub
parent b74a6b78ef
commit 920cc7c886
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ function crash(page, toImpl, browserName) {
} }
describe('', (suite, { browserName, platform, wire }) => { describe('', (suite, { browserName, platform, wire }) => {
suite.fixme(wire); suite.skip(wire && browserName !== 'chromium');
suite.flaky(browserName === 'firefox' && platform === 'win32'); suite.flaky(browserName === 'firefox' && platform === 'win32');
}, () => { }, () => {
it('should emit crash event when page crashes', async ({page, browserName, toImpl}) => { it('should emit crash event when page crashes', async ({page, browserName, toImpl}) => {
@ -63,10 +63,7 @@ describe('', (suite, { browserName, platform, wire }) => {
expect(error.message).toContain('Navigation failed because page crashed'); expect(error.message).toContain('Navigation failed because page crashed');
}); });
it('should be able to close context when page crashes', (test, { browserName, platform, wire }) => { it('should be able to close context when page crashes', async ({page, browserName, toImpl}) => {
test.fixme(wire);
test.flaky(browserName === 'firefox' && platform === 'win32');
}, async ({page, browserName, toImpl}) => {
await page.setContent(`<div>This page should crash</div>`); await page.setContent(`<div>This page should crash</div>`);
crash(page, toImpl, browserName); crash(page, toImpl, browserName);
await page.waitForEvent('crash'); await page.waitForEvent('crash');