merge: apply health-probe viewport compatibility fix

Co-authored-by: Erick Garcia <erick@egarcia.dev>
This commit is contained in:
Pradeep Elankumaran
2026-08-19 09:40:49 -07:00
co-authored by Erick Garcia
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -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();
+9
View File
@@ -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');
});
});