mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-06 11:24:00 +00:00
Expect the session's marks and files drawn on Navara as on Cesium in the one-application switch check
This commit is contained in:
1 parent
1a3f6f2486
commit
a9282b30bb
1 file changed
+7
-7
@@ -221,18 +221,18 @@ try {
|
|||||||
await new Promise((resolve) => setTimeout(resolve, 2000));
|
await new Promise((resolve) => setTimeout(resolve, 2000));
|
||||||
report.firstRoundTrip = await listenerCounts(page, { bySource: true });
|
report.firstRoundTrip = await listenerCounts(page, { bySource: true });
|
||||||
}
|
}
|
||||||
if (kind === 'cesium')
|
// Both engines draw the session's marks and files (Navara since Stage 6).
|
||||||
await page.waitForFunction(
|
await page.waitForFunction(
|
||||||
() => window.__gevGeoImport.diagnostics().drawn === 1,
|
() => window.__gevGeoImport.diagnostics().drawn === 1,
|
||||||
{ timeout: 30_000 },
|
{ timeout: 30_000 },
|
||||||
);
|
);
|
||||||
const tools = await readTools(page);
|
const tools = await readTools(page);
|
||||||
check(
|
check(
|
||||||
tools.marks === toolsBefore.marks &&
|
tools.marks === toolsBefore.marks &&
|
||||||
tools.files === toolsBefore.files &&
|
tools.files === toolsBefore.files &&
|
||||||
tools.drawShape === toolsBefore.drawShape &&
|
tools.drawShape === toolsBefore.drawShape &&
|
||||||
tools.marksDrawn === (kind === 'cesium') &&
|
tools.marksDrawn === true &&
|
||||||
tools.filesDrawn === (kind === 'cesium' ? 1 : 0),
|
tools.filesDrawn === 1,
|
||||||
`the session tools changed on the switch to ${kind}`,
|
`the session tools changed on the switch to ${kind}`,
|
||||||
{ toolsBefore, tools },
|
{ toolsBefore, tools },
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user