From 10e60090efb2da9539f7b98be8d4f8dd637cefb3 Mon Sep 17 00:00:00 2001 From: Dariusz Majcherczyk Date: Thu, 22 Jun 2023 17:58:05 +0200 Subject: [PATCH 1/3] test: added wait for market --- apps/trading-e2e/src/integration/market-all.cy.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/trading-e2e/src/integration/market-all.cy.ts b/apps/trading-e2e/src/integration/market-all.cy.ts index 9aee10bce..a4071cc95 100644 --- a/apps/trading-e2e/src/integration/market-all.cy.ts +++ b/apps/trading-e2e/src/integration/market-all.cy.ts @@ -199,6 +199,7 @@ describe('no all markets', { tags: '@smoke', testIsolation: true }, () => { }); cy.mockSubscription(); cy.visit('/#/markets/all'); + cy.wait('@Markets'); }); it('can see no markets message', () => { From fa8e5e18ee4ff95a76079a52ef6351c153be5671 Mon Sep 17 00:00:00 2001 From: Dariusz Majcherczyk Date: Thu, 22 Jun 2023 20:36:18 +0200 Subject: [PATCH 2/3] test: remove unused mock --- apps/trading-e2e/src/integration/market-all.cy.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/trading-e2e/src/integration/market-all.cy.ts b/apps/trading-e2e/src/integration/market-all.cy.ts index a4071cc95..5369fca0d 100644 --- a/apps/trading-e2e/src/integration/market-all.cy.ts +++ b/apps/trading-e2e/src/integration/market-all.cy.ts @@ -197,7 +197,6 @@ describe('no all markets', { tags: '@smoke', testIsolation: true }, () => { cy.mockGQL((req) => { aliasGQLQuery(req, 'Markets', markets); }); - cy.mockSubscription(); cy.visit('/#/markets/all'); cy.wait('@Markets'); }); From 0d447ac416ddcec5a107458688256cb512a87ed7 Mon Sep 17 00:00:00 2001 From: Dariusz Majcherczyk Date: Thu, 22 Jun 2023 21:10:07 +0200 Subject: [PATCH 3/3] test: changed assertion --- apps/trading-e2e/src/integration/market-all.cy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/trading-e2e/src/integration/market-all.cy.ts b/apps/trading-e2e/src/integration/market-all.cy.ts index 5369fca0d..df7c49fd1 100644 --- a/apps/trading-e2e/src/integration/market-all.cy.ts +++ b/apps/trading-e2e/src/integration/market-all.cy.ts @@ -154,7 +154,7 @@ describe('markets all table', { tags: '@smoke' }, () => { .find(dropdownContentItem) .eq(2) .should('have.text', 'View asset'); - cy.getByTestId('market-actions-content').click(); + cy.getByTestId('market-actions-content').should('be.visible'); }); it('able to open and sort full market list - market page', () => {