From 9af680d3e547a0a0b899d13344aec2b399a32498 Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Tue, 28 Mar 2023 17:09:18 +0200 Subject: [PATCH] chore: increase timeouts for tests creating many pages (#9931) --- test/src/navigation.spec.ts | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/test/src/navigation.spec.ts b/test/src/navigation.spec.ts index b93c89e0..ee5bf6b9 100644 --- a/test/src/navigation.spec.ts +++ b/test/src/navigation.spec.ts @@ -418,7 +418,9 @@ describe('navigation', function () { // Expect navigation to succeed. 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(); let warning = null; @@ -432,7 +434,9 @@ describe('navigation', function () { process.removeListener('warning', warningHandler); 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(); let warning = null; @@ -448,7 +452,9 @@ describe('navigation', function () { process.removeListener('warning', warningHandler); 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(); let warning = null;