test: added missing block confirmation coverage (#1115)

This commit is contained in:
Radosław Szpiech 2022-08-23 19:27:43 +02:00 committed by GitHub
parent ee276673d4
commit 664c55960b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 0 deletions

View File

@ -42,5 +42,6 @@ module.exports = defineConfig({
vegaTokenAddress: '0x67175Da1D5e966e40D11c4B2519392B2058373de',
txTimeout: { timeout: 40000 },
epochTimeout: { timeout: 10000 },
blockConfirmations: 3,
},
});

View File

@ -50,6 +50,7 @@ context(
//1000-ASSO-0009
//1000-ASSO-0030
//1000-ASSO-0012
//1000-ASSO-0013
//1000-ASSO-0014
//1000-ASSO-0015
//1000-ASSO-0030

View File

@ -73,6 +73,14 @@ Cypress.Commands.add('staking_page_associate_tokens', (amount, options) => {
}).should('not.exist');
}
cy.get(tokenSubmitButton, txTimeout).should('be.enabled').click();
cy.contains(
`Associating with Vega key. Waiting for ${Cypress.env(
'blockConfirmations'
)} more confirmations..`,
{
timeout: 8000,
}
).should('be.visible');
cy.contains('can now participate in governance and nominate a validator', {
timeout: 60000,
}).should('be.visible');

View File

@ -12,6 +12,7 @@ NX_ETHEREUM_CHAIN_ID=1440
NX_ETH_URL_CONNECT=1
NX_ETH_WALLET_MNEMONIC=ozone access unlock valid olympic save include omit supply green clown session
NX_LOCAL_PROVIDER_URL=http://localhost:8545/
NX_VEGA_WALLET_URL=http://localhost:1789/api/v1
#Test configuration variables
CYPRESS_FAIRGROUND=false