mirror of
https://github.com/stablyai/orca.git
synced 2026-10-03 16:02:11 +00:00
* Split speech session lifecycle * Split terminal output scheduler pipeline * Split mobile browser pane modules * Prune resolved max-lines suppressions * Split pane tree equalization logic * Extract mobile troubleshoot screen styles * Split external automation manager * Split main window service attachments * Split hosted review creation checks * Split automation dispatch event handling * Split settings navigation metadata * Split daemon initialization lifecycle * Split GitLab item dialog * Split relay dispatcher layers * Split mobile host screen * Retarget mobile view settings source test * Fix F3-speech for #17123 * Fix F1-cycle for #17131 * Fix F4-navtest for #17157 * Fix F2-allowlist for #17161
29 lines
951 B
TypeScript
29 lines
951 B
TypeScript
import { readFileSync } from 'node:fs'
|
|
import { describe, expect, it } from 'vitest'
|
|
|
|
const source = readFileSync(
|
|
new URL('../host-screen/use-host-worktree-actions.ts', import.meta.url),
|
|
'utf8'
|
|
)
|
|
|
|
function sliceBetween(startPattern: string, endPattern: string): string {
|
|
const start = source.indexOf(startPattern)
|
|
expect(start).toBeGreaterThanOrEqual(0)
|
|
const end = source.indexOf(endPattern, start)
|
|
expect(end).toBeGreaterThan(start)
|
|
return source.slice(start, end)
|
|
}
|
|
|
|
describe('mobile worktree activation', () => {
|
|
it('opens mobile sessions without foregrounding other paired clients', () => {
|
|
const openSession = sliceBetween(
|
|
'const openWorktreeSession = useCallback(',
|
|
'const openFloatingWorkspace = useCallback'
|
|
)
|
|
|
|
expect(openSession).toContain("sendRequest('worktree.activate'")
|
|
expect(openSession).toContain('notifyClients: false')
|
|
expect(openSession).toContain("navigation: 'caller'")
|
|
})
|
|
})
|