Cleanup Cypress config and commands

This commit is contained in:
Felipe Knorr Kuhn 2021-10-27 20:49:49 -07:00
parent 5139ffb4df
commit 5dab44e6c4
No known key found for this signature in database
GPG Key ID: 79619B52BB097C1A
2 changed files with 1 additions and 9 deletions

View File

@ -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';
}

View File

@ -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;