chore: increase timeouts for tests creating many pages (#9931)

This commit is contained in:
Alex Rudenko 2023-03-28 17:09:18 +02:00 committed by GitHub
parent 4465f4bd19
commit 9af680d3e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -418,7 +418,9 @@ describe('navigation', function () {
// Expect navigation to succeed. // Expect navigation to succeed.
expect(response.ok()).toBe(true); expect(response.ok()).toBe(true);
}); });
it('should not leak listeners during navigation', async () => { it('should not leak listeners during navigation', async function () {
this.timeout(25_000);
const {page, server} = getTestState(); const {page, server} = getTestState();
let warning = null; let warning = null;
@ -432,7 +434,9 @@ describe('navigation', function () {
process.removeListener('warning', warningHandler); process.removeListener('warning', warningHandler);
expect(warning).toBe(null); expect(warning).toBe(null);
}); });
it('should not leak listeners during bad navigation', async () => { it('should not leak listeners during bad navigation', async function () {
this.timeout(25_000);
const {page} = getTestState(); const {page} = getTestState();
let warning = null; let warning = null;
@ -448,7 +452,9 @@ describe('navigation', function () {
process.removeListener('warning', warningHandler); process.removeListener('warning', warningHandler);
expect(warning).toBe(null); expect(warning).toBe(null);
}); });
it('should not leak listeners during navigation of 11 pages', async () => { it('should not leak listeners during navigation of 11 pages', async function () {
this.timeout(25_000);
const {context, server} = getTestState(); const {context, server} = getTestState();
let warning = null; let warning = null;