فینورا پرو - سامانه جامع حسابداری و صدور فاکتور

test(A04): distinguish empty migrated history from intentionally persisted audit event on restart

davoodmehraban89 committed Oct 16, 2026 at 18:46 UTC 5647fc07b02e63d8ac02457544244b746a207587
1 file changed +2 -1
tests/windows-vm-installed-tauri-cdp.cjs
+2 -1
@@ -194,7 +194,8 @@ async function connect(url) {
194 assert.equal(restored.version, 7);
195 assert.equal(restored.product, 'Synthetic VM product');
196 assert.equal(restored.amount, 987654);
197 - assert.equal(restored.audits, 0, 'migration must not manufacture historical audit events');
197 + assert.equal(restored.audits, mode === 'upgrade' ? 0 : 1,
198 + 'migration must not fabricate history; an explicitly created event must persist after restart');
199 assert.equal(restored.corrections, true);
200 report.indexedDb = mode === 'upgrade' ?
201 'real-WebView2-v6-to-v7-passed' : 'persisted-real-WebView2-v7-on-restart';