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:
Rūdolfs Ošiņš
2026-03-23 10:59:25 -06:00
parent 81388f2101
commit 293f6adb52
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -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]*)/);
+2 -1
View File
@@ -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
View File
@@ -1 +1 @@
1.1.0
1.7.1
+3 -4
View File
@@ -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(