feat: integrate native BPM task processing and strict Excel test rules

This commit is contained in:
abaishu0730 committed 2026-10-23 12:01:55 +08:00
commit 8cb6a32876
444 files changed
+17045 -3182

No files matched your search

+2 -24
View File
@@ -1,24 +1,2 @@
const fs = require('node:fs');
const os = require('node:os');
const path = require('node:path');
function loadPlaywright() {
const candidates = [
'playwright-core',
process.env.ORDER_PLAYWRIGHT_MODULE,
path.join(os.homedir(), '.cache/codex-runtimes/codex-primary-runtime/dependencies/node/node_modules/playwright-core')
].filter(Boolean);
for (const candidate of candidates) {
try { return require(candidate); } catch (error) { if (error.code !== 'MODULE_NOT_FOUND') throw error; }
}
throw new Error('缺少 playwright-core,请先运行 npm install。');
}
function browserOptions() {
const candidates = [process.env.ORDER_CHROME_PATH,
process.env.PROGRAMFILES && path.join(process.env.PROGRAMFILES, 'Google/Chrome/Application/chrome.exe'),
process.env['PROGRAMFILES(X86)'] && path.join(process.env['PROGRAMFILES(X86)'], 'Google/Chrome/Application/chrome.exe'),
process.env.LOCALAPPDATA && path.join(process.env.LOCALAPPDATA, 'Google/Chrome/Application/chrome.exe')].filter(Boolean);
const executablePath = candidates.find(candidate => fs.existsSync(candidate));
return executablePath ? { executablePath, headless: true } : { channel: 'chrome', headless: true };
}
module.exports = { loadPlaywright, browserOptions };
'use strict';
module.exports=require('./platform/browser.cjs');