mirror of
https://github.com/jo-inc/camofox-browser.git
synced 2026-10-02 04:14:41 +08:00
merge: apply health-probe viewport compatibility fix
Co-authored-by: Erick Garcia <erick@egarcia.dev>
This commit is contained in:
@@ -6409,7 +6409,7 @@ setInterval(async () => {
|
||||
|
||||
let testContext;
|
||||
try {
|
||||
testContext = await browser.newContext();
|
||||
testContext = await browser.newContext({ viewport: null });
|
||||
const page = await testContext.newPage();
|
||||
await page.goto('about:blank', { timeout: 5000 });
|
||||
await page.close();
|
||||
|
||||
@@ -48,4 +48,13 @@ describe('launch compatibility source contract', () => {
|
||||
expect(sessionContextOptions).toContain('viewport: null');
|
||||
expect(`${googleProbeOptions}\n${sessionContextOptions}`).not.toMatch(/viewport\s*:\s*\{\s*width\s*:/);
|
||||
});
|
||||
|
||||
test('health probe context also uses a null viewport', () => {
|
||||
const healthProbeOptions = sourceBetween(
|
||||
'testContext = await browser.newContext(',
|
||||
'const page = await testContext.newPage();'
|
||||
);
|
||||
|
||||
expect(healthProbeOptions).toContain('viewport: null');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user