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