diff --git a/apps/trading-e2e/src/integration/deposit.cy.ts b/apps/trading-e2e/src/integration/deposit.cy.ts index 9f50e4ce8..eb20a6630 100644 --- a/apps/trading-e2e/src/integration/deposit.cy.ts +++ b/apps/trading-e2e/src/integration/deposit.cy.ts @@ -66,3 +66,25 @@ describe('deposit form validation', { tags: '@smoke' }, () => { .should('have.text', 'Insufficient amount in Ethereum wallet'); }); }); + +describe('deposit actions', { tags: '@smoke' }, () => { + before(() => { + cy.mockWeb3Provider(); + cy.mockTradingPage(); + cy.mockSubscription(); + cy.setVegaWallet(); + cy.visit('/'); + cy.wait('@MarketsCandles'); + cy.getByTestId('dialog-close').click(); + }); + + it('Deposit to trade is visble', () => { + cy.getByTestId('Collateral').click(); + cy.contains('[data-testid="deposit"]', 'Deposit to trade').should( + 'be.visible' + ); + cy.contains('[data-testid="deposit"]', 'Deposit to trade').click(); + connectEthereumWallet('MetaMask'); + cy.getByTestId('deposit-submit').should('be.visible'); + }); +}); diff --git a/apps/trading-e2e/src/integration/navbar.cy.ts b/apps/trading-e2e/src/integration/navbar.cy.ts index 1b389e535..c3c1b0c28 100644 --- a/apps/trading-e2e/src/integration/navbar.cy.ts +++ b/apps/trading-e2e/src/integration/navbar.cy.ts @@ -6,6 +6,7 @@ beforeEach(() => { cy.visit('/'); cy.wait('@Markets'); cy.wait('@MarketsData'); + cy.wait('@MarketsCandles'); cy.getByTestId('dialog-close').click(); });