mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-11-16 19:36:54 +00:00
Drive the packaged app a real scripts/install.sh + hermes desktop install built, against a local bare origin, a local api.github.com stand-in and a scripted model: first run, Update now hand-off/relaunch/chat, a failed Desktop build inside that update, and a second update while one runs. Open bugs are message-gated (gated on #122991).
36 lines
1.3 KiB
TypeScript
36 lines
1.3 KiB
TypeScript
import '../fix-electron-tracing'
|
|
|
|
import { defineConfig } from '@playwright/test'
|
|
|
|
/**
|
|
* Desktop install/update suite (PR-time, Linux).
|
|
*
|
|
* Every spec drives the packaged app a real install built, against that
|
|
* install's real backend, and updates it through the app's own "Update now".
|
|
* globalSetup builds the install once (scripts/install.sh + `hermes desktop
|
|
* --build-only`); each spec restores that snapshot, so specs run serially.
|
|
*
|
|
* - retries: 0 (a required lane must expose flake, not hide it);
|
|
* - one worker: specs share one install path (absolute paths are baked in);
|
|
* - per-test budget covers a real `hermes update` (git pull + product builds +
|
|
* packaging) and the app's relaunch.
|
|
*/
|
|
// Local parallel runs against different install roots need separate output dirs.
|
|
const OUT = process.env.HERMES_E2E_UPDATE_OUT ?? 'update'
|
|
|
|
export default defineConfig({
|
|
testDir: '.',
|
|
testMatch: '*.spec.ts',
|
|
globalSetup: './global-setup.ts',
|
|
timeout: 12 * 60_000,
|
|
expect: { timeout: 60_000 },
|
|
retries: 0,
|
|
workers: 1,
|
|
fullyParallel: false,
|
|
reporter: [['list'], ['html', { open: 'never', outputFolder: `../../playwright-report/${OUT}` }]],
|
|
outputDir: `../../test-results/${OUT}`,
|
|
use: {
|
|
screenshot: 'only-on-failure',
|
|
trace: 'retain-on-failure'
|
|
}
|
|
})
|