فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
fix(ui): write native PNG buffer as file payload, not as a path.join component
davoodmehraban89 committed
Oct 30, 2026 at 23:27 UTC
8bead9b2fe54406b7a12ec83ea11c505fb206833
1 file changed
+1
-1
tests/windows-vm-installed-tauri-cdp.cjs
+1
-1
@@ -414,7 +414,7 @@ async function connect(url) {
414
assert.ok(image.length > 1000 && image.subarray(1,4).toString('ascii') === 'PNG',
415
'Bad native WebView2 PNG for route ' + route);
416
const filename = 'q01-ui-' + route + '.png';
417
- fs.writeFileSync(path.join(path.dirname(reportPath), filename, image, { flag: 'wx' }));
417
+ fs.writeFileSync(path.join(path.dirname(reportPath), filename), image, { flag: 'wx' });
418
routeScreenshots.push(filename);
419
}
420
report.nativeControlAudit.routeScreenshots = routeScreenshots;