Answer the Nepal event's Facebook embeds with inert stubs in its strict scenario, as its YouTube ones

This commit is contained in:
German Khokhlov committed 2026-11-05 04:07:42 +04:00
1 parent 909be62ae7
commit 0ee92eb864
1 file changed
+16
+16
View File
@@ -36,6 +36,22 @@ const strict = createStrict({
body: '<!doctype html><title>QA player</title><body style="background:#111"></body>', body: '<!doctype html><title>QA player</title><body style="background:#111"></body>',
}), }),
}, },
// A Facebook post the playback reaches in a slower run: its SDK and
// post page, inert as well.
{
pattern: 'https://connect.facebook.net/*',
respond: () => ({
contentType: 'text/javascript',
body: '/* QA: Facebook SDK withheld */',
}),
},
{
pattern: 'https://www.facebook.com/*',
respond: () => ({
contentType: 'text/html',
body: '<!doctype html><title>QA post</title><body style="background:#111"></body>',
}),
},
], ],
}); });
await strict.run({ args: ['--use-angle=metal', '--enable-gpu'] }, async (b) => { await strict.run({ args: ['--use-angle=metal', '--enable-gpu'] }, async (b) => {