Add --alias to rad auth

To avoid the popping up of a terminal input field during the
globalFixture setup, we need to pass the wanted alias as a flag.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2023-07-12 15:36:02 +02:00
committed by Rūdolfs Ošiņš
parent 6e3bcc1998
commit 28718ba0cf
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -274,7 +274,7 @@ test("peer and branch switching", async ({ page }) => {
await expect(page.getByTitle("Change peer")).toHaveText(
`did:key:${aliceRemote.substring(8).substring(0, 6)}…${aliceRemote.slice(
-6,
)} delegate`,
)} (radicle) delegate`,
);
await expect(
page.locator(
+1 -1
View File
@@ -20,7 +20,7 @@ test("peer and branch switching", async ({ page }) => {
await expect(page.getByTitle("Change peer")).toHaveText(
` did:key:${aliceRemote
.substring(8)
.substring(0, 6)}…${aliceRemote.slice(-6)} delegate`,
.substring(0, 6)}…${aliceRemote.slice(-6)} (radicle) delegate`,
);
await expect(page.getByText("Thursday, November 17, 2022")).toBeVisible();
+1 -1
View File
@@ -172,7 +172,7 @@ export class RadiclePeer {
RAD_SOCKET: socket,
};
await execa("rad", ["auth"], { env });
await execa("rad", ["auth", "--alias", name], { env });
const { stdout: nodeId } = await execa("rad", ["self", "--nid"], { env });
return new RadiclePeer({