chore(governance): reward tests passing (#3963)

This commit is contained in:
Joe Tsang 2023-05-25 19:08:06 +01:00 committed by GitHub
parent 348c61530e
commit f88c35648e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View File

@ -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();

View File

@ -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'
); );