فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test(A04): compose encrypted backup with existing native finance integration matrix
davoodmehraban89 committed
Oct 16, 2026 at 18:58 UTC
24e07c69f9eb0ca72adc844dd5e6171a50419e88
1 file changed
+6
tests/windows-vm-installed-tauri-cdp.cjs
+6
@@ -6,6 +6,7 @@ const assert = require('node:assert/strict');
6
const fs = require('node:fs');
7
const path = require('node:path');
8
const { spawn, execFileSync } = require('node:child_process');
9
+const verifyNativeFunctionalMatrix = require('./windows-vm-native-functional-matrix.cjs');
10
11
const [exe, profile, mode, expectedVersion, reportPath] = process.argv.slice(2);
12
assert.equal(process.platform, 'win32');
@@ -289,6 +290,8 @@ 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.
295
const script = fs.readFileSync(
296
path.join(__dirname, 'windows-vm-encrypted-company-backup-browser.js'),
297
'utf8'
@@ -305,6 +308,9 @@ async function connect(url) {
308
});
309
report.encryptedCompanyBackup =
310
'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);
314
}
315
report.status = 'PASSED';
316
console.log(JSON.stringify(report, null, 2));