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 { emitMempoolInfo, dropWebSocket } from "../../support/websocket";
const baseModule = Cypress.env("BASE_MODULE");
describe('Mainnet', () => {
beforeEach(() => {
//cy.intercept('/sockjs-node/info*').as('socket');
@@ -20,7 +22,7 @@ describe('Mainnet', () => {
});
});
if (Cypress.env("BASE_MODULE") === '' || Cypress.env("BASE_MODULE") === 'mempool') {
if (baseModule === 'mempool') {
it('loads the status screen', () => {
cy.visit('/status');
@@ -281,7 +283,7 @@ describe('Mainnet', () => {
});
});
it.only('loads the tv screen - mobile', () => {
it('loads the tv screen - mobile', () => {
cy.viewport('iphone-6');
cy.visit('/tv');
cy.waitForSkeletonGone();
@@ -363,6 +365,6 @@ describe('Mainnet', () => {
});
});
} else {
it.skip("Tests cannot be run on the selected BASE_MODULE");
it.skip(`Tests cannot be run on the selected BASE_MODULE ${baseModule}`);
}
});