fix: tests/setup/stack.ts: contract addresses have no env var override path (#391)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
0fe098ddc3
commit
c9fe1ab178
3 changed files with 49 additions and 20 deletions
|
|
@ -95,6 +95,22 @@ For testing login: `lobsterDao`, `test123`, `lobster-x010syqe?412!`
|
|||
After bootstrap, addresses are in `/home/debian/harb/tmp/containers/contracts.env`.
|
||||
Landing sources this file on startup for `VITE_KRAIKEN_ADDRESS` and `VITE_STAKE_ADDRESS`.
|
||||
|
||||
## E2E Test Environment Variables
|
||||
|
||||
The Playwright test setup (`tests/setup/stack.ts`) reads stack coordinates from env vars, falling back to `onchain/deployments-local.json` when they are absent.
|
||||
|
||||
| Variable | Purpose |
|
||||
|---|---|
|
||||
| `STACK_RPC_URL` | RPC endpoint (default: `http://localhost:8081/api/rpc`) |
|
||||
| `STACK_WEBAPP_URL` | Web app base URL (default: `http://localhost:8081`) |
|
||||
| `STACK_GRAPHQL_URL` | GraphQL endpoint (default: `http://localhost:8081/api/graphql`) |
|
||||
| `STACK_KRAIKEN_ADDRESS` | Kraiken contract address (overrides deployments-local.json) |
|
||||
| `STACK_STAKE_ADDRESS` | Stake contract address (overrides deployments-local.json) |
|
||||
| `STACK_LM_ADDRESS` | LiquidityManager contract address (overrides deployments-local.json) |
|
||||
| `STACK_OPTIMIZER_PROXY_ADDRESS` | OptimizerProxy address (optional; enables optimizer integration tests) |
|
||||
|
||||
When all three of `STACK_KRAIKEN_ADDRESS`, `STACK_STAKE_ADDRESS`, and `STACK_LM_ADDRESS` are set, the deployments file is not read at all, which allows tests to run in containerised environments that have no local checkout.
|
||||
|
||||
## Playwright Testing
|
||||
|
||||
```bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue