mirror of
https://github.com/stablyai/orca.git
synced 2026-10-23 08:03:39 +00:00
Keep active-delete proof fixture repeatable
This commit is contained in:
@@ -34,7 +34,9 @@ async function seedActiveDeletionRows(page: Page): Promise<{
|
||||
}
|
||||
const state = store.getState()
|
||||
const repo = state.repos[0]
|
||||
const source = repo ? state.worktreesByRepo[repo.id]?.[0] : null
|
||||
const source = repo
|
||||
? state.worktreesByRepo[repo.id]?.find((worktree) => worktree.isMainWorktree)
|
||||
: null
|
||||
if (!repo || !source || !state.settings) {
|
||||
throw new Error('Expected a seeded e2e worktree and hydrated settings')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user