Skip to content

The agent that grows with you

1.0 KB
Raw Blame
import type { ElectronApplication, Page } from '@playwright/test'

import type { BackendProcess } from '../../../tests-js/scripts/desktop-smoke-process.ts'

export interface UpdateWindowIdentity {
  hermesRoot: string
  hermesHome?: string
}

export interface UpdateWindowChatOptions {
  mockUrl: string
  outDir: string
  expectCommit: string
  origin: 'source' | 'bundled'
  root: string
  executable: string
  userData: string
}

export interface UpdateWindowProcess {
  executable: string
  resources: string
  userData: string
}

export function assertUpdateWindowProcess(
  running: UpdateWindowProcess,
  options: Pick<UpdateWindowChatOptions, 'executable' | 'origin' | 'root' | 'userData'>,
): void

export function assertUpdateWindowBackendOrigin(
  backend: BackendProcess,
  identity: UpdateWindowIdentity,
  root: string,
  origin: 'source' | 'bundled',
  installedCommit?: string,
): void

export function runUpdateWindowChat(
  app: ElectronApplication,
  page: Page,
  options: UpdateWindowChatOptions,
): Promise<void>