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

test(ui): gate native Windows UX audit on real hamburger/theme clicks and accessible sidebar semantics

davoodmehraban89 committed Oct 30, 2026 at 23:20 UTC 3ef3797aa4a847f29ad60ece5ce78f3e59ce7c46
1 file changed +6 -1
tests/windows-vm-installed-tauri-cdp.cjs
+6 -1
@@ -380,6 +380,10 @@ async function connect(url) {
380 const audit = await cdp.evaluate(auditSource, 240000);
381 assert.equal(audit.environment, 'installed-Windows-Tauri-WebView2-synthetic-VM');
382 assert.equal(audit.routesVisited, 10);
383 + assert.equal(audit.shellResults.keyboardReachableSidebarLinks, 10);
384 + assert.equal(audit.shellResults.sidebarCollapseClickAndPersistence, true);
385 + assert.equal(audit.shellResults.themeToggleClickAndPersistence, true);
386 + assert.equal(audit.shellResults.activeRouteAriaCurrent, true);
387 assert.ok(audit.inventoryCount >= 25, 'Too few visible controls discovered');
388 assert.ok(audit.safeClickCount >= 15, 'Safe interaction coverage unexpectedly low');
389 assert.equal(audit.customerDataUsed, false);
@@ -387,7 +391,8 @@ async function connect(url) {
391 assert.equal(audit.everyActionVerified, false,
392 'A safe-navigation sweep cannot claim every financial action is verified');
393 report.nativeControlAudit = {
390 - routesVisited: audit.routesVisited, inventoryCount: audit.inventoryCount,
394 + routesVisited: audit.routesVisited, shellResults: audit.shellResults,
395 + inventoryCount: audit.inventoryCount,
396 safeClickCount: audit.safeClickCount, skippedCount: audit.skippedCount,
397 accessibilityNameGaps: audit.accessibilityNameGaps,
398 brokenHandlerCount: audit.brokenHandlerCount,