mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
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:
@@ -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(
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user