chore(cypress): fix error seen in CI for staking test (#3304)
This commit is contained in:
parent
88bf58b974
commit
351583ce8f
@ -53,9 +53,9 @@ context(
|
|||||||
// 2001-STKE-002, 2001-STKE-032
|
// 2001-STKE-002, 2001-STKE-032
|
||||||
before('visit staking tab and connect vega wallet', function () {
|
before('visit staking tab and connect vega wallet', function () {
|
||||||
cy.visit('/');
|
cy.visit('/');
|
||||||
cy.associateTokensToVegaWallet('4');
|
|
||||||
ethereumWalletConnect();
|
ethereumWalletConnect();
|
||||||
// this is a workaround for #2422 which can be removed once issue is resolved
|
// this is a workaround for #2422 which can be removed once issue is resolved
|
||||||
|
cy.associateTokensToVegaWallet('4');
|
||||||
vegaWalletSetSpecifiedApprovalAmount('1000');
|
vegaWalletSetSpecifiedApprovalAmount('1000');
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -144,6 +144,7 @@ context(
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('Able to stake against a validator - using vega from both wallet and vesting contract', function () {
|
it('Able to stake against a validator - using vega from both wallet and vesting contract', function () {
|
||||||
|
vegaWalletTeardown();
|
||||||
stakingPageAssociateTokens('3', { type: 'contract' });
|
stakingPageAssociateTokens('3', { type: 'contract' });
|
||||||
navigateTo(navigation.validators);
|
navigateTo(navigation.validators);
|
||||||
stakingPageAssociateTokens('4', { type: 'wallet' });
|
stakingPageAssociateTokens('4', { type: 'wallet' });
|
||||||
|
@ -26,20 +26,19 @@ context('View functionality with public key', { tags: '@smoke' }, function () {
|
|||||||
cy.connectPublicKey(vegaWalletPubKey);
|
cy.connectPublicKey(vegaWalletPubKey);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Able to connect public key via wallet', function () {
|
|
||||||
cy.reload();
|
|
||||||
verifyConnectedToPubKey();
|
|
||||||
cy.getByTestId('currency-title', { timeout: 10000 })
|
|
||||||
.should('have.length.at.least', 4)
|
|
||||||
.and('contain.text', 'USDC (fake)');
|
|
||||||
});
|
|
||||||
|
|
||||||
it('Able to connect public key using url', function () {
|
it('Able to connect public key using url', function () {
|
||||||
cy.getByTestId('exit-view').click();
|
cy.getByTestId('exit-view').click();
|
||||||
cy.visit(`/?address=${vegaWalletPubKey}`);
|
cy.visit(`/?address=${vegaWalletPubKey}`);
|
||||||
verifyConnectedToPubKey();
|
verifyConnectedToPubKey();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
it('Able to connect public key via wallet and view assets in wallet', function () {
|
||||||
|
verifyConnectedToPubKey();
|
||||||
|
cy.getByTestId('currency-title', { timeout: 10000 })
|
||||||
|
.should('have.length.at.least', 4)
|
||||||
|
.and('contain.text', 'USDC (fake)');
|
||||||
|
});
|
||||||
|
|
||||||
it('Unable to submit proposal with public key', function () {
|
it('Unable to submit proposal with public key', function () {
|
||||||
const expectedErrorTxt = `You are connected in a view only state for public key: ${vegaWalletPubKey}. In order to send transactions you must connect to a real wallet.`;
|
const expectedErrorTxt = `You are connected in a view only state for public key: ${vegaWalletPubKey}. In order to send transactions you must connect to a real wallet.`;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user