From a9282b30bb22f661b0dd20e6d0ef2bb3c5fc30d3 Mon Sep 17 00:00:00 2001 From: German Khokhlov Date: Tue, 3 Nov 2026 21:52:42 +0400 Subject: [PATCH] Expect the session's marks and files drawn on Navara as on Cesium in the one-application switch check --- scripts/qa-app-once.mjs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/scripts/qa-app-once.mjs b/scripts/qa-app-once.mjs index 580b9cc2b..2f542e973 100644 --- a/scripts/qa-app-once.mjs +++ b/scripts/qa-app-once.mjs @@ -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 }, );