mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-11 13:52:19 +00:00
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.
This commit is contained in:
1 parent
2d0aa25e35
commit
6a7fed6cb7
1 file changed
+3
-2
@@ -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) =>
|
||||
|
||||
Reference in new issue
Block a user