test: longger puppeteer timeout
This commit is contained in:
parent
045eaf664c
commit
bc2fd88abf
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue