Update e2e tests BASE_MODULE resolution

This commit is contained in:
Felipe Knorr Kuhn
2021-10-27 20:32:42 -07:00
parent 12b3246404
commit 6e4ee8ffa2
8 changed files with 70 additions and 44 deletions

View File

@@ -1,5 +1,7 @@
import { confirmAddress, emitMempoolInfo, sendWsMock, showNewTx, startTrackingAddress } from "../../support/websocket";
const baseModule = Cypress.env("BASE_MODULE");
describe('Testnet', () => {
beforeEach(() => {
cy.intercept('/api/block-height/*').as('block-height');
@@ -8,7 +10,7 @@ describe('Testnet', () => {
cy.intercept('/api/tx/*/outspends').as('tx-outspends');
});
if (Cypress.env("BASE_MODULE") === '' || Cypress.env("BASE_MODULE") === 'mempool') {
if (baseModule === 'mempool') {
it('loads the dashboard', () => {
cy.visit('/testnet');
@@ -123,6 +125,6 @@ describe('Testnet', () => {
});
});
} else {
it.skip("Tests cannot be run on the selected BASE_MODULE");
it.skip(`Tests cannot be run on the selected BASE_MODULE ${baseModule}`);
}
});