From 049bf808ab24ec7712a2dd0e72e80ce5b65360a0 Mon Sep 17 00:00:00 2001 From: OrcaWin Date: Fri, 9 Oct 2026 03:50:06 -0700 Subject: [PATCH] test(e2e): keep two host sections in the catalog-retry reconnect test (#26838) Co-authored-by: m4air --- tests/e2e/ssh-orcad-auto-convert.spec.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/e2e/ssh-orcad-auto-convert.spec.ts b/tests/e2e/ssh-orcad-auto-convert.spec.ts index 78d9f8a7e54..8ab5200244d 100644 --- a/tests/e2e/ssh-orcad-auto-convert.spec.ts +++ b/tests/e2e/ssh-orcad-auto-convert.spec.ts @@ -473,8 +473,9 @@ function connectOnce(page: Page, targetId: string): Promise { }, targetId) } -test('reconnect restores the managed host name after its conversion catalog fails', async (// oxlint-disable-next-line no-empty-pattern -- This persistent-profile test owns its Electron launches. -{}, testInfo) => { +test('reconnect restores the managed host name after its conversion catalog fails', async ({ + testRepoPath +}, testInfo) => { test.skip(HOST !== 'docker', 'Catalog fault injection uses the isolated Linux Docker host') test.setTimeout(180_000) const scratch = mkdtempSync(path.join(os.tmpdir(), 'orca-catalog-retry-')) @@ -486,6 +487,8 @@ test('reconnect restores the managed host name after its conversion catalog fail const first = await session.launch() app = first.app await waitForSessionReady(first.page) + // A local project keeps a second host section, so the managed host header renders. + await first.page.evaluate((repoPath) => window.api.repos.add({ path: repoPath }), testRepoPath) await session.close(app) app = null const seeded = seedRelayEraProfile(session.userDataDir, host.input, {