chore(governance): fix failing staking test (#4801)

This commit is contained in:
Joe Tsang 2023-09-15 13:04:42 +01:00 committed by GitHub
parent 5c57106c04
commit 5596392835
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -212,7 +212,7 @@ context(
closeStakingDialog(); closeStakingDialog();
navigateTo(navigation.validators); navigateTo(navigation.validators);
cy.get(`[row-id="${0}"]`) cy.get(`[row-id="${0}"]`)
.eq(1) .first()
.within(() => { .within(() => {
cy.getByTestId(stakeValidatorListTotalStake) cy.getByTestId(stakeValidatorListTotalStake)
.should('have.text', '3,002.00') .should('have.text', '3,002.00')
@ -222,7 +222,7 @@ context(
.and('be.visible'); .and('be.visible');
}); });
cy.get(`[row-id="${1}"]`) cy.get(`[row-id="${1}"]`)
.eq(1) .first()
.within(() => { .within(() => {
cy.getByTestId(stakeValidatorListTotalStake) cy.getByTestId(stakeValidatorListTotalStake)
.scrollIntoView() .scrollIntoView()