You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/govtool-frontend/playwright/README.md
+69-4Lines changed: 69 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,11 +79,76 @@ npx playwright install
79
79
80
80
---
81
81
82
+
## 🔧 Faucet wallet Configuration
83
+
84
+
This section guides you through generating a Cardano faucet wallet and configuring it for use. Follow the steps below to create and set the config on env
85
+
86
+
### Step 1: Generate a Faucet Wallet
87
+
88
+
Run the following command to generate a new faucet wallet:
89
+
90
+
```bash
91
+
npm run generate-faucet-wallet
92
+
```
93
+
94
+
The script will:
95
+
96
+
- Display the wallet details (payment private key, stake public key hash, and wallet address) in the terminal.
97
+
98
+
**Example Output:**
99
+
100
+
```
101
+
🎉 Wallet generated successfully!
102
+
-----------------------------------
103
+
🔑 Payment Private Key: <your-payment-private-key>
104
+
🔗 Stake Public Key Hash: <your-stake-pkh>
105
+
🏠 Wallet Address: <your-wallet-address>
106
+
-----------------------------------
107
+
108
+
📋 Please copy the following to your environment variables:
109
+
1. Set FAUCET_PAYMENT_PRIVATE=<your-payment-private-key>
110
+
2. Set FAUCET_STAKE_PKH=<your-stake-pkh>
111
+
3. Set FAUCET_ADDRESS=<your-wallet-address>
112
+
113
+
🎈 All set! Please ensure this wallet is funded with a sufficient balance
114
+
```
115
+
116
+
### Step 2: Configure Environment Variables
117
+
118
+
Securely store the generated wallet details in your environment variables. Add the following to your `.env` file or environment configuration:
119
+
120
+
```env
121
+
FAUCET_PAYMENT_PRIVATE=<your-payment-private-key>
122
+
FAUCET_STAKE_PKH=<your-stake-pkh>
123
+
FAUCET_ADDRESS=<your-wallet-address>
124
+
```
125
+
126
+
⚠️ **Security Note**: Store your wallet details in a secure location for future use. The payment private key is sensitive and must be protected to prevent unauthorized access to your funds.
127
+
128
+
### Step 3: Fund the Wallet
129
+
130
+
Ensure the wallet address has sufficient funds for your test runs. The required balance depends on the specific tests you plan to execute (refer to the test-specific test run details below).
0 commit comments