mirror of
https://github.com/stablyai/orca.git
synced 2026-10-20 16:03:20 +00:00
fix(e2e): rename project entity in jump-palette filter seed
Filter options use project.displayName when a Project exists, so only renaming the repo left the local option labeled with the path basename.
This commit is contained in:
@@ -53,6 +53,13 @@ async function seedPaletteFilterFixture(page: Page): Promise<PaletteFilterFixtur
|
||||
|
||||
const sshTargetLabels = new Map(state.sshTargetLabels)
|
||||
sshTargetLabels.set(remoteConnectionId, remoteHost)
|
||||
// Filter options use project.displayName when a Project entity exists;
|
||||
// renaming only the repo leaves the option labeled with the path basename.
|
||||
const projects = state.projects.map((project) =>
|
||||
project.sourceRepoIds.includes(sourceRepo.id)
|
||||
? { ...project, displayName: localProject }
|
||||
: project
|
||||
)
|
||||
store.setState({
|
||||
repos: [
|
||||
...state.repos.map((repo) =>
|
||||
@@ -60,6 +67,7 @@ async function seedPaletteFilterFixture(page: Page): Promise<PaletteFilterFixtur
|
||||
),
|
||||
remoteRepo
|
||||
],
|
||||
projects,
|
||||
sshTargetLabels,
|
||||
worktreesByRepo: {
|
||||
...state.worktreesByRepo,
|
||||
|
||||
Reference in New Issue
Block a user