test(web): add Playwright E2E tests for multi-delegator UI#2
Closed
test(web): add Playwright E2E tests for multi-delegator UI#2
Conversation
Serial devnet test suite covering the full instruction lifecycle: delegation (init, create fixed, revoke, create recurring, revoke, close), plans (create, update, subscribe, cancel, update to sunset), and UI components (RpcBadge, ProgramBadge, QuickDefaults, RecentTransactions). - Copies the wallet injection + mock Phantom pattern from escrow E2E tests - All instruction panels updated with autofill buttons and rememberXxx calls matching the escrow panel pattern (start empty, autofill from QuickDefaults, save PDAs back after success) - SavedValuesContext extended with subscriptionPda default - QuickDefaults shows all six default fields including Subscription PDA - justfile: e2e-test recipe added Requires PLAYRIGHT_WALLET and PLAYWRIGHT_TOKEN_MINT in .env at repo root.
Compute Unit Report
Generated: 2026-04-03 |
- expiryTs=0 means Unix epoch 1970 (always in the past) — use NOW+1yr - startTs=0 is also in the past for recurring delegation — use NOW - UpdatePlan to Sunset requires a non-zero future endTs — use NOW+1yr - CreatePlan planId=0 collides across re-runs — use seconds-based unique ID - Fix misleading UI hints that said '0 = no expiry' for timestamp fields
amilz
previously approved these changes
Mar 20, 2026
Collaborator
Author
|
Github bug, was already squashed and merged |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rememberXxxcalls matching the escrow panel pattern (start empty → autofill from QuickDefaults → save PDAs back after success)SavedValuesContextextended withsubscriptionPdadefault; QuickDefaults shows all six default fieldsjustfile:e2e-testrecipe addedTest Plan
PLAYRIGHT_WALLET=<base58-secret-key>andPLAYWRIGHT_TOKEN_MINT=<token-2022-devnet-mint>to.envat repo rootjust e2e-testorpnpm --filter @multidelegator/web test:e2e