test(release): accept 1.25.13 installation and Mnemo bridge
Official contracts and Windows source CI / windows-source (push) Has been cancelled

This commit is contained in:
Agent Workbench Dev
2026-11-11 03:45:07 +08:00
parent 35a6d6d9b2
commit 1e3097004e
13 changed files with 4332 additions and 4 deletions
+2
View File
@@ -7,6 +7,7 @@ import { chromium, _electron, expect } from 'playwright/test';
import { HostController } from '../src/core/desktop/host-controller.mjs';
import { desktopExecutableIdentity } from '../src/core/desktop/app-installation.mjs';
import { projectEnvironment } from '../src/core/process-environment.mjs';
import { openWorkbenchTool } from './ui-navigation.mjs';
if (process.argv.includes('--help')) { console.log('node scripts/verify-local-files.mjs — isolated real Edge/Electron project-picker and HTML preview acceptance; optional AGENT_WORKBENCH_QA_APP_ROOT for immutable candidate. No model requests.'); process.exit(0); }
if (process.argv.length > 2) throw Error('Use --help.');
@@ -26,6 +27,7 @@ const record = name => { checks.push(name); console.log(name + ': passed'); };
const screenshot = async (page, name) => { const file = path.join(root, name + '.png'); await page.screenshot({ path: file }); screenshots.push({ file, sha256: createHash('sha256').update(fs.readFileSync(file)).digest('hex') }); };
const overflow = async page => assert.equal(await page.evaluate(() => document.documentElement.scrollWidth > innerWidth), false);
async function fileFlow(page, label) {
await openWorkbenchTool(page, '项目文件');
const item = page.getByRole('button', { name: '页面.html', exact: true });
await item.waitFor(); await item.click();
const frame = page.frameLocator('iframe[title="HTML 预览:pages/页面.html"]');