Skip to content

Commit dd28dd6

Browse files
committed
feat: add dRep03Wallet and corresponding auth setup
1 parent d7f5df9 commit dd28dd6

File tree

2 files changed

+26
-14
lines changed

2 files changed

+26
-14
lines changed

tests/govtool-frontend/playwright/lib/constants/staticWallets.ts

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,30 @@ export const faucetWallet = staticWallets[0];
55

66
export const dRep01Wallet = staticWallets[1];
77
export const dRep02Wallet = staticWallets[2];
8+
export const dRep03Wallet = staticWallets[3];
89

9-
export const adaHolder01Wallet = staticWallets[3];
10-
export const adaHolder02Wallet = staticWallets[4];
10+
export const adaHolder01Wallet = staticWallets[4];
11+
export const adaHolder02Wallet = staticWallets[5];
1112
export const adaHolder03Wallet = staticWallets[6];
1213
export const adaHolder04Wallet = staticWallets[7];
1314
export const adaHolder05Wallet = staticWallets[8];
1415
export const adaHolder06Wallet = staticWallets[9];
1516

1617
// Does not takes part in transaction
17-
export const user01Wallet: StaticWallet = staticWallets[5];
18+
export const user01Wallet: StaticWallet = staticWallets[10];
1819

1920
// Username is already set
20-
export const proposal01Wallet: StaticWallet = staticWallets[10];
21-
export const proposal02Wallet: StaticWallet = staticWallets[11];
22-
export const proposal03Wallet: StaticWallet = staticWallets[12];
23-
export const proposal04Wallet: StaticWallet = staticWallets[13];
24-
export const proposal05Wallet: StaticWallet = staticWallets[14];
25-
export const proposal06Wallet: StaticWallet = staticWallets[15];
26-
export const proposal07Wallet: StaticWallet = staticWallets[16];
27-
export const proposal08Wallet: StaticWallet = staticWallets[17];
28-
export const proposal09Wallet: StaticWallet = staticWallets[18];
21+
export const proposal01Wallet: StaticWallet = staticWallets[11];
22+
export const proposal02Wallet: StaticWallet = staticWallets[12];
23+
export const proposal03Wallet: StaticWallet = staticWallets[13];
24+
export const proposal04Wallet: StaticWallet = staticWallets[14];
25+
export const proposal05Wallet: StaticWallet = staticWallets[15];
26+
export const proposal06Wallet: StaticWallet = staticWallets[16];
27+
export const proposal07Wallet: StaticWallet = staticWallets[17];
28+
export const proposal08Wallet: StaticWallet = staticWallets[18];
29+
export const proposal09Wallet: StaticWallet = staticWallets[19];
2930

30-
export const budgetProposal01Wallet: StaticWallet = staticWallets[19];
31+
export const budgetProposal01Wallet: StaticWallet = staticWallets[20];
3132

3233
export const adaHolderWallets = [
3334
adaHolder01Wallet,
@@ -40,7 +41,7 @@ export const adaHolderWallets = [
4041

4142
export const userWallets = [user01Wallet];
4243

43-
export const dRepWallets = [dRep01Wallet, dRep02Wallet];
44+
export const dRepWallets = [dRep01Wallet, dRep02Wallet, dRep03Wallet];
4445

4546
export const proposalWallets = [
4647
proposal01Wallet,

tests/govtool-frontend/playwright/tests/auth.setup.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import {
1010
budgetProposal01Wallet,
1111
dRep01Wallet,
1212
dRep02Wallet,
13+
dRep03Wallet,
1314
proposal01Wallet,
1415
proposal02Wallet,
1516
proposal03Wallet,
@@ -32,6 +33,7 @@ import { skipIfNotHardFork } from "@helpers/cardano";
3233

3334
const dRep01AuthFile = ".auth/dRep01.json";
3435
const dRep02AuthFile = ".auth/dRep02.json";
36+
const dRep03AuthFile = ".auth/dRep03.json";
3537

3638
const adaHolder01AuthFile = ".auth/adaHolder01.json";
3739
const adaHolder02AuthFile = ".auth/adaHolder02.json";
@@ -78,6 +80,15 @@ setup("Create DRep 02 auth", async ({ page, context }) => {
7880
});
7981
});
8082

83+
setup("Create DRep 03 auth with username", async ({ page, context }) => {
84+
await createAuthWithUserName({
85+
page,
86+
context,
87+
wallet: dRep03Wallet,
88+
auth: dRep03AuthFile,
89+
});
90+
});
91+
8192
setup("Create User 01 auth", async ({ page, context }) => {
8293
await createAuth({
8394
page,

0 commit comments

Comments
 (0)