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:
Jinjing
2026-08-04 23:51:22 -07:00
parent f3a622d111
commit 2a3458f2be
@@ -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,