The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(release): isolate desktop CI fixtures
ethernet7e4139d967e5
diff --git a/apps/desktop/scripts/store-package-version.test.mjs b/apps/desktop/scripts/store-package-version.test.mjsindex 352558cb327..60f4e5501e7 100644--- a/apps/desktop/scripts/store-package-version.test.mjs+++ b/apps/desktop/scripts/store-package-version.test.mjs@@ -12,6 +12,12 @@ import { substituteManifestMacros } from '../../../node_modules/app-builder-lib/const roots = []afterEach(() => { for (const root of roots.splice(0)) fs.rmSync(root, { recursive: true, force: true }) })const desktop = fileURLToPath(new URL('../', import.meta.url))+const gitIdentityEnv = {+ GIT_AUTHOR_NAME: 'Test',+ GIT_AUTHOR_EMAIL: '[email protected]',+ GIT_COMMITTER_NAME: 'Test',+ GIT_COMMITTER_EMAIL: '[email protected]'+}function fixture() {const root = fs.mkdtempSync(path.join(os.tmpdir(), 'store-manifest-'))@@ -21,8 +27,7 @@ function fixture() {fs.copyFileSync(path.join(desktop, 'assets/msix-manifest.xml'), path.join(app, 'assets/msix-manifest.xml'))fs.writeFileSync(path.join(app, 'product-identity.cjs'), "module.exports={store:true,artifactNamePascal:'HermesBundled'}\n")fs.writeFileSync(path.join(app, 'package.json'), JSON.stringify({ name: 'hermes', version: '0.27.1' }))- const env = { ...process.env, GIT_AUTHOR_NAME: 'Test', GIT_AUTHOR_EMAIL: '[email protected]',- GIT_COMMITTER_NAME: 'Test', GIT_COMMITTER_EMAIL: '[email protected]',+ const env = { ...process.env, ...gitIdentityEnv,GIT_AUTHOR_DATE: '2026-09-07T00:18:00Z', GIT_COMMITTER_DATE: '2026-09-07T00:18:00Z' }for (const args of [['init', '-q'], ['add', '.'], ['-c', 'commit.gpgsign=false', 'commit', '-qm', 'fixture'], ['tag', 'v0.27.1']]) {execFileSync('git', args, { cwd: root, env, stdio: 'pipe' })@@ -86,7 +91,7 @@ test('stable candidate identity uses the admitted claim epoch before the final texecFileSync('git', ['tag', '-d', 'v0.27.1'], { cwd: root, stdio: 'pipe' })execFileSync('git', ['tag', '-a', 'v0.27.1-rc', '-m', 'claim'], {cwd: root,- env: { ...process.env, GIT_COMMITTER_DATE: '2026-09-07T00:18:00Z' },+ env: { ...process.env, ...gitIdentityEnv, GIT_COMMITTER_DATE: '2026-09-07T00:18:00Z' },stdio: 'pipe'})const epoch = Date.parse('2026-09-07T00:18:00Z') / 1000diff --git a/apps/desktop/src/app/settings/custom-endpoints-settings.test.tsx b/apps/desktop/src/app/settings/custom-endpoints-settings.test.tsxindex f93c63b51be..3d111171703 100644--- a/apps/desktop/src/app/settings/custom-endpoints-settings.test.tsx+++ b/apps/desktop/src/app/settings/custom-endpoints-settings.test.tsx@@ -151,11 +151,11 @@ describe('CustomEndpointsSettings', () => {await waitFor(() => expect(getCustomEndpoints).toHaveBeenCalledWith('content-studio'))expect(screen.getByText('Applies to')).toBeTruthy()- fireEvent.change(screen.getByPlaceholderText('Axet Proxy'), { target: { value: 'Studio gateway' } })- fireEvent.change(screen.getByPlaceholderText('http://127.0.0.1:8081/v1'), {+ fireEvent.change(await screen.findByPlaceholderText('Axet Proxy'), { target: { value: 'Studio gateway' } })+ fireEvent.change(await screen.findByPlaceholderText('http://127.0.0.1:8081/v1'), {target: { value: 'https://studio.example.com/v1' }})- fireEvent.change(screen.getByPlaceholderText('gpt-5.4'), { target: { value: 'studio-model' } })+ fireEvent.change(await screen.findByPlaceholderText('gpt-5.4'), { target: { value: 'studio-model' } })fireEvent.click(screen.getByRole('button', { name: 'Save' }))expect(saveCustomEndpoint).toHaveBeenCalledWith(