chore(governance): add assertion for vote change (#4571)

This commit is contained in:
Joe Tsang 2023-08-18 16:15:55 +01:00 committed by GitHub
parent ef26d03d36
commit afbf62be84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -220,6 +220,7 @@ describe(
cy.getByTestId(changeVoteButton).should('be.visible').click();
voteForProposal('for');
// 3001-VOTE-064
cy.getByTestId('user-voted-yes').should('exist');
getProposalInformationFromTable('Tokens for proposal')
.should('have.text', (1).toFixed(2))
.and('be.visible');

View File

@ -182,9 +182,10 @@ export function clickOnValidatorFromList(
} else {
cy.get(`[row-id="${validatorNumber}"]`)
.should('be.visible')
.find(stakeValidatorListName)
.as('validatorOnList');
cy.get('@validatorOnList').click();
.first()
.within(() => {
cy.get(stakeValidatorListName).click();
});
}
}