From 0ee92eb8640b8f96c7977f4e6cad0166c2fdaa77 Mon Sep 17 00:00:00 2001 From: German Khokhlov Date: Thu, 5 Nov 2026 04:07:42 +0400 Subject: [PATCH] Answer the Nepal event's Facebook embeds with inert stubs in its strict scenario, as its YouTube ones --- scripts/qa-nepal-event-switch.mjs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/scripts/qa-nepal-event-switch.mjs b/scripts/qa-nepal-event-switch.mjs index bdcdb2aa9..4765aba43 100644 --- a/scripts/qa-nepal-event-switch.mjs +++ b/scripts/qa-nepal-event-switch.mjs @@ -36,6 +36,22 @@ const strict = createStrict({ body: 'QA player', }), }, + // 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: 'QA post', + }), + }, ], }); await strict.run({ args: ['--use-angle=metal', '--enable-gpu'] }, async (b) => {