chore: tests passing (#2231)

This commit is contained in:
Joe Tsang 2022-11-25 15:10:57 +00:00 committed by GitHub
parent 246c07f355
commit 5b826f89d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View File

@ -116,7 +116,7 @@ context(
cy.get(newProposalSubmitButton).click();
cy.get(feedbackError).should(
'have.text',
'proposal_submission.terms.closing_timestamp: cannot be after enactment time'
'Invalid params: proposal_submission.terms.closing_timestamp (cannot be after enactment time)'
);
cy.get(dialogCloseButton).click();
cy.get(minVoteDeadline).click();
@ -157,7 +157,7 @@ context(
cy.contains('Transaction failed', proposalTimeout).should('be.visible');
cy.get(feedbackError).should(
'have.text',
'*: unknown field "signers" in vega.DataSourceDefinition'
'Invalid params: the transaction is malformed'
);
});

View File

@ -28,7 +28,6 @@ context(
before('visit staking tab and connect vega wallet', function () {
cy.visit('/');
cy.verify_page_header('The $VEGA token');
cy.vega_wallet_connect();
cy.vega_wallet_set_specified_approval_amount('1000');
});

View File

@ -43,10 +43,6 @@ context(
it('Able to open withdrawal form with vega wallet connected', function () {
// needs to reload page for withdrawal form to be displayed in ci - not reproducible outside of ci
cy.getByTestId(withdraw).should('be.visible').click();
cy.visit('/');
cy.navigate_to('withdrawals');
cy.ethereum_wallet_connect();
cy.getByTestId(withdraw).should('be.visible').click();
cy.getByTestId(selectAsset)
.find('option')
.should('have.length.at.least', 2);

View File

@ -93,6 +93,7 @@ Cypress.Commands.add('faucet_asset', function (assetEthAddress) {
Cypress.Commands.add('vega_wallet_teardown', function () {
cy.get(vegaWalletContainer).within(() => {
cy.get(vegaWalletAssociatedBalance)
.first()
.invoke('text')
.then((balance) => {
if (balance != '0.00') {
@ -100,6 +101,10 @@ Cypress.Commands.add('vega_wallet_teardown', function () {
cy.vega_wallet_teardown_staking(this.stakingBridgeContract);
}
});
cy.get('[data-test-id="associated-amount"]', { timeout: 30000 }).should(
'contain.text',
'0.00'
);
});
cy.get(vegaWalletContainer).within(() => {