From 6a7fed6cb76d2c5377549d74d59e02cb8d8eb49f Mon Sep 17 00:00:00 2001 From: German Khokhlov Date: Wed, 11 Nov 2026 14:54:50 +0400 Subject: [PATCH] Let waitForEngine take any engine picker value The check added for a missing engine kind rejected navara-hd, a picker value the HD scenario waits for. --- scripts/qa-strict-harness.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/qa-strict-harness.mjs b/scripts/qa-strict-harness.mjs index c570bf9bd..3ca041030 100644 --- a/scripts/qa-strict-harness.mjs +++ b/scripts/qa-strict-harness.mjs @@ -747,8 +747,9 @@ export async function pickEngine( /** Wait until `kind` runs, its picker is idle and its view is restored. */ export async function waitForEngine(page, kind, { timeout = 120000 } = {}) { - if (kind !== 'cesium' && kind !== 'navara') - throw new TypeError(`waitForEngine needs the engine kind, got ${kind}`); + // The engine picker's value: cesium, navara or a Navara variant. + if (typeof kind !== 'string' || !kind) + throw new TypeError('waitForEngine needs the engine picker value'); const started = Date.now(); await page.waitForFunction( (expected) =>