From f476688c7f973f3cba420e6f6e746670aed01c96 Mon Sep 17 00:00:00 2001 From: Joe Tsang <30622993+jtsang586@users.noreply.github.com> Date: Mon, 31 Jul 2023 09:58:52 +0100 Subject: [PATCH] chore(governance): fix failing proposal test (#4434) --- .../src/integration/flow/proposal-list.cy.ts | 14 +++++++++++--- .../integration/flow/token-association-flow.cy.ts | 6 ++++++ 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/apps/governance-e2e/src/integration/flow/proposal-list.cy.ts b/apps/governance-e2e/src/integration/flow/proposal-list.cy.ts index c802f0764..f3c21bc98 100644 --- a/apps/governance-e2e/src/integration/flow/proposal-list.cy.ts +++ b/apps/governance-e2e/src/integration/flow/proposal-list.cy.ts @@ -120,16 +120,24 @@ describe('Governance flow for proposal list', { tags: '@slow' }, function () { submitUniqueRawProposal({ proposalTitle: proposalTitle }); getProposalFromTitle(proposalTitle).within(() => { // 3001-VOTE-039 - cy.getByTestId(voteStatus).should( + cy.getByTestId('participation-not-reached').should( 'have.text', - 'Participation not reached' + 'Min. participation not reached' ); cy.getByTestId(viewProposalButton).click(); }); voteForProposal('for'); navigateTo(navigation.proposals); getProposalFromTitle(proposalTitle).within(() => { - cy.getByTestId(voteStatus).should('have.text', 'Set to pass'); + cy.getByTestId(voteStatus).should( + 'have.text', + 'Currently expected to pass' + ); + cy.getByTestId('user-voted-yes').should('exist'); + cy.getByTestId('participation-reached').should( + 'have.text', + 'Min. participation reached' + ); cy.getByTestId(viewProposalButton).click(); }); cy.getByTestId(voteBreakDownToggle).click(); diff --git a/apps/governance-e2e/src/integration/flow/token-association-flow.cy.ts b/apps/governance-e2e/src/integration/flow/token-association-flow.cy.ts index 8b44321b7..2bddc0758 100644 --- a/apps/governance-e2e/src/integration/flow/token-association-flow.cy.ts +++ b/apps/governance-e2e/src/integration/flow/token-association-flow.cy.ts @@ -351,6 +351,12 @@ context( ); stakingPageDisassociateAllTokens(); }); + + it('Able to associate over 1 million tokens', function () { + cy.get(ethWalletAssociateButton).click(); + stakingPageAssociateTokens('2000000', { approve: true }); + stakingPageDisassociateAllTokens(); + }); }); } );