فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test(A04): isolate existing native financial matrix before encrypted company restore
davoodmehraban89 committed
Oct 16, 2026 at 19:11 UTC
e78eeababa046f7279af017cad7f2dba5387e5af
1 file changed
+3
-5
tests/windows-vm-installed-tauri-cdp.cjs
+3
-5
@@ -290,8 +290,9 @@ async function connect(url) {
290
report.dpapi = 'native-Windows-roundtrip-passed';
291
}
292
if (mode === 'fresh') {
293
- // First verify the encrypted company backup from the real Settings UI
294
- // on a clean company; then execute the financial integration matrix.
293
+ // Run the full native financial matrix first, on a clean fresh install,
294
+ // then exercise encrypted company recovery WITH posted ledger/stock data.
295
+ report.nativeFunctional = await verifyNativeFunctionalMatrix(cdp);
296
const script = fs.readFileSync(
297
path.join(__dirname, 'windows-vm-encrypted-company-backup-browser.js'),
298
'utf8'
@@ -308,9 +309,6 @@ async function connect(url) {
309
});
310
report.encryptedCompanyBackup =
311
'native-SettingsUI-AES-GCM-PBKDF2-wrong-password-and-audited-restore-passed';
311
- // The real installed desktop window, not the browser-only preview:
312
- // verify accounting activation, financial journal, stock, backup and RTL.
313
- report.nativeFunctional = await verifyNativeFunctionalMatrix(cdp);
312
}
313
report.status = 'PASSED';
314
console.log(JSON.stringify(report, null, 2));