diff --git a/tests/e2e/project.spec.ts b/tests/e2e/project.spec.ts index 0a02d15ec..31ba43a06 100644 --- a/tests/e2e/project.spec.ts +++ b/tests/e2e/project.spec.ts @@ -3,6 +3,7 @@ import { cobUrl, expect, markdownUrl, + shortBobHead, sourceBrowsingRid, sourceBrowsingUrl, test, @@ -362,7 +363,9 @@ test("peer and branch switching", async ({ page }) => { { await expect(page.getByRole("button", { name: "main" })).toBeVisible(); await expect( - page.getByRole("button", { name: "ff32f18 Update readme" }).first(), + page + .getByRole("button", { name: `${shortBobHead} Update readme` }) + .first(), ).toBeVisible(); await expect( page.getByRole("link", { @@ -370,7 +373,9 @@ test("peer and branch switching", async ({ page }) => { }), ).toBeVisible(); await expect( - page.getByRole("button", { name: "ff32f18 Update readme" }).first(), + page + .getByRole("button", { name: `${shortBobHead} Update readme` }) + .first(), ).toBeVisible(); } } diff --git a/tests/support/fixtures.ts b/tests/support/fixtures.ts index ea47d43e2..bbd890e24 100644 --- a/tests/support/fixtures.ts +++ b/tests/support/fixtures.ts @@ -659,7 +659,7 @@ export const aliceRemote = "did:key:z6MkqGC3nWZhYieEVTVDKW5v588CiGfsDSmRVG9ZwwWTvLSK"; export const bobRemote = "did:key:z6Mkg49NtQR2LyYRDCQFK4w1VVHqhypZSSRo7HsyuN7SV7v5"; -export const bobHead = "ff32f18dc09d82bff329ffcd96fd5eba2d7f826c"; +export const bobHead = "79b0b2522c0d406d398cb5b7b381455294e1489f"; export const shortBobHead = formatCommit(bobHead); export const sourceBrowsingRid = "rad:z4BwwjPCFNVP27FwVbDFgwVwkjcir"; export const cobRid = "rad:z3fpY7nttPPa6MBnAv2DccHzQJnqe"; @@ -685,6 +685,6 @@ export const gitOptions = { GIT_AUTHOR_DATE: "1671125284", GIT_COMMITTER_NAME: "Bob Belcher", GIT_COMMITTER_EMAIL: "bob@radicle.xyz", - GIT_COMMITTER_DATE: "Mon Dec 21 14:00 2022 +0100", + GIT_COMMITTER_DATE: "1671627600", }, }; diff --git a/tests/support/peerManager.ts b/tests/support/peerManager.ts index 5c1e75e04..3b7a9d45a 100644 --- a/tests/support/peerManager.ts +++ b/tests/support/peerManager.ts @@ -238,7 +238,7 @@ export class RadiclePeer { ...gitOptions, RAD_HOME: radHome, RAD_PASSPHRASE: "asdf", - RAD_SEED: node, + RAD_KEYGEN_SEED: node, RAD_SOCKET: socket, }; @@ -412,8 +412,8 @@ export class RadiclePeer { GIT_CONFIG_NOSYSTEM: "1", RAD_HOME: this.#radHome, RAD_PASSPHRASE: "asdf", - RAD_COMMIT_TIME: "1671125284", - RAD_SEED: this.#radSeed, + RAD_LOCAL_TIME: "1671125284", + RAD_KEYGEN_SEED: this.#radSeed, RAD_SOCKET: this.#socket, ...opts?.env, ...this.#gitOptions, diff --git a/tests/support/support.ts b/tests/support/support.ts index 2064438fa..a61ace773 100644 --- a/tests/support/support.ts +++ b/tests/support/support.ts @@ -15,7 +15,7 @@ export function createOptions(projectFolder: string, days: number): Options { return { cwd: projectFolder, // eslint-disable-next-line @typescript-eslint/naming-convention - env: { RAD_COMMIT_TIME: (1671211684 + days * 86400).toString() }, + env: { RAD_LOCAL_TIME: (1671211684 + days * 86400).toString() }, }; }