test: bind basic file acceptance to the actual release version

This commit is contained in:
Agent Workbench Dev
2026-11-02 09:54:14 +08:00
parent befae3313d
commit 5f23592266
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ try {
await expect(desktopPage.getByRole('dialog')).toBeVisible(); record('electron: existing native picker cancel leaves project unchanged (explicit dialog fixture)');
await application.close(); application = null;
assert.deepEqual(errors, []);
const final = await controller.api('/bootstrap'); assert.equal(final.config.mode, 'demo'); assert.equal(final.config.hasKey, false); assert.equal(final.version, '1.22.1');
const final = await controller.api('/bootstrap'); assert.equal(final.config.mode, 'demo'); assert.equal(final.config.hasKey, false); assert.equal(final.version, original.identity.version);
const result = { success: true, version: final.version, appRoot, root, checks, screenshots, realModelRequests: 0, errors, hostPid: original.identity.pid };
fs.writeFileSync(path.join(root, 'result.json'), JSON.stringify(result, null, 2)); fs.writeFileSync('.qa/local-files-latest.json', JSON.stringify(result, null, 2)); console.log(JSON.stringify({ success: true, checks: checks.length, root }));
} catch (error) {