فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test(q01): lock native CDP failure diagnostics and stage markers
davoodmehraban89 committed
Oct 31, 2026 at 08:17 UTC
69c072f587c5e4c6ada166fc0389ad37cf6a23bb
1 file changed
+11
tests/ui-control-structure.test.mjs
+11
@@ -126,6 +126,17 @@ test('A01: financial confirm never executes twice after Confirm/Cancel or while
126
assert.ok(runner.includes('modalKeyboard.staleFinancialConfirmIgnored'));
127
});
128
129
+test('Q01: native CDP diagnostics preserve the failing audit action and exception stack', () => {
130
+ const cdp=fs.readFileSync(path.join(root,'tests','windows-vm-installed-tauri-cdp.cjs'),'utf8');
131
+ const audit=fs.readFileSync(path.join(root,'tests','windows-vm-ui-interaction-audit-browser.js'),'utf8');
132
+ assert.match(cdp,/exception\.description/);
133
+ assert.match(cdp,/detail\.stackTrace\?\.callFrames/);
134
+ assert.match(cdp,/window\.__Q01_AUDIT_STAGE/);
135
+ for(const token of ['safe-action:','confirm-cancel:','open-modal:','audit-completed']) {
136
+ assert.ok(audit.includes(token),'native UI audit missing stage marker '+token);
137
+ }
138
+});
139
+
140
test('Q01: dashboard and cheque tables remain usable in the installed narrow content pane', () => {
141
const styles=fs.readFileSync(path.join(root,'src','styles','main.css'),'utf8');
142
const cheques=fs.readFileSync(path.join(root,'src','views','ChequesView.js'),'utf8');