From 2c2bc391e8661675049a83c2f6aff4607d353a8d Mon Sep 17 00:00:00 2001 From: daro-maj <119658839+daro-maj@users.noreply.github.com> Date: Fri, 23 Jun 2023 15:13:28 +0200 Subject: [PATCH] test(trading): chart depth e2e tests (#4171) --- .../src/integration/charts-depth.cy.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 apps/trading-e2e/src/integration/charts-depth.cy.ts diff --git a/apps/trading-e2e/src/integration/charts-depth.cy.ts b/apps/trading-e2e/src/integration/charts-depth.cy.ts new file mode 100644 index 000000000..a68dbbe01 --- /dev/null +++ b/apps/trading-e2e/src/integration/charts-depth.cy.ts @@ -0,0 +1,15 @@ +describe('charts', { tags: '@smoke' }, () => { + before(() => { + cy.mockTradingPage(); + cy.mockSubscription(); + cy.visit('/#/markets/market-0'); + cy.wait('@Markets'); + cy.getByTestId('Depth').click(); + }); + + it('can see market depth chart', () => { + // 6006-DEPC-001 + cy.getByTestId('tab-depth').should('be.visible'); + cy.get('.depth-chart-module_canvas__260De').should('be.visible'); + }); +});