Closed mandres-digix closed 4 years ago
iteration: 1 status: PASSED environment: LOCAL
Test Condition:
On Locking Phase
I want to lock more dgd
button THEN lock dgd
overlay should be shown to user and user should be able to lock more dgdI want to continue with my current Lock-up of DGD
THEN show signTransaction
overlay and locked the original DGD value - 0.000000001 DGD
I want to unlock some DGD
THEN show unlock overlay and user should be able to unlock dgd until locking period endsOn Main Phase
I want to lock more dgd
button THEN lock dgd
overlay should be shown to user and user should be able to lock more dgd
Ref: DGDG-584. Reverts PR #354.
The Continue Participation modal will have the same conditions as before (see PR #245), but with the additional condition of
AddressDetails.isParticipant === false
.The contract function to be callled is now
withdrawDGD(1)
instead ofconfirmContinuedParticipation()
.If the user skips visiting the site during the locking phase of a new quarter, they will still see the modal but it will only give them the option to lock more DGDs.
Test Plan
Setup
DaoConfig.CONFIG_MINIMUM_LOCKED_DGD
DaoInfo.isGlobalRewardsSet
istrue
AddressDetails.isParticipant
isfalse
Test Case 1: Locking Phase
npm run teleport:locking_phase
on thedao-contracts
terminal.Test Case 2: Main Phase
npm run teleport:main_phase
twice.