Browse Source

fix(playwright): Made mysql to reset everytime test starts

pull/4538/head
Muhammed Mustafa 2 years ago
parent
commit
651d8c822c
  1. 6
      packages/nocodb/src/lib/services/test/TestResetService/resetMysqlSakilaProject.ts

6
packages/nocodb/src/lib/services/test/TestResetService/resetMysqlSakilaProject.ts

@ -71,11 +71,13 @@ const isSakilaMysqlToBeReset = async (
return true; return true;
} }
if (!project) return false; if (!project) return true;
const audits = await Audit.projectAuditList(project.id, {}); const audits = await Audit.projectAuditList(project.id, {});
return audits?.length > 0; // todo: Will be fixed in the data resetting revamp
console.log(`audits:resetMysqlSakilaProject:${parallelId}`, audits?.length);
return true;
}; };
const resetSakilaMysql = async ( const resetSakilaMysql = async (

Loading…
Cancel
Save