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

test(A07): prove installed WebView2 loads Tauri local UI and report full origin

davoodmehraban89 committed Oct 16, 2026 at 19:09 UTC 82ae66885fc159f4cad3b68f8eaeeb325b9f5cd9
1 file changed +2 -1
tests/windows-vm-installed-tauri-cdp.cjs
+2 -1
@@ -7,6 +7,7 @@ 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 +const { verifyNativeOrigin } = require('./windows-vm-native-origin.cjs');
11
12 const [exe, profile, mode, expectedVersion, reportPath] = process.argv.slice(2);
13 assert.equal(process.platform, 'win32');
@@ -129,7 +130,7 @@ async function connect(url) {
130 '(function(){return window.FINORA && document.getElementById("finoraAuthOverlay") && !!globalThis.__TAURI_INTERNALS__?.invoke ? { title:document.title, version:window.FINORA.version, href:location.href, initialMode:document.getElementById("faTitle").textContent, databaseReady:true } : null})()'
131 ), 65000);
132 report.installedNativeTauri = true;
132 - report.browserOrigin = ready.href.replace(/[/#?].*$/, '');
133 + report.browserOrigin = verifyNativeOrigin(ready.href);
134 report.displayedVersion = ready.version;
135 report.versionMatchesPackage = ready.version === expectedVersion;
136 // Verified against git tag v2.0.3: that shipped src/main.js hardcodes