chore(governance): reward tests passing (#3963)
This commit is contained in:
parent
348c61530e
commit
f88c35648e
@ -7,7 +7,6 @@ import {
|
|||||||
import {
|
import {
|
||||||
clickOnValidatorFromList,
|
clickOnValidatorFromList,
|
||||||
closeStakingDialog,
|
closeStakingDialog,
|
||||||
stakingPageAssociateTokens,
|
|
||||||
stakingValidatorPageAddStake,
|
stakingValidatorPageAddStake,
|
||||||
waitForBeginningOfEpoch,
|
waitForBeginningOfEpoch,
|
||||||
} from '../../support/staking.functions';
|
} from '../../support/staking.functions';
|
||||||
@ -33,16 +32,15 @@ context('rewards - flow', { tags: '@slow' }, function () {
|
|||||||
depositAsset(vegaAssetAddress, '1000', 18);
|
depositAsset(vegaAssetAddress, '1000', 18);
|
||||||
ethereumWalletConnect();
|
ethereumWalletConnect();
|
||||||
cy.connectVegaWallet();
|
cy.connectVegaWallet();
|
||||||
|
vegaWalletTeardown();
|
||||||
|
cy.associateTokensToVegaWallet('6000');
|
||||||
cy.VegaWalletTopUpRewardsPool(30, 200);
|
cy.VegaWalletTopUpRewardsPool(30, 200);
|
||||||
navigateTo(navigation.validators);
|
navigateTo(navigation.validators);
|
||||||
vegaWalletTeardown();
|
|
||||||
stakingPageAssociateTokens('6000');
|
|
||||||
cy.get(vegaWalletUnstakedBalance, txTimeout).should(
|
cy.get(vegaWalletUnstakedBalance, txTimeout).should(
|
||||||
'contain',
|
'contain',
|
||||||
'6,000.0',
|
'6,000.0',
|
||||||
txTimeout
|
txTimeout
|
||||||
);
|
);
|
||||||
cy.get('button').contains('Select a validator to nominate').click();
|
|
||||||
clickOnValidatorFromList(0);
|
clickOnValidatorFromList(0);
|
||||||
stakingValidatorPageAddStake('3000');
|
stakingValidatorPageAddStake('3000');
|
||||||
closeStakingDialog();
|
closeStakingDialog();
|
||||||
|
@ -221,7 +221,7 @@ export function ensureSpecifiedUnstakedTokensAreAssociated(
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function closeStakingDialog() {
|
export function closeStakingDialog() {
|
||||||
cy.getByTestId('dialog-title').should(
|
cy.getByTestId('dialog-title', txTimeout).should(
|
||||||
'contain.text',
|
'contain.text',
|
||||||
'At the beginning of the next epoch'
|
'At the beginning of the next epoch'
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user