test: scope selected runtime project assertions to the sidebar

This commit is contained in:
Neil
2026-09-05 20:17:12 -07:00
parent 64374d5dff
commit 178583ab8a
@@ -727,7 +727,12 @@ async function runSelectedRuntimeAddJourney(
...fixture.nestedRepoPaths.map((repoPath) => path.basename(repoPath))
]) {
// Why: duplicate checkout names are disambiguated with a parent path.
await expect(client.page.getByText(projectName, { exact: false }).first()).toBeVisible()
await expect(
client.page
.getByRole('listbox', { name: 'Worktrees', exact: true })
.getByText(projectName, { exact: false })
.first()
).toBeVisible()
}
expect(await client.getDirectSshAttemptTargetIds()).toEqual([])
// Why: revealing the client must not leak into the HUB's window visibility.