mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-20 22:00:43 +08:00
Fix e2e test suite compatibility with heartwood 1.7.1
- Trim trailing newline from heartwood-release file read to prevent invalid binary paths - Replace repeated --label flags with a single --labels flag (new CLI) - Add --accept verdict to rad patch review calls that lacked one (now required by the CLI)
This commit is contained in:
@@ -15,7 +15,7 @@ export async function create(
|
||||
title,
|
||||
"--description",
|
||||
description,
|
||||
...labels.map(label => ["--label", label]).flat(),
|
||||
...(labels.length > 0 ? ["--labels", labels.join(",")] : []),
|
||||
];
|
||||
const { stdout } = await peer.rad(issueOptions, options);
|
||||
const match = stdout.match(/Issue {3}([a-zA-Z0-9]*)/);
|
||||
|
||||
@@ -387,7 +387,7 @@ export async function createCobsFixture(
|
||||
createOptions(repoFolder, 1),
|
||||
);
|
||||
await eve.rad(
|
||||
["patch", "review", patchThree, "-m", "This looks better"],
|
||||
["patch", "review", patchThree, "-m", "This looks better", "--accept"],
|
||||
createOptions(repoFolder, 2),
|
||||
);
|
||||
await Fs.appendFile(
|
||||
@@ -435,6 +435,7 @@ export async function createCobsFixture(
|
||||
patchFour,
|
||||
"-m",
|
||||
"No review due to patch being archived.",
|
||||
"--accept",
|
||||
],
|
||||
createOptions(repoFolder, 1),
|
||||
);
|
||||
|
||||
@@ -1 +1 @@
|
||||
1.1.0
|
||||
1.7.1
|
||||
|
||||
@@ -26,10 +26,9 @@ export const tmpDir = Path.resolve(supportDir, "..", "./tmp");
|
||||
export const fixturesDir = Path.resolve(supportDir, "..", "./fixtures");
|
||||
const workspacePaths = [Path.join(tmpDir, "peers"), Path.join(tmpDir, "repos")];
|
||||
|
||||
export const heartwoodRelease = await Fs.readFile(
|
||||
`${supportDir}/heartwood-release`,
|
||||
"utf8",
|
||||
);
|
||||
export const heartwoodRelease = (
|
||||
await Fs.readFile(`${supportDir}/heartwood-release`, "utf8")
|
||||
).trim();
|
||||
|
||||
// Assert that binaries are installed and are the correct version.
|
||||
export async function assertBinariesInstalled(
|
||||
|
||||
Reference in New Issue
Block a user