From 5dab44e6c40368e46449fdcc68aeef8fea528104 Mon Sep 17 00:00:00 2001 From: Felipe Knorr Kuhn Date: Wed, 27 Oct 2021 20:49:49 -0700 Subject: [PATCH] Cleanup Cypress config and commands --- frontend/cypress/plugins/index.js | 3 +-- frontend/cypress/support/commands.ts | 7 ------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/frontend/cypress/plugins/index.js b/frontend/cypress/plugins/index.js index 1ae86fa18..11f43df95 100644 --- a/frontend/cypress/plugins/index.js +++ b/frontend/cypress/plugins/index.js @@ -5,8 +5,7 @@ const CONFIG_FILE = 'mempool-frontend-config.json'; module.exports = (on, config) => { if (fs.existsSync(CONFIG_FILE)) { let contents = JSON.parse(fs.readFileSync(CONFIG_FILE, 'utf8')); - console.log(contents); - config.env.BASE_MODULE = contents.BASE_MODULE; + config.env.BASE_MODULE = contents.BASE_MODULE ? contents.BASE_MODULE : 'mempool'; } else { config.env.BASE_MODULE = 'mempool'; } diff --git a/frontend/cypress/support/commands.ts b/frontend/cypress/support/commands.ts index 4d165e409..ea5e88996 100644 --- a/frontend/cypress/support/commands.ts +++ b/frontend/cypress/support/commands.ts @@ -56,13 +56,6 @@ const codes = { ArrowDown: 40 } -Cypress.Commands.add("getBaseModule", () => { - return cy.task("getBaseModule").then((baseModule) => { - console.log(baseModule); - return baseModule; - }); -}); - Cypress.Commands.add('waitForSkeletonGone', () => { cy.waitUntil(() => { return Cypress.$('.skeleton-loader').length === 0;