From afbced3f4dfeebe22395534e5e9beb6cadcfe7df Mon Sep 17 00:00:00 2001 From: softsimon Date: Sat, 8 Jan 2022 20:44:45 +0400 Subject: [PATCH] Adapting tests --- frontend/cypress/integration/bisq/bisq.spec.ts | 4 ++-- frontend/cypress/integration/liquid/liquid.spec.ts | 4 ++-- frontend/cypress/integration/mainnet/mainnet.spec.ts | 2 -- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/frontend/cypress/integration/bisq/bisq.spec.ts b/frontend/cypress/integration/bisq/bisq.spec.ts index 3cea27781..bafca218a 100644 --- a/frontend/cypress/integration/bisq/bisq.spec.ts +++ b/frontend/cypress/integration/bisq/bisq.spec.ts @@ -1,6 +1,6 @@ describe('Bisq', () => { const baseModule = Cypress.env("BASE_MODULE"); - const basePath = (baseModule === 'bisq') ? '' : '/bisq'; + const basePath = ''; beforeEach(() => { cy.intercept('/sockjs-node/info*').as('socket'); @@ -23,7 +23,7 @@ describe('Bisq', () => { }); }); - if (baseModule === 'mempool' || baseModule === 'bisq') { + if (baseModule === 'bisq') { it('loads the dashboard', () => { cy.visit(`${basePath}`); diff --git a/frontend/cypress/integration/liquid/liquid.spec.ts b/frontend/cypress/integration/liquid/liquid.spec.ts index 26885330b..5661340f4 100644 --- a/frontend/cypress/integration/liquid/liquid.spec.ts +++ b/frontend/cypress/integration/liquid/liquid.spec.ts @@ -1,6 +1,6 @@ describe('Liquid', () => { const baseModule = Cypress.env("BASE_MODULE"); - const basePath = (baseModule === 'liquid') ? '' : '/liquid'; + const basePath = ''; beforeEach(() => { cy.intercept('/liquid/api/block/**').as('block'); @@ -16,7 +16,7 @@ describe('Liquid', () => { }); }); - if (baseModule === 'mempool' || baseModule === 'liquid') { + if (baseModule === 'liquid') { it('check first mempool block after skeleton loads', () => { cy.visit(`${basePath}`); diff --git a/frontend/cypress/integration/mainnet/mainnet.spec.ts b/frontend/cypress/integration/mainnet/mainnet.spec.ts index 461f5c0a8..77095781a 100644 --- a/frontend/cypress/integration/mainnet/mainnet.spec.ts +++ b/frontend/cypress/integration/mainnet/mainnet.spec.ts @@ -296,9 +296,7 @@ describe('Mainnet', () => { cy.changeNetwork("testnet"); cy.changeNetwork("signet"); - cy.changeNetwork("liquid"); cy.changeNetwork("mainnet"); - cy.changeNetwork("bisq"); }); it.skip('loads the dashboard with the skeleton blocks', () => {