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

test(A04): invoke real encrypted company backup UI smoke in freshly installed native app

davoodmehraban89 committed Oct 16, 2026 at 18:53 UTC df407f985faa89a89d9d5fa8be648f6bb1f8f351
1 file changed +18
tests/windows-vm-installed-tauri-cdp.cjs
+18
@@ -288,6 +288,24 @@ async function connect(url) {
288 assert.deepEqual(dpapi, {roundtrip:true,encrypted:true,hex:true});
289 report.dpapi = 'native-Windows-roundtrip-passed';
290 }
291 + if (mode === 'fresh') {
292 + const script = fs.readFileSync(
293 + path.join(__dirname, 'windows-vm-encrypted-company-backup-browser.js'),
294 + 'utf8'
295 + );
296 + const validated = await cdp.evaluate(script);
297 + assert.deepEqual(validated, {
298 + encryptedEnvelope: true,
299 + filenameSuffix: '.fbackup',
300 + wrongPasswordRejected: true,
301 + sameCompanyRestore: true,
302 + restoredContact: true,
303 + restoreAudited: true,
304 + plaintextSensitiveDataAbsent: true
305 + });
306 + report.encryptedCompanyBackup =
307 + 'native-SettingsUI-AES-GCM-PBKDF2-wrong-password-and-audited-restore-passed';
308 + }
309 report.status = 'PASSED';
310 console.log(JSON.stringify(report, null, 2));
311 } catch (err) {