32 lines
833 B
TypeScript
32 lines
833 B
TypeScript
beforeEach(() => {
|
|
cy.mockTradingPage();
|
|
cy.mockWeb3Provider();
|
|
cy.mockSubscription();
|
|
cy.setVegaWallet();
|
|
cy.visit('/#/markets/market-0');
|
|
});
|
|
|
|
describe('accounts', { tags: '@smoke' }, () => {
|
|
it('renders accounts', () => {
|
|
const tradingAccountRowId = '[row-id="asset-0"]';
|
|
cy.getByTestId('Collateral').click();
|
|
|
|
cy.getByTestId('tab-accounts').should('be.visible');
|
|
|
|
cy.getByTestId('tab-accounts')
|
|
.get(tradingAccountRowId)
|
|
.find('[col-id="asset.symbol"]')
|
|
.should('have.text', 'AST0');
|
|
|
|
cy.getByTestId('tab-accounts')
|
|
.get(tradingAccountRowId)
|
|
.find('[col-id="breakdown"]')
|
|
.should('have.text', 'Breakdown');
|
|
|
|
cy.getByTestId('tab-accounts')
|
|
.get(tradingAccountRowId)
|
|
.find('[col-id="deposited"]')
|
|
.should('have.text', '1,000.00');
|
|
});
|
|
});
|