diff --git a/lib/utils/puppeteer-utils.test.ts b/lib/utils/puppeteer-utils.test.ts index b7b136a5a..edd261a74 100644 --- a/lib/utils/puppeteer-utils.test.ts +++ b/lib/utils/puppeteer-utils.test.ts @@ -74,7 +74,7 @@ describe('puppeteer-utils', () => { waitUntil: 'domcontentloaded', }); expect((await getCookies(page, 'httpbingo.org')).split('; ').sort()).toEqual(['foo=bar', 'baz=qux'].sort()); - }, 15000); + }, 20000); it('setCookies httpbingo', async () => { browser = await puppeteer(); @@ -86,7 +86,7 @@ describe('puppeteer-utils', () => { }); const data = await page.evaluate(() => JSON.parse(document.body.textContent || '')); expect(data).toEqual(Object.fromEntries(cookieArrayExampleCom.map(({ name, value }) => [name, value]))); - }, 15000); + }, 20000); it('setCookies & getCookies example.org', async () => { browser = await puppeteer(); @@ -97,5 +97,5 @@ describe('puppeteer-utils', () => { waitUntil: 'domcontentloaded', }); expect((await getCookies(page, 'example.org')).split('; ').sort()).toEqual(cookieStrAll.split('; ').sort()); - }, 15000); + }, 20000); }); diff --git a/lib/utils/puppeteer.test.ts b/lib/utils/puppeteer.test.ts index 8600fdd01..ce77809fa 100644 --- a/lib/utils/puppeteer.test.ts +++ b/lib/utils/puppeteer.test.ts @@ -55,7 +55,7 @@ describe('puppeteer', () => { // since we don't really care whether puppeteer without stealth passes the bot test, just let it go expect(['present (failed)', '']).toContain(webDriverTest); expect(['missing (failed)', '']).toContain(chromeTest); - }, 15000); + }, 20000); it('puppeteer with stealth', async () => { const { default: puppeteer } = await import('./puppeteer'); @@ -67,7 +67,7 @@ describe('puppeteer', () => { // these are something we really care about expect(webDriverTest).toBe('missing (passed)'); expect(chromeTest).toBe('present (passed)'); - }, 15000); + }, 20000); } it('puppeteer accept http proxy uri w/ auth', async () => {