Commit d35064e
authored
Child bounties module e2e tests (#409)
* childBounties added for kusama
* childBounties added for polkadot
* update import
* childBounties added
* helper functions added for child bounties
* childBounties creation test added
* setStorage lastSpendPeriod such that next spend is few blocks ahead
* devAccounts replaced with testAccounts
* sendTransation modularized
* assigning and accepting a child bounty curator test added
* awarding and claiming a child bounty test added
* test added : closure and payout of a child bounty
* test added: rejection and cancellation of a child bounty
* failure test parent bounty not active error added
* failure test insufficient bounty balance error test added
* failure test child bounty with invalid value error added
* failure test invalid child bounty curator fee added
* failure test accept curator when child bounty is in added state added
* failure test close child bounty in pending payout status added
* refac: success and failure tests are grouped
* kusama snapshot for childBounties added
* snapshot for childBounties for polkadot added
* refac
* unassign curator different cases test added
* child bounty storage verification test added
* added setLastSpendPeriodBlockNumber fn for repeated logic
* added extractExtrinsicFailedEvent() for repeated logic
* minor improvements
* snapshot updated for childBounties
* linter warning fixed
* linter warning fixed
* testAccountBalance set as a multiple of exential deposit
* test docs improved and some tests renamed for better clarity
* additional checks added in childBountyCreationTest
* test added: non-curator trying to create child bounty throws `RequireCurator` error
* test added: parent already has `MaxActiveChildBountyCount` child bounties, trying to create a new one throws `TooManyChildBounties` error
* test added: child bounty description larger than `MaximumReasonLength` throws `ReasonTooBig` error
* test added: proposing curator for invalid child bounty index throws `InvalidIndex` error
* lint fix
* snapshots updated
* ts docs updated
* child bounties e2e tests added in readme
* Add Kusama AH childBounties E2E tests
* Port child bounties E2E tests to Kusama AH
* fix tests on KAH and added additional status checks
* snaps updated
* testConfig for child bounties for polkadot updated
* child bounties removed form Kusama relay
* child_bounties renamed to childBounties
* testConfig specified
* count added for multiple new blocks
* unassign curator test separated into separate tests
* refac the unassign tests with helper function
* snaps updated
* empty snapshot events fixed
* tests delineated into sections
* refactored with hepler function and delineate tests1 parent dae64cd commit d35064e
7 files changed
Lines changed: 3547 additions & 0 deletions
File tree
- packages
- kusama/src
- __snapshots__
- polkadot/src
- __snapshots__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
157 | 169 | | |
158 | 170 | | |
159 | 171 | | |
| |||
0 commit comments