Skip to content

Implement E2E tests for the Fellowship salary pallet#650

Open
rockbmb wants to merge 13 commits into
masterfrom
hollar
Open

Implement E2E tests for the Fellowship salary pallet#650
rockbmb wants to merge 13 commits into
masterfrom
hollar

Conversation

@rockbmb

@rockbmb rockbmb commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

E2E test suite for the Fellowship salary pallet on Polkadot Collectives (post-Hollar migration).

Tests

  • Full salary lifecycle: inductregisterpayout, verifying claimant state transitions and XCM dispatch
  • Cycle status invariants: budget reset on bump, totalRegistrations accumulation after register, totalUnregisteredPaid tracking
  • Cross-chain payment: payoutOther delivers Hollar to an explicit beneficiary on Asset Hub via XCM
  • Unregistered payout: fellow who missed registration receives payment from the residual budget pot
  • Proration: payouts scale down when total registrations exceed cycle budget
  • isSufficient dependency: payout XCM fails silently when recipient has no DOT on Asset Hub (Hollar is not a sufficient asset)
  • Mid-cycle promotion: payout uses the registered amount (rank at registration), not the member's current rank after promotion

All salary amounts and period lengths are read from live chain state (fellowshipCore.params, fellowshipSalary constants). Prerequisite state (collective membership, claimant status) is seeded via setStorage; the extrinsic under test is always exercised for real.

Closes #642

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

No issues found

@rockbmb rockbmb self-assigned this Jul 3, 2026
@rockbmb rockbmb added e2e tests Related to end-to-end tests enhancement New feature or request labels Jul 3, 2026
@rockbmb rockbmb added this to the Advanced CUI/CUJ Coverage milestone Jul 3, 2026
@rockbmb rockbmb marked this pull request as ready for review July 9, 2026 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e2e tests Related to end-to-end tests enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement E2E tests for the Fellowship salary pallet

1 participant