Expect the session's marks and files drawn on Navara as on Cesium in the one-application switch check

This commit is contained in:
German Khokhlov committed 2026-11-03 21:52:42 +04:00
1 parent 1a3f6f2486
commit a9282b30bb
1 file changed
+7 -7
+7 -7
View File
@@ -221,18 +221,18 @@ try {
await new Promise((resolve) => setTimeout(resolve, 2000));
report.firstRoundTrip = await listenerCounts(page, { bySource: true });
}
if (kind === 'cesium')
await page.waitForFunction(
() => window.__gevGeoImport.diagnostics().drawn === 1,
{ timeout: 30_000 },
);
// Both engines draw the session's marks and files (Navara since Stage 6).
await page.waitForFunction(
() => window.__gevGeoImport.diagnostics().drawn === 1,
{ timeout: 30_000 },
);
const tools = await readTools(page);
check(
tools.marks === toolsBefore.marks &&
tools.files === toolsBefore.files &&
tools.drawShape === toolsBefore.drawShape &&
tools.marksDrawn === (kind === 'cesium') &&
tools.filesDrawn === (kind === 'cesium' ? 1 : 0),
tools.marksDrawn === true &&
tools.filesDrawn === 1,
`the session tools changed on the switch to ${kind}`,
{ toolsBefore, tools },
);