From e36b16592abe454475134974c438d07e43168db5 Mon Sep 17 00:00:00 2001 From: Daniel Norman Date: Tue, 20 Oct 2026 14:50:24 +0200 Subject: [PATCH] explorer: Run e2e tests on heartwood 1.10.3 - Bump heartwood-release to 1.10.3, as desktop uses - Spread defaultConfig into the peer config instead of nesting it - Clone from the known seed, as 1.10 no longer waits for one - Match the full agent version on the node page --- explorer/tests/e2e/node.spec.ts | 2 +- explorer/tests/support/fixtures.ts | 4 +++- explorer/tests/support/heartwood-release | 2 +- explorer/tests/support/peerManager.ts | 2 +- explorer/tests/support/repo.ts | 4 +++- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/explorer/tests/e2e/node.spec.ts b/explorer/tests/e2e/node.spec.ts index 70e467743..b021440d6 100644 --- a/explorer/tests/e2e/node.spec.ts +++ b/explorer/tests/e2e/node.spec.ts @@ -23,7 +23,7 @@ test("node metadata", async ({ page, peerManager }) => { await page.goto(peer.uiUrl()); await expect(page.getByText(shortNodeRemote).first()).toBeVisible(); - await expect(page.getByText(/\/radicle:\d\//)).toBeVisible(); + await expect(page.getByText(/\/radicle:[\d.]+\//)).toBeVisible(); }); test("node repos", async ({ page }) => { diff --git a/explorer/tests/support/fixtures.ts b/explorer/tests/support/fixtures.ts index feeaceb29..0f0c46d7c 100644 --- a/explorer/tests/support/fixtures.ts +++ b/explorer/tests/support/fixtures.ts @@ -274,7 +274,9 @@ export async function createCobsFixture( await eve.startNode({ node: { ...defaultConfig.node, connect: [peer.address], alias: "eve" }, }); - await eve.rad(["clone", rid], { cwd: eve.checkoutPath }); + await eve.rad(["clone", rid, "--seed", peer.nodeId], { + cwd: eve.checkoutPath, + }); const issueOne = await issue.create( peer, diff --git a/explorer/tests/support/heartwood-release b/explorer/tests/support/heartwood-release index 9c6d6293b..587c5f0c7 100644 --- a/explorer/tests/support/heartwood-release +++ b/explorer/tests/support/heartwood-release @@ -1 +1 @@ -1.6.1 +1.10.3 diff --git a/explorer/tests/support/peerManager.ts b/explorer/tests/support/peerManager.ts index 8c0006d92..6b58841f5 100644 --- a/explorer/tests/support/peerManager.ts +++ b/explorer/tests/support/peerManager.ts @@ -405,7 +405,7 @@ async function updateConfig(radHome: string, configParams: Partial) { const configPath = Path.join(radHome, "config.json"); const configFile = await Fs.readFile(configPath, "utf-8"); const config = configSchema.parse({ - defaultConfig, + ...defaultConfig, ...JSON.parse(configFile), }); config.preferredSeeds = []; diff --git a/explorer/tests/support/repo.ts b/explorer/tests/support/repo.ts index f1b4312d2..cd80cfa0a 100644 --- a/explorer/tests/support/repo.ts +++ b/explorer/tests/support/repo.ts @@ -94,7 +94,9 @@ export async function createContributor( await contributor.startNode({ node: { ...defaultConfig.node, connect: [delegate.address], alias: "eve" }, }); - await contributor.rad(["clone", rid], { cwd: contributor.checkoutPath }); + await contributor.rad(["clone", rid, "--seed", delegate.nodeId], { + cwd: contributor.checkoutPath, + }); return { contributor,