Verify #350: fix transition E2E suite setup cooldown #527
No reviewers
Labels
No labels
agent:fix_bugfix
agent:fix_conflicts
agent:fix_security
agent:gap_analysis
agent:implement
agent:open_issues
agents
agent:security_audit
agent:verify
area
timecurve
arena
arena-v2
audit
block:feature_review
block:security
bug
contracts
design
devops
docs
documentation
enhancement
epic
feature
frontend
indexer
low priority
megaeth
operations
ops
performance
QA
qa checklist
referrals
removal
security
smart-contracts
tech-debt
testing
time-arena
timecurve
visual-qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
code/yieldomega!527
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-350-verify-transition-e2e-suite"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fix
ensureArenaLevelTwoViaCastsoanvil-arena-06-transitions.spec.tspasses inside the full indexer-first E2E suite (YIELDOMEGA_E2E_INDEXER=1 bash scripts/e2e-anvil.sh). Prior arena specs leave the mock wallet on burst cooldown or already at level 2; the helper now warps before setup buys and skips when level ≥ 2.Verification checklist (#350)
YIELDOMEGA_E2E_INDEXER=1 PLAYWRIGHT_SPECS="e2e/anvil-arena-06-transitions.spec.ts" bash scripts/e2e-anvil.shYIELDOMEGA_E2E_INDEXER=1 bash scripts/e2e-anvil.shanvil-arena-06-transitions.spec.tsgreen; 16/17 specs pass (pre-existinganvil-arena-04-cred-buycooldown flake unrelated to #350)bash scripts/verify-podium-live-anvil.shverify-podium-live-anvil: OK (read_block=24, live_rows=12)e2e/anvil-arena-06-transitions.spec.tsassertsarena-timer-expired-pending-roll/arena-timer-settling, epoch 0→1,arena-podium-roll-ctawinners[0]zeroed after roll + UIarena-last-buy-podium-leaderboardarena-charm-cred-claimenabled after Last Buy epoch endINV-FRONTEND-342-TRANSITION-E2Eindocs/testing/invariants-and-business-logic.md; run commands indocs/testing/e2e-anvil.md§350cd frontend && CI=1 npm run test:e2e -- --workers=5 e2e/anvil-arena-06-transitions.spec.tsin issue test plan + docs (Anvil config uses 1 worker by design — shared chain)waitIndexerPodiumUxEpoch+ epoch corner assertionsFollow-ups
anvil-arena-04-cred-buy.spec.tsstill flakes on production-like 300s buy-energy cooldown when run after other specs; considerYIELDOMEGA_DEPLOY_NO_COOLDOWN=1ine2e-anvil.shor longer warp in that spec.mentioned in issue #350
Security review — MR !527
Commit reviewed:
8cc98c50ce9c3a241f267a701e61d66f619323eaScope:
frontend/e2e/arenaE2eHelpers.ts—ensureArenaLevelTwoViaCast(level ≥ 2 early return + pre-buywarpAnvilPastBuyCooldown).Outcome:
FINDINGS: 0medium+Summary
Reviewed the full MR diff and traced the changed helper through existing E2E infrastructure (
anvilCastCall,buyCharmViaCast,warpAnvilPastBuyCooldown,ANVIL_MOCK_WALLET). No prior security-review threads on this MR.This change is test-only (Playwright Anvil E2E helpers). It does not ship to production, does not modify smart contracts, indexer services, or frontend runtime code, and does not introduce new attacker-controlled sinks.
execSync/fetchsurfaces; inputs remain env-derived contract addresses and a hardcoded mock wallet constant.warpAnvilPastBuyCooldownearlier in the same helper.Security review: no medium+ findings on this diff.
No inline threads (nothing to flag).
mentioned in commit
c91c2cfa59