Files
Jules b6685999bc test(e2e): run the suite against a local Hub
* test(e2e): run the suite against a local Hub

Start the Hub dev server via Playwright's webServer and default BASE_URL to
localhost so tests exercise local code; set BASE_URL to test a deployment.
Pre-compile routes in global-setup, derive the wallet address from the seed
(dropping WALLET_ADDRESS), and let anvil:up/down run without a .env file.

* ci(e2e): build and serve the local Hub with forks

Drop the deployed-URL logic; build Hub deps, start Anvil forks, and run all
projects against the webServer-started local Hub.
2026-06-22 18:40:53 +09:00

46 lines
2.3 KiB
Bash

# ============================================================================
# Application
# ============================================================================
# Tests default to a local Hub dev server (http://localhost:3003) that
# Playwright builds and starts. Set BASE_URL to test a deployed build instead
# (production / Vercel preview); the local server is then skipped.
# BASE_URL=https://hub.status.network
# Host the locally-served Hub routes wallet RPC through. It must be non-localhost
# so the @anvil fixture can intercept it by ?chainId= and redirect to the forks
# (the fixture deliberately skips localhost). Defaults to a public Status API
# host; override only if that one is unavailable.
# HUB_STATUS_API_URL=https://status-api-status-im-web.vercel.app
# ============================================================================
# Wallet Configuration
# ============================================================================
WALLET_SEED_PHRASE=
WALLET_PASSWORD=
# ============================================================================
# MetaMask Extension
# ============================================================================
METAMASK_EXTENSION_PATH=.extensions/metamask
# Override MetaMask version (default: package.json → config.metamaskVersion)
# METAMASK_VERSION=13.18.1
# ============================================================================
# Anvil Local Forks (used by docker-compose.anvil.yml + test fixtures)
# ============================================================================
# Fork RPC endpoints (override for custom Anvil targets)
# ANVIL_MAINNET_RPC=http://localhost:8547
# ANVIL_LINEA_RPC=http://localhost:8546
# Docker Compose port mappings (must match ANVIL_*_RPC if both are set)
# MAINNET_FORK_PORT=8547
# LINEA_FORK_PORT=8546
# Fork source URLs (only used by Docker Compose)
# NOTE: the defaults below are PRUNING nodes. They work for storage-based
# funding (WETH/USDT/USDC/LINEA), but SNT funding reads the MiniMeToken
# controller's nonce at the fork block — pruning nodes drop that after
# ~128 blocks and you'll see "-32014 historical state not available /
# ErrUpstreamsExhausted" on anvil_setBalance. For reliable runs point
# MAINNET_FORK_URL at an archive provider (Alchemy/Infura/QuikNode).
# MAINNET_FORK_URL=https://ethereum-rpc.publicnode.com
# LINEA_FORK_URL=https://rpc.linea.build